Validate Schema Roundtrip • AI Agent SDK
validate_schema_roundtrip: Validate that schema can round-trip through OpenAI-style serialization.
validate_schema_roundtrip
Method
</div>
Validate that schema can round-trip through OpenAI-style serialization.
This ensures the tool schema is compatible with LLM providers that expect OpenAI function calling format and that parameters can be properly parsed.
Signature
def validate_schema_roundtrip() -> boolReturns
ResponseField
boolTrue if round-trip validation passes
Exceptions
ToolValidationError
If round-trip fails
Uses
get_schemajson.dumpsjson.loadsToolValidationError
Used By
Source
View on GitHubpraisonaiagents/tools/base.py at line 415