cortex_turn
Processes a user message as a stateful turn in a session to maintain coherence across multi-step flows and continued requests.
Instructions
Stateful Cortex turn over a session. Use for multi-step flows that must stay coherent.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"userId": "<userId>",
"message": "<message>"
},
"name": "cortex_turn"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| apiKey | No | Your Cortex tenant key. Required on shared/hosted servers; else the server key is used. | |
| userId | Yes | End user id | |
| message | Yes | The user turn | |
| sessionId | No | Session to continue | |
| systemPrompt | No | System prompt override |