ACPex.Schema.Client.Terminal.OutputResponse (ACPex v0.1.0)

View Source

Response containing terminal output.

Sent by the client in response to a TerminalOutputRequest, containing the terminal's output and optionally its exit status.

Required Fields

  • output - The terminal output (string)
  • truncated - Whether the output was truncated (boolean)

Optional Fields

  • exit_status - Terminal exit status (map with exitCode and signal)
  • meta - Additional metadata (map)

Example

%ACPex.Schema.Client.Terminal.OutputResponse{
  output: "Hello, world!\n",
  truncated: false,
  exit_status: %{"exitCode" => 0, "signal" => nil}
}

JSON Representation

{
  "output": "Hello, world!\n",
  "truncated": false,
  "exitStatus": {"exitCode": 0, "signal": null}
}

Summary

Functions

Creates a changeset for validation.

Types

t()

@type t() :: %ACPex.Schema.Client.Terminal.OutputResponse{
  exit_status: map() | nil,
  meta: map() | nil,
  output: String.t(),
  truncated: boolean()
}

Functions

changeset(struct \\ %__MODULE__{}, params)

@spec changeset(t(), map()) :: Ecto.Changeset.t()

Creates a changeset for validation.

Required Fields

  • output - Must be present
  • truncated - Must be present