Agentagent/README
Agent Module
The agent module provides a turn-based loop that streams assistant messages, executes tool calls, and emits structured events.
It builds on the AI module and keeps all context in AgentMessage format.
Entry point: indusagi/agent.
Directory Map
indusagi/src/agent/agent.tsimplements theAgentclass.indusagi/src/agent/agent-loop.tscontains the core loop.indusagi/src/agent/proxy.tsprovides a proxy stream function.indusagi/src/agent/types.tsdefines types and events.
Highlights
- Manages state, tool calls, and streaming in one place.
- Supports steering and follow-up messages while the agent is running.
- Emits
AgentEventfor UI updates. - Accepts custom
streamFnimplementations (proxy or server-side).
Default Model
The default model is getModel("google", "gemini-2.5-flash-lite-preview-06-17").
Next Docs
indusagi/docs/agent/api-reference.mdindusagi/docs/agent/loop-and-tools.md
On This Page
