Skip to content

Commit 79440ac

Browse files
authored
tools - remove reference to parallel invocation (#151)
1 parent 5d1b144 commit 79440ac

File tree

2 files changed

+3
-23
lines changed

2 files changed

+3
-23
lines changed

docs/user-guide/deploy/operating-agents-in-production.md

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -89,27 +89,16 @@ For improved user experience in production applications, leverage streaming via
8989
# For web applications
9090
async def stream_agent_response(prompt):
9191
agent = Agent(...)
92-
92+
9393
...
94-
94+
9595
async for event in agent.stream_async(prompt):
9696
if "data" in event:
9797
yield event["data"]
9898
```
9999

100100
See [Async Iterators](../../user-guide/concepts/streaming/async-iterators.md) for more information.
101101

102-
### Parallelism Settings
103-
104-
Control parallelism for optimal resource utilization:
105-
106-
```python
107-
# Limit parallel tool execution based on your infrastructure capacity
108-
agent = Agent(
109-
max_parallel_tools=4 # Adjust based on available resources
110-
)
111-
```
112-
113102
### Error Handling
114103

115104
Implement robust error handling in production:

docs/user-guide/observability-evaluation/logs.md

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,6 @@ result = agent("What is 125 * 37?")
5656

5757
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:
5858

59-
### Agent Lifecycle
60-
61-
Logs related to agent initialization and shutdown:
62-
63-
```
64-
DEBUG | strands.agent.agent | thread pool executor shutdown complete
65-
```
66-
6759
### Tool Registry and Execution
6860

6961
Logs related to tool discovery, registration, and execution:
@@ -85,8 +77,7 @@ WARNING | strands.tools.registry | tool_name=<invalid_tool> | spec validation fa
8577
DEBUG | strands.tools.registry | tool_name=<calculator> | loaded dynamic tool config
8678
8779
# Tool execution
88-
DEBUG | strands.tools.executor | tool_name=<calculator> | executing tool with parameters: {"expression": "125 * 37"}
89-
DEBUG | strands.tools.executor | tool_count=<1> | submitted tasks to parallel executor
80+
DEBUG | strands.event_loop.event_loop | tool_use=<calculator_tool_use_id> | streaming
9081
9182
# Tool hot reloading
9283
DEBUG | strands.tools.registry | tool_name=<calculator> | searching directories for tool

0 commit comments

Comments
 (0)