MingaClaudeBridge.Wire.ControlResponse (minga_claude_bridge v0.1.0)

Copy Markdown View Source

A control_response frame: the answer to a control_request, in either direction.

outcome is {:ok, response} for subtype success, where response is the decoded response object (an empty map when absent), or {:error, message} for subtype error. An answer to an mcp_message request carries the JSON-RPC reply under response["mcp_response"].

Summary

Functions

Decodes a control_response frame.

Types

outcome()

@type outcome() ::
  {:ok, MingaClaudeBridge.Wire.Field.json_map()} | {:error, String.t()}

t()

@type t() :: %MingaClaudeBridge.Wire.ControlResponse{
  outcome: outcome(),
  request_id: String.t()
}

Functions

from_wire(map)

@spec from_wire(MingaClaudeBridge.Wire.Field.json_map()) :: {:ok, t()} | :error

Decodes a control_response frame.