store_dialog_turn
Store a dialog turn with role, content, and metadata to persistent session memory for later retrieval and context assembly.
Instructions
Store a single dialog turn in persistent session memory.
Persists a message (user, assistant, system, or tool) for later retrieval and context assembly. Metadata can hold arbitrary JSON-serializable context such as model name, tool calls, or review state.
Args:
session_id: Unique conversation session identifier.
role: Speaker role (e.g. user, assistant, system).
content: Message text content.
metadata: Optional key-value context attached to this turn.
Returns: JSON string with the stored turn record including assigned id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | ||
| content | Yes | ||
| metadata | No | ||
| session_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |