log_exchange
Record a user-assistant exchange for historical imports or batch processing, capturing both messages at the same timestamp.
Instructions
Record a user+assistant exchange from historical or batch imports only. Do NOT use for live conversations — both timestamps are captured at the same instant with no real gap. For live sessions always call log_message twice: once for the user message, once for the assistant response.
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": {
"session_id": "<session_id>",
"user_content": "<user_content>",
"assistant_content": "<assistant_content>"
},
"name": "log_exchange"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| session_id | Yes | Session ID returned by start_session | |
| user_content | Yes | The exact user message | |
| assistant_content | Yes | The exact assistant response |