mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 09:58:04 +08:00
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:
@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user