Commit 623b9dba by sunqi02

feat: add ToolConfig and ToolGroup data models

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 00f33a30
from pydantic import BaseModel
from typing import List
from typing import List, Literal
class ModelConfig(BaseModel):
......@@ -28,3 +28,17 @@ class SkillConfig(BaseModel):
class Settings(BaseModel):
company: str = "公司"
max_messages: int = 50
class ToolConfig(BaseModel):
name: str
group: str = "basic"
description: str
input_schema: dict # JSON Schema
source: Literal["function", "mcp", "cli"] = "function"
class ToolGroup(BaseModel):
name: str
active: bool = False
description: str = ""
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!