Multi-turn with stateful tools (multi_turn_tools.rs)
Multi-turn with stateful tools (multi_turn_tools.rs)
Location: Conversation flow:Key pattern — reusing the same agent instance:Each
meerkat/examples/multi_turn_tools.rsDemonstrates stateful tools that persist data across conversation turns and multiple run() calls on the same agent.Stateful tool dispatcher:run() call adds the user message to the session, calls the LLM with the full conversation history, adds the assistant response, and saves via the store.Session lifecycle via JSON-RPC
Session lifecycle via JSON-RPC
Create a session, run multiple turns, then archive it:See the JSON-RPC API reference for the full method reference.
