scienceDeep Dive
AI Engineering
·
Apr 12, 2026
·
15 min read Stream tokens as they arrive and reuse a session across turns so the LLM sees the full conversation. ~60 lines of code per language.
scienceDeep Dive
AI Engineering
·
Apr 12, 2026
·
12 min read Serialize an AgentSession to JSON, persist it, reload in a fresh process, and have the agent pick up exactly where it left off.