Skip to content

Commit 077c17b

Browse files
committed
Improve documentation for parallel_tool_calls in ModelSettings
1 parent 1f0915a commit 077c17b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/agents/model_settings.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,13 @@ 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+
If not provided (i.e., set to None), this behavior defers to the underlying
41+
model provider's default. For most current providers (e.g., OpenAI), this typically
42+
means parallel tool calls are enabled (True).
43+
Set to True to explicitly enable parallel tool calls, or False to restrict the
44+
model to at most one tool call per turn.
45+
"""
4146

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

0 commit comments

Comments
 (0)