ACPex.Schema.Session.PromptRequest (ACPex v0.1.0)
View SourceUser 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
Functions
@spec changeset(t(), map()) :: Ecto.Changeset.t()
Creates a changeset for validation.
Required Fields
session_id
- Must be presentprompt
- Must be present and non-empty