# `ACPex.Schema.Session.PromptResponse`
[🔗](https://github.com/lostbean/acpex/blob/v0.1.1/lib/acpex/schema/session/prompt_response.ex#L1)

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"
    }

# `t`

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

# `changeset`

```elixir
@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"

---

*Consult [api-reference.md](api-reference.md) for complete listing*
