Skip to content
Tagged articles

async-generators

2 articles · Page 1 of 1
Tech Freedom Circle
Tech Freedom Circle
Nov 13, 2026 · Artificial Intelligence

AgentScope Bible 02: 7 Onion Middleware Slots, 3-Layer Architecture & ReAct Loop Control

This article dissects AgentScope's middleware architecture, explaining why traditional pre/post hooks fail for streaming agents and how the onion model with 7 fixed slots, three-layer isolation, recursive execute_chain scheduling, ReplyEndEvent loop control, system prompt transformation, tool offload state management, and async generator safe closure via aclosing enable robust cross-cutting capabilities like auditing, permissions, tracing, and memory.

AI AgentsAgentScopeReAct
0 likes · 41 min read
AgentScope Bible 02: 7 Onion Middleware Slots, 3-Layer Architecture & ReAct Loop Control
James' Growth Diary
James' Growth Diary
May 2, 2026 · Artificial Intelligence

How to Add Real‑Time Speech Recognition and Streaming TTS to Your AI Agent

This guide walks through choosing the right voice‑agent architecture, implementing streaming ASR with WebSocket, triggering sentence‑by‑sentence TTS, wiring the three layers together via async generators, optimizing latency to under a second, and avoiding common pitfalls such as missing VAD and checkpoint persistence.

LangChainText-to-SpeechWebSocket
0 likes · 19 min read
How to Add Real‑Time Speech Recognition and Streaming TTS to Your AI Agent