mirror of
https://github.com/EvolutionAPI/adk-python.git
synced 2025-07-14 01:41:25 -06:00
fix: fix mcp agent filter logic
PiperOrigin-RevId: 759638254
This commit is contained in:
parent
05a853bc91
commit
f384793649
@ -34,11 +34,22 @@ root_agent = LlmAgent(
|
||||
],
|
||||
),
|
||||
# don't want agent to do write operation
|
||||
# you can also do below
|
||||
# tool_filter=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',
|
||||
'read_file',
|
||||
'read_multiple_files',
|
||||
'list_directory',
|
||||
'directory_tree',
|
||||
'search_files',
|
||||
'get_file_info',
|
||||
'list_allowed_directories',
|
||||
],
|
||||
)
|
||||
],
|
||||
|
Loading…
Reference in New Issue
Block a user