From 30404c333f7d2ec38dedcba0444ac1784c17bca5 Mon Sep 17 00:00:00 2001 From: Patrick Gray Date: Mon, 14 Jul 2025 19:44:27 +0000 Subject: [PATCH] tools - remove reference to parallel invocation --- .../deploy/operating-agents-in-production.md | 15 ++------------- docs/user-guide/observability-evaluation/logs.md | 11 +---------- 2 files changed, 3 insertions(+), 23 deletions(-) diff --git a/docs/user-guide/deploy/operating-agents-in-production.md b/docs/user-guide/deploy/operating-agents-in-production.md index 7a22a5be..61882367 100644 --- a/docs/user-guide/deploy/operating-agents-in-production.md +++ b/docs/user-guide/deploy/operating-agents-in-production.md @@ -89,9 +89,9 @@ For improved user experience in production applications, leverage streaming via # For web applications async def stream_agent_response(prompt): agent = Agent(...) - + ... - + async for event in agent.stream_async(prompt): if "data" in event: yield event["data"] @@ -99,17 +99,6 @@ async def stream_agent_response(prompt): See [Async Iterators](../../user-guide/concepts/streaming/async-iterators.md) for more information. -### Parallelism Settings - -Control parallelism for optimal resource utilization: - -```python -# Limit parallel tool execution based on your infrastructure capacity -agent = Agent( - max_parallel_tools=4 # Adjust based on available resources -) -``` - ### Error Handling Implement robust error handling in production: diff --git a/docs/user-guide/observability-evaluation/logs.md b/docs/user-guide/observability-evaluation/logs.md index 5fdb94e8..caa903f1 100644 --- a/docs/user-guide/observability-evaluation/logs.md +++ b/docs/user-guide/observability-evaluation/logs.md @@ -56,14 +56,6 @@ result = agent("What is 125 * 37?") When running this code with logging enabled, you'll see logs from different components of the SDK as the agent processes the request, calls the calculator tool, and generates a response. The following sections show examples of these logs: -### Agent Lifecycle - -Logs related to agent initialization and shutdown: - -``` -DEBUG | strands.agent.agent | thread pool executor shutdown complete -``` - ### Tool Registry and Execution Logs related to tool discovery, registration, and execution: @@ -85,8 +77,7 @@ WARNING | strands.tools.registry | tool_name= | spec validation fa DEBUG | strands.tools.registry | tool_name= | loaded dynamic tool config # Tool execution -DEBUG | strands.tools.executor | tool_name= | executing tool with parameters: {"expression": "125 * 37"} -DEBUG | strands.tools.executor | tool_count=<1> | submitted tasks to parallel executor +DEBUG | strands.event_loop.event_loop | tool_use= | streaming # Tool hot reloading DEBUG | strands.tools.registry | tool_name= | searching directories for tool