ACPex.Schema.Session.PromptResponse (ACPex v0.1.0)

View Source

Response to a prompt request.

Sent by the agent when it has finished processing a prompt. This is the final message in the prompt turn, after all streaming updates.

Required Fields

  • stop_reason - Why the prompt processing stopped (string)

Optional Fields

  • meta - Additional metadata (map)

Stop Reasons

  • "done" - Processing completed successfully
  • "cancelled" - Processing was cancelled by the client
  • "error" - An error occurred during processing

Example

%ACPex.Schema.Session.PromptResponse{
  stop_reason: "done"
}

JSON Representation

{
  "stopReason": "done"
}

Summary

Functions

Creates a changeset for validation.

Types

t()

@type t() :: %ACPex.Schema.Session.PromptResponse{
  meta: map() | nil,
  stop_reason: String.t()
}

Functions

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

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

Creates a changeset for validation.

Required Fields

  • stop_reason - Must be present and be one of: "done", "cancelled", "error"