class Operation
Definitions
def request_schema
Bridge to Schema: convert proto PascalCase type name to the JSON schema title used by A2A::Schema[].
"SendMessageRequest" => Schema["Send Message Request"]
Implementation
def request_schema
A2A::Schema[pascal_to_title(request_type)]
end
def json_rpc_method
JSON-RPC and gRPC method names are identical to the RPC name.
def rest_verb
REST binding from the primary (non-tenant) HTTP annotation.
def pascal_to_title(str)
"SendMessageRequest" => "Send Message Request"
Implementation
def pascal_to_title(str)
str.gsub(/([A-Z])/) { " #{$1}" }.strip
end