mirror of
https://github.com/EvolutionAPI/adk-python.git
synced 2025-12-18 11:22:22 -06:00
update mcp toolset and sample agent based on new tool_filter definition
PiperOrigin-RevId: 757969950
This commit is contained in:
committed by
Copybara-Service
parent
722028801a
commit
d35b99e6dd
@@ -34,8 +34,12 @@ root_agent = LlmAgent(
|
||||
],
|
||||
),
|
||||
# don't want agent to do write operation
|
||||
tool_predicate=lambda tool, ctx=None: tool.name
|
||||
not in ('write_file', 'edit_file', 'create_directory', 'move_file'),
|
||||
tool_filter=[
|
||||
'write_file',
|
||||
'edit_file',
|
||||
'create_directory',
|
||||
'move_file',
|
||||
],
|
||||
)
|
||||
],
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user