feat(skill): tool switcher implementation

- Introduced a new regex pattern for tool groups to support multiple tool placeholders.
- Updated the DefaultToolResolver to format outputs for specific built-in tools (bash, python).
- Enhanced the SkillCompiler to filter out disabled tools in tool groups, ensuring only enabled tools are rendered.
- Added tests to verify the correct behavior of tool group filtering and rendering.
This commit is contained in:
Harry
2026-01-28 21:14:24 +08:00
parent 3dad0b38df
commit 144089d3ed
3 changed files with 90 additions and 5 deletions

View File

@ -29,6 +29,7 @@ class ToolReference(BaseModel):
type: ToolProviderType
provider: str
tool_name: str
enabled: bool = True
credential_id: str | None = None
configuration: ToolConfiguration | None = None