Skip to main content
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 or Authorization header.
string
required
Session token from Activate Agent. Must match agent_id.
string
required
Must be application/json

Path 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 1100. If omitted, the server default applies (see deployment configuration).
number
LLM temperature, 0.02.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.01.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

Available Models

Next Steps

  • Recall to fetch raw memories without generating an AI answer
  • Remember to add more context to the agent