From 45d160817b125ccf67e4cc5915d489e2c980c480 Mon Sep 17 00:00:00 2001 From: MUHAMMAD SALMAN HUSSAIN <160324527+mshsheikh@users.noreply.github.com> Date: Sat, 26 Jul 2025 04:14:21 +0500 Subject: [PATCH] Fix type placeholder convention Updated the error message to replace the placeholder `your_type` with `YourType`, removing the underscore and adopting PascalCase, which aligns with standard Python type naming conventions. --- src/agents/agent_output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/agents/agent_output.py b/src/agents/agent_output.py index fc58643bd..61d4a1c26 100644 --- a/src/agents/agent_output.py +++ b/src/agents/agent_output.py @@ -116,7 +116,7 @@ def __init__(self, output_type: type[Any], strict_json_schema: bool = True): raise UserError( "Strict JSON schema is enabled, but the output type is not valid. " "Either make the output type strict, " - "or wrap your type with AgentOutputSchema(your_type, strict_json_schema=False)" + "or wrap your type with AgentOutputSchema(YourType, strict_json_schema=False)" ) from e def is_plain_text(self) -> bool: