Following up on the invitation in #16: public JSON serialization/deserialization helpers on the answer and response types.
The gap: consumers who need JSON-able output currently have to either know the SDK is Pydantic-backed this release (model_dump()) or reach into the private _core.json module. Neither is documented. Anyone whose stack serializes SDK objects with another library (msgspec-based MCP stacks, structured logging, caching layers) hits this exactly where blakestone-x/jev-mcp did.
Suggestion: a documented to_json_dict() (naming TBD) on the answer/Schema types returning plain builtins, so callers never need to know which ser/de library backs the SDK. Optionally a from_json classmethod for symmetry.
One paragraph, one small API — happy to paste a patch sketch here if useful.
Following up on the invitation in #16: public JSON serialization/deserialization helpers on the answer and response types.
The gap: consumers who need JSON-able output currently have to either know the SDK is Pydantic-backed this release (
model_dump()) or reach into the private_core.jsonmodule. Neither is documented. Anyone whose stack serializes SDK objects with another library (msgspec-based MCP stacks, structured logging, caching layers) hits this exactly where blakestone-x/jev-mcp did.Suggestion: a documented
to_json_dict()(naming TBD) on the answer/Schematypes returning plain builtins, so callers never need to know which ser/de library backs the SDK. Optionally afrom_jsonclassmethod for symmetry.One paragraph, one small API — happy to paste a patch sketch here if useful.