Files
deer-flow/backend/src/config/tool_config.py
2026-01-14 07:15:58 +08:00

21 lines
627 B
Python

from pydantic import BaseModel, ConfigDict, Field
class ToolGroupConfig(BaseModel):
"""Config section for a tool group"""
name: str = Field(..., description="Unique name for the tool group")
model_config = ConfigDict(extra="allow")
class ToolConfig(BaseModel):
"""Config section for a tool"""
name: str = Field(..., description="Unique name for the tool")
group: str = Field(..., description="Group name for the tool")
use: str = Field(
...,
description="Variable name of the tool provider(e.g. src.sandbox.tools:bash_tool)",
)
model_config = ConfigDict(extra="allow")