Skip to content

Commit 2944abf

Browse files
authored
Update doc strings for the doc build (#1284)
We keep getting warnings about odd indentation; this takes care of that Co-authored-by: Mackenzie Zastrow <[email protected]>
1 parent d1b523c commit 2944abf

File tree

3 files changed

+16
-14
lines changed

3 files changed

+16
-14
lines changed

src/strands/agent/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ async def stream_async(
543543
544544
Yields:
545545
An async iterator that yields events. Each event is a dictionary containing
546-
information about the current state of processing, such as:
546+
information about the current state of processing, such as:
547547
548548
- data: Text content being generated
549549
- complete: Whether this is the final chunk

src/strands/multiagent/swarm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ def __init__(
247247
"""Initialize Swarm with agents and configuration.
248248
249249
Args:
250-
id : Unique swarm id (default: None)
250+
id: Unique swarm id (default: "default_swarm")
251251
nodes: List of nodes (e.g. Agent) to include in the swarm
252252
entry_point: Agent to start with. If None, uses the first agent (default: None)
253253
max_handoffs: Maximum handoffs to agents and users (default: 20)

src/strands/tools/registry.py

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@
1717

1818
from typing_extensions import TypedDict, cast
1919

20-
from strands.tools.decorator import DecoratedFunctionTool
21-
2220
from .._async import run_async
2321
from ..experimental.tools import ToolProvider
22+
from ..tools.decorator import DecoratedFunctionTool
2423
from ..types.tools import AgentTool, ToolSpec
2524
from .loader import load_tool_from_string, load_tools_from_module
2625
from .tools import PythonAgentTool, normalize_schema, normalize_tool_spec
@@ -49,16 +48,19 @@ def process_tools(self, tools: List[Any]) -> List[str]:
4948
imported modules, @tool decorated functions, or instances of AgentTool.
5049
5150
Args:
52-
tools: List of tool specifications.
53-
Can be:
54-
1. Local file path to a module based tool: `./path/to/module/tool.py`
55-
2. Module import path
56-
2.1. Path to a module based tool: `strands_tools.file_read`
57-
2.2. Path to a module with multiple AgentTool instances (@tool decorated): `tests.fixtures.say_tool`
58-
2.3. Path to a module and a specific function: `tests.fixtures.say_tool:say`
59-
3. A module for a module based tool
60-
4. Instances of AgentTool (@tool decorated functions)
61-
5. Dictionaries with name/path keys (deprecated)
51+
tools: List of tool specifications. Can be:
52+
53+
1. Local file path to a module based tool: `./path/to/module/tool.py`
54+
2. Module import path
55+
56+
2.1. Path to a module based tool: `strands_tools.file_read`
57+
2.2. Path to a module with multiple AgentTool instances (@tool decorated):
58+
`tests.fixtures.say_tool`
59+
2.3. Path to a module and a specific function: `tests.fixtures.say_tool:say`
60+
61+
3. A module for a module based tool
62+
4. Instances of AgentTool (@tool decorated functions)
63+
5. Dictionaries with name/path keys (deprecated)
6264
6365
6466
Returns:

0 commit comments

Comments
 (0)