mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-04-25 11:18:22 +00:00
21 lines
658 B
Python
21 lines
658 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", frozen=True)
|
|
|
|
|
|
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. deerflow.sandbox.tools:bash_tool)",
|
|
)
|
|
model_config = ConfigDict(extra="allow", frozen=True)
|