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

Copy Markdown View Source

Request to kill a terminal command without releasing the terminal (terminal/kill).

Fixed defect (naming, vs. schema-oracle)

Upstream named this KillTerminalCommandRequest for a method terminal/kill_command. The schema-oracle names it KillTerminalRequest for method terminal/kill. Renamed here to match.

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

Summary

Functions

Total: never raises. Missing/non-string sessionId/terminalId is the only failure mode.

Types

t()

@type t() :: %Raxol.AgentClientProtocol.Schema.ClientTypes.KillTerminalRequest{
  _meta: map(),
  session_id: String.t(),
  terminal_id: String.t()
}

Functions

from_json(map)

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

Total: never raises. Missing/non-string sessionId/terminalId is the only failure mode.

new(session_id, terminal_id)

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

to_json(r)

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