POST /api/agents/companionAgent/generate
Generate a complete response from the companion agent without streaming.Request Body
Array
required
Conversation history array containing user and assistant messages.
string
default:"friend"
Personality mode for the response. Options:
"guru", "wanderer", "friend", "philosopher"string
Unique identifier for the conversation thread. Recommended for conversation continuity.
string
User identifier for conversation persistence. Recommended for user-specific conversations.
string
Alternative personality specification method.
Request Example
Response
string
The complete response text from the companion agent.
object
Token usage statistics for the request.
number
Number of input tokens used.
number
Number of output tokens generated.
number
Total tokens used (input + output).
number
Tokens used for reasoning (if applicable).
number
Cached input tokens (cost savings).
Array
Detailed execution steps including tool calls and results.
string
Reason for response completion (
"stop", "length", "tool_calls", etc.)Array
Any warnings generated during processing.
object
Provider-specific metadata (OpenAI, etc.)
string
Unique request trace identifier for debugging.
