feat(skills and model):
1. Add the "Skills" module; 2. The loading of the model square has been modified to be controlled through environment variables; 3. Dynamic scheduling of the skill binding tool; 4. Agent Integration Skills
This commit is contained in:
@@ -156,6 +156,9 @@ class AgentConfigCreate(BaseModel):
|
||||
description="Agent 可用的工具列表"
|
||||
)
|
||||
|
||||
# 技能配置
|
||||
skill_ids: Optional[List[str]] = Field(default=None, description="关联的技能ID列表")
|
||||
|
||||
|
||||
class AppCreate(BaseModel):
|
||||
name: str
|
||||
@@ -207,6 +210,9 @@ class AgentConfigUpdate(BaseModel):
|
||||
|
||||
# 工具配置
|
||||
tools: Optional[List[ToolConfig]] = Field(default_factory=list, description="工具列表")
|
||||
|
||||
# 技能配置
|
||||
skill_ids: Optional[List[str]] = Field(default=None, description="关联的技能ID列表")
|
||||
|
||||
|
||||
# ---------- Output Schemas ----------
|
||||
@@ -266,6 +272,8 @@ class AgentConfig(BaseModel):
|
||||
# 工具配置
|
||||
tools: Union[List[ToolConfig], Dict[str, ToolOldConfig]] = []
|
||||
|
||||
skill_ids: Optional[List[str]] = []
|
||||
|
||||
is_active: bool
|
||||
created_at: datetime.datetime
|
||||
updated_at: datetime.datetime
|
||||
|
||||
Reference in New Issue
Block a user