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

Copy Markdown View Source

Response containing the terminal output captured so far, and its exit status if the command has completed.

Fixed defect (missing required field, vs. schema-oracle)

Upstream omitted the oracle's required truncated: boolean field entirely. Added here.

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

Summary

Functions

Total: never raises. Missing/non-string output or missing/non-boolean truncated is the only failure mode -- exitStatus, if present but unparseable, defaults to nil rather than failing the response.

Types

t()

@type t() :: %Raxol.AgentClientProtocol.Schema.ClientTypes.TerminalOutputResponse{
  _meta: map(),
  exit_status:
    Raxol.AgentClientProtocol.Schema.ClientTypes.TerminalExitStatus.t() | nil,
  output: String.t(),
  truncated: boolean()
}

Functions

from_json(map)

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

Total: never raises. Missing/non-string output or missing/non-boolean truncated is the only failure mode -- exitStatus, if present but unparseable, defaults to nil rather than failing the response.

new(output, truncated \\ false)

@spec new(String.t(), boolean()) :: t()

to_json(r)

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