nemo_relay.typed
nemo_relay.typed
nemo_relay.typed
Generated from python/nemo_relay/typed.py.
Module nemo_relay.typed.
Typed wrappers around the JSON-based NeMo Relay execution APIs.
Codec(Generic[T])Bidirectional conversion protocol between a Python type and JSON.
to_jsonConvert a typed value to a JSON-serializable object.
from_jsonReconstruct a typed value from a JSON-serializable object.
JsonPassthrough(Codec[Json])Identity codec for callers already working with JSON values.
to_jsonReturn value unchanged.
from_jsonReturn data unchanged.
PydanticCodec(Codec[T])Codec for models exposing model_dump and model_validate.
PydanticCodecCreate an instance.
to_jsonSerialize a Pydantic model to a JSON-serializable dict.
from_jsonDeserialize JSON data into a Pydantic model.
DataclassCodec(Codec[T])Codec for dataclasses.dataclass models.
DataclassCodecCreate an instance.
to_jsonSerialize a dataclass instance to a JSON-compatible dictionary.
from_jsonDeserialize JSON data into a dataclass instance.
BestEffortAnyCodec(Codec[object])Best-effort codec for arbitrary Python values.
to_jsonSerialize an arbitrary Python value to a JSON-serializable form.
from_jsonReconstruct a Python value from its tagged JSON representation.
tool_executetool_executetool_executeRun nemo_relay.tools.execute with typed arguments and results.
llm_executellm_executellm_executeRun nemo_relay.llm.execute and decode the returned response type.
llm_stream_executeRun nemo_relay.llm.stream_execute with typed chunks and final output.
TTArgsTResponseTResponseChunkTResult