Glossary and References
源码版本v0.73.1
Core terms
| Term | Meaning | Source location |
|---|---|---|
| Provider | An LLM service (Anthropic, OpenAI, etc.) | packages/ai/src/types.ts:19-70 |
| Api | An API endpoint type (anthropic-messages, openai-responses, etc.) | packages/ai/src/types.ts:6-19 |
| StreamFunction | The unified streaming call signature | packages/ai/src/types.ts:155-170 |
| AssistantMessageEvent | Incremental events during streaming (text_delta, toolcall_start, etc.) | packages/ai/src/types.ts:269-290 |
| EventStream | Async iterator + result() promise | packages/ai/src/utils/event-stream.ts:4-68 |
| Agent | General agent instance, holds state and queues | packages/agent/src/agent.ts:158-170 |
| runLoop | Double while main loop | packages/agent/src/agent-loop.ts:155-172 |
| AgentTool | Tool interface, includes execute | packages/agent/src/types.ts:332-358 |
| AgentSession | Orchestration layer for the coding assistant | packages/coding-agent/src/core/agent-session.ts:244-253 |
| AgentSessionEvent | Events emitted upward by the coding assistant | packages/coding-agent/src/core/agent-session.ts:121-143 |
| TUI | Diff-rendered terminal UI core | packages/tui/src/tui.ts:239-260 |
| AgentInterface | Web-side session-host Lit element | packages/web-ui/src/components/AgentInterface.ts:20-40 |
External resources
- Official repo:
- npm packages:
@mariozechner/pi-ai,@mariozechner/pi-agent-core,@mariozechner/pi-coding-agent,@mariozechner/pi-tui,@mariozechner/pi-web-ui
This site only covers architecture and source location. For install and usage, see the official README.