AI Generation
Generate AI Answer
Generate an answer grounded in memory by querying the agent’s context and synthesizing an LLM response.
POST
Overview
Answer questions using stored agent memories. This operation retrieves relevant context from the agent’s Moorcheh namespace (scoped by the active session) and calls Moorcheh answer generation to produce a grounded reply.Authentication
API clients do not send an API key orAuthorization header.
string
required
Session token from Activate Agent. Must match
agent_id.string
required
Must be
application/jsonPath Parameters
string
required
The unique identifier of the agent.
Body
string
required
The question to answer using retrieved memories as context.
integer
Maximum memories to use as context (
top_k). Range 1–100. If omitted, the server default applies (see deployment configuration).number
LLM temperature,
0.0–2.0. If omitted, the server default applies.string
Model identifier for answer generation (snake_case field name:
ai_model). If omitted, the server default applies.boolean
When
true, relevance filtering uses a confidence threshold. When false (default), threshold is ignored and not sent to Moorcheh.number
Confidence threshold (
0.0–1.0). Only used when kiosk_mode is true. If kiosk_mode is true and threshold is omitted, the server uses 0.15.Temperature Guide
- 0.0-0.5: Conservative, factual responses - best for technical documentation
- 0.5-1.0: Balanced creativity - good for general Q&A
- 1.0-2.0: More creative and varied responses - use carefully for factual content