Raxol.AgentClientProtocol.Schema.ClientTypes.RequestPermissionResponse (Raxol Agent Client Protocol v0.1.0)

Copy Markdown View Source

Response to a session/request_permission request, carrying the user's decision.

Ported from the MIT f1729/agent_client_protocol (c) 2025 f1729; see NOTICE.md.

Summary

Functions

Total: never raises. A missing/unparseable outcome is the only failure mode (required field).

Types

t()

@type t() :: %Raxol.AgentClientProtocol.Schema.ClientTypes.RequestPermissionResponse{
  _meta: map(),
  outcome:
    Raxol.AgentClientProtocol.Schema.ClientTypes.RequestPermissionOutcome.t()
}

Functions

from_json(map)

@spec from_json(term()) :: {:ok, t()} | {:error, term()}

Total: never raises. A missing/unparseable outcome is the only failure mode (required field).

new(outcome)

to_json(r)

@spec to_json(t()) :: map()