Skip to content

Glossary and References

源码版本v0.73.1

Core terms

TermMeaningSource location
ProviderAn LLM service (Anthropic, OpenAI, etc.)packages/ai/src/types.ts:19-70
ApiAn API endpoint type (anthropic-messages, openai-responses, etc.)packages/ai/src/types.ts:6-19
StreamFunctionThe unified streaming call signaturepackages/ai/src/types.ts:155-170
AssistantMessageEventIncremental events during streaming (text_delta, toolcall_start, etc.)packages/ai/src/types.ts:269-290
EventStreamAsync iterator + result() promisepackages/ai/src/utils/event-stream.ts:4-68
AgentGeneral agent instance, holds state and queuespackages/agent/src/agent.ts:158-170
runLoopDouble while main looppackages/agent/src/agent-loop.ts:155-172
AgentToolTool interface, includes executepackages/agent/src/types.ts:332-358
AgentSessionOrchestration layer for the coding assistantpackages/coding-agent/src/core/agent-session.ts:244-253
AgentSessionEventEvents emitted upward by the coding assistantpackages/coding-agent/src/core/agent-session.ts:121-143
TUIDiff-rendered terminal UI corepackages/tui/src/tui.ts:239-260
AgentInterfaceWeb-side session-host Lit elementpackages/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.