Skip to content

Commit 7e632c2

Browse files
authored
Fix type placeholder convention (#1259)
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.
1 parent 2c89461 commit 7e632c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/agents/agent_output.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ def __init__(self, output_type: type[Any], strict_json_schema: bool = True):
116116
raise UserError(
117117
"Strict JSON schema is enabled, but the output type is not valid. "
118118
"Either make the output type strict, "
119-
"or wrap your type with AgentOutputSchema(your_type, strict_json_schema=False)"
119+
"or wrap your type with AgentOutputSchema(YourType, strict_json_schema=False)"
120120
) from e
121121

122122
def is_plain_text(self) -> bool:

0 commit comments

Comments
 (0)