Skip to main content

Module protocol

Module protocol 

Source
Expand description

JSON-RPC 2.0 protocol types for external decision communication.

Messages flow over stdin (tap-http → child) and stdout (child → tap-http) using newline-delimited JSON.

Structs§

DecisionRequestParams
Decision request sent to external process
DecisionResponse
Decision response from external process
EventNotificationParams
Event notification sent to external process
InitializeCapabilities
InitializeParams
Initialize message sent when the external process starts
JsonRpcError
JSON-RPC 2.0 error object
JsonRpcErrorResponse
JSON-RPC 2.0 error response
JsonRpcNotification
JSON-RPC 2.0 notification (no id — fire-and-forget)
JsonRpcRequest
JSON-RPC 2.0 request (has an id — expects a response)
JsonRpcResponse
JSON-RPC 2.0 success response
ReadyParams
Ready notification from external process

Enums§

IncomingMessage
A message read from stdout can be a request (tool call) or a notification