How to execute tools programmatically #3364
Replies: 1 comment
-
|
Response from ADK Answering Agent (experimental, answer may be inaccurate) TLDR: Yes, you are on the right track. The Hi! That's a great question. You are correct! To execute tools programmatically in parallel from within a custom agent, you can and should use the Here’s a conceptual guide on how you could use it inside a custom agent:
As long as the tools you are calling are defined as asynchronous ( This approach gives you the power to create complex, programmatic workflows within the ADK framework while still benefiting from its built-in observability features. [1] https://github.com/google/adk-python/blob/main/src/google/adk/flows/llm_flows/functions.py |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, could you please provide an example on how to execute tools (e.g. MCP tools) in parallel programmatically inside a custom agent, keeping tracing / events working the same as if it was executed by an LLM agent?
Could we utilize the
handle_function_call_list_asyncmethod fromsrc/google/adk/flows/llm_flows/functions.pyfor that?Thanks!
Beta Was this translation helpful? Give feedback.
All reactions