You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This example demonstrates an interactive, multi‑turn chat built on the graph package using GraphAgent and Runner. It highlights:
4
+
5
+
- Persisted conversation history via the session service across turns
6
+
- Tool‑augmented LLM chat with a calculator tool and automatic tool routing
7
+
- Streaming outputs and interactive REPL experience
8
+
- Message‑oriented state with `graph.MessagesStateSchema`
9
+
10
+
## What It Shows
11
+
12
+
- Graph‑first design: a single LLM node (`chat`) and a tools node (`tools`), connected with `AddToolsConditionalEdges` so the LLM can call tools when needed, then continue the conversation.
13
+
- Natural multi‑turn: every user input is appended to the session; the next run reads full history from the same session so the LLM responds contextually.
14
+
- Streaming UX: tokens stream as they arrive, just like other examples.
15
+
16
+
## Graph Overview
17
+
18
+
```
19
+
Entry: chat (LLM) ──→ tools (when tool calls are present) ──→ back to chat
0 commit comments