We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5ce5b00 commit 2b5609bCopy full SHA for 2b5609b
src/agents/model_settings.py
@@ -3,6 +3,8 @@
3
from dataclasses import dataclass, fields, replace
4
from typing import Literal
5
6
+from openai.types.shared import Reasoning
7
+
8
9
@dataclass
10
class ModelSettings:
@@ -40,7 +42,7 @@ class ModelSettings:
40
42
max_tokens: int | None = None
41
43
"""The maximum number of output tokens to generate."""
44
- reasoning: dict[str, str] | None = None
45
+ reasoning: Reasoning | None = None
46
"""Controls reasoning behavior for reasoning-capable models.
47
For o-series models: Use 'effort' key with values 'low', 'medium', or 'high' to control
48
reasoning effort. For computer_use_preview: Use 'generate_summary' key with values
0 commit comments