Each conversation request includes the current user message, optional prior chat history, routing details, and generation parameters. Conversations support:
- Context memory — preserve prior messages for coherent dialogue.
- Routing — use orchestration agents (e.g., a
RouterAgent
) to direct queries to specialized agents. - Custom instructions — guide the agent’s reasoning and behavior.
- Fine-tuned control — adjust randomness, response length, and penalties for repetition.
Agent Request Schema Example
Field | Type | Description |
---|---|---|
name | string | Name of the agent handling the conversation. |
description | string | A brief description of the agent’s purpose. |
instruction | string | Behavioral guidance for the agent. |
intents | array | Optional: predefined conversational styles or goals (e.g., “Be gentle”, “Be detailed”). |
model | string | Model powering the conversation (e.g., pawa-v1-blaze-20250318 ). |
message | object | The latest message from the user. |
agents | array | IDs of other agents available for orchestration or delegation. |
memoryChat | array | Conversation history for context preservation. |
temperature | number | Controls randomness of responses (default: 0.1 ). |
top_p | number | Nucleus sampling threshold (default: 0.95 ). |
max_tokens | number | Maximum tokens to generate in response. |
frequency_penalty | number | Penalizes repeated phrases (default: 0.3 ). |
presence_penalty | number | Encourages exploration of new topics (default: 0.3 ). |
seed | number | Random seed for reproducibility. |
stream | boolean | Whether to stream the response (true ) or return once complete (false ). |