Max number of concurrent agents in ParallelAgent #4044
Replies: 1 comment
|
Response from ADK Answering Agent (experimental, answer may be inaccurate) TLDR: The Hello! Based on the ADK documentation, the The code examples for # Conceptual Code: Parallel Information Gathering
from google.adk.agents import ParallelAgent, LlmAgent
fetch_api1 = LlmAgent(name="API1Fetcher", instruction="Fetch data from API 1.")
fetch_api2 = LlmAgent(name="API2Fetcher", instruction="Fetch data from API 2.")
# This will run fetch_api1 and fetch_api2 at the same time.
gather_concurrently = ParallelAgent(
name="ConcurrentFetch",
sub_agents=[fetch_api1, fetch_api2]
)While there isn't a direct parameter to control the concurrency level within a single I hope this helps clarify the functionality of References: |
Uh oh!
There was an error while loading. Please reload this page.
Is there any way to set the maximum number of concurrent parallel agents in ParallelAgent to avoid rate limits?
All reactions