Skip to content

Commit 72d6177

Browse files
committed
Enhance documentation for parallel_tool_calls in ModelSettings
1 parent 1f0915a commit 72d6177

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/agents/model_settings.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,15 @@ class ModelSettings:
3636
"""The tool choice to use when calling the model."""
3737

3838
parallel_tool_calls: bool | None = None
39-
"""Whether to use parallel tool calls when calling the model.
40-
Defaults to True if not provided."""
39+
"""Controls whether the model can make multiple parallel tool calls in a single turn.
40+
41+
If not provided (i.e., set to None), this behavior defers to the underlying
42+
model provider's default. For most current providers (e.g., OpenAI), this typically
43+
means parallel tool calls are enabled (True).
44+
45+
Set to True to explicitly enable parallel tool calls, or False to restrict the
46+
model to at most one tool call per turn.
47+
"""
4148

4249
truncation: Literal["auto", "disabled"] | None = None
4350
"""The truncation strategy to use when calling the model."""

0 commit comments

Comments
 (0)