Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/agents/model_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,13 @@ class ModelSettings:
"""The tool choice to use when calling the model."""

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

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