Expand description
Bridge between hand-written serde types (a2a::types) and
tonic/prost-generated types (a2a::proto).
This module provides From/conversion functions in both directions so
the gRPC layer can speak proto types on the wire while the rest of the
codebase works with the ergonomic serde types.
Functionsยง
- json_
to_ prost_ struct - Convert a
serde_json::Valueto aprost_types::Struct. - local_
card_ to_ proto - Convert a local
AgentCardto a protoAgentCard. - local_
message_ to_ proto - local_
task_ status_ to_ proto - local_
task_ to_ proto - Convert a local
Taskto a protoTask. - prost_
struct_ to_ json - Convert a
prost_types::Structto aserde_json::Value. - proto_
message_ to_ local - Convert a proto
Messageto a localMessage. - proto_
task_ to_ local - Convert a proto
Taskto a localTask.