- 建立Python项目结构,配置pyproject.toml - 初始化智能体系统基础类和框架 - 添加Python开发环境的完整.gitignore配置 - 配置UV包管理器及锁定文件 - 创建项目脚手架和程序入口 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
9 lines
341 B
Python
9 lines
341 B
Python
class BasePrompt:
|
|
description: str = None
|
|
instructions: str = None
|
|
|
|
def __init__(self):
|
|
if self.description is None:
|
|
raise NotImplementedError("子类必须定义 'description' 属性")
|
|
if self.instructions is None:
|
|
raise NotImplementedError("子类必须定义 'instructions' 属性") |