class documentation
class _OpenAIJSONPlainPayloadConverter(PydanticJSONPlainPayloadConverter): (source)
Constructor: _OpenAIJSONPlainPayloadConverter(to_json_options)
Strict pydantic deserialization with a lenient fallback.
OpenAI's response models can drift from live API payloads (e.g. a deprecated-but-required field the API has stopped sending). The SDK tolerates this when parsing responses, but strict validate_json on the workflow side does not, so fall back to lenient construction when validation fails.
| Method | from |
See base class. |
Inherited from PydanticJSONPlainPayloadConverter:
| Method | __init__ |
Create a new payload converter. |
| Method | to |
See base class. |
| Property | encoding |
See base class. |
| Instance Variable | _schema |
Undocumented |
| Instance Variable | _to |
Undocumented |
def from_payload(self, payload:
temporalio.api.common.v1.Payload, type_hint: type | None = None) -> typing.Any:
(source)
ΒΆ
See base class.