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

View Source

User prompt sent to the agent.

Represents a user's message or query to the agent within an active session.

Required Fields

  • session_id - The session identifier (string)
  • prompt - The prompt content blocks (list of maps)

Optional Fields

  • meta - Additional metadata (map)

Example

%ACPex.Schema.Session.PromptRequest{
  session_id: "session-123",
  prompt: [
    %{"type" => "text", "text" => "Refactor this function"}
  ]
}

JSON Representation

{
  "sessionId": "session-123",
  "prompt": [
    {"type": "text", "text": "Refactor this function"}
  ]
}

Summary

Functions

Creates a changeset for validation.

Types

t()

@type t() :: %ACPex.Schema.Session.PromptRequest{
  meta: map() | nil,
  prompt: [map()],
  session_id: String.t()
}

Functions

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

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

Creates a changeset for validation.

Required Fields

  • session_id - Must be present
  • prompt - Must be present and non-empty