From f3058421b77520519d7d573e9a7f4a66e1994015 Mon Sep 17 00:00:00 2001 From: Kazuhiro Sera Date: Sat, 16 Aug 2025 08:30:33 +0900 Subject: [PATCH] Fix #1494 by adding a link to Responses API documentation --- src/agents/model_settings.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/agents/model_settings.py b/src/agents/model_settings.py index 039030314..267f320c1 100644 --- a/src/agents/model_settings.py +++ b/src/agents/model_settings.py @@ -92,7 +92,10 @@ class ModelSettings: """ truncation: Literal["auto", "disabled"] | None = None - """The truncation strategy to use when calling the model.""" + """The truncation strategy to use when calling the model. + See [Responses API documentation](https://platform.openai.com/docs/api-reference/responses/create#responses_create-truncation) + for more details. + """ max_tokens: int | None = None """The maximum number of output tokens to generate."""