Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Glossary

Term中文Description
Thread会话线程Persisted conversation + state history.
Run运行One execution attempt over a thread.
Phase阶段Named step in the execution loop (RunStart, StepStart, BeforeInference, AfterInference, BeforeToolExecute, AfterToolExecute, StepEnd, RunEnd).
Snapshot快照Immutable state snapshot (struct Snapshot { revision: u64, ext: Arc<StateMap> }) seen by phase hooks.
StateKey状态键Typed key with scope, merge strategy, and value type.
MutationBatch变更批次Collected state mutations applied atomically after phase convergence.
AgentRuntime智能体运行时Orchestration layer for agent resolution and run execution.
AgentSpec智能体规约Serializable agent definition with model, prompt, tools, plugins.
AgentEvent智能体事件Canonical runtime stream event.
Plugin插件System-level lifecycle hook registered via PluginRegistrar.
PluginRegistrar插件注册器Registration API for phase hooks, tools, state keys, handlers.
PhaseHook阶段钩子Async hook executed during a specific phase.
PhaseContext阶段上下文Immutable context passed to phase hooks.
StateCommand状态命令Result of a phase hook: mutations + scheduled actions + effects.
Tool工具User-facing capability with descriptor, validation, and execution.
ToolDescriptor工具描述符Tool metadata: id, name, description, parameters schema.
ToolResult工具结果Tool execution result: success, error, or suspended.
ToolCallContext工具调用上下文Execution context with state access, identity, and activity reporting.
TerminationReason终止原因Why a run ended (NaturalEnd, Stopped, Error, etc.).
SuspendTicket挂起票据Suspension payload with pending call and resume mode.
MailboxJob邮箱任务Durable job entry for async/HITL workflows.
RunRequest运行请求Input to start a run: messages, thread ID, agent ID.
MergeStrategy合并策略How parallel state mutations are reconciled: Exclusive (conflict = error) or Commutative (order-independent).
KeyScope键作用域Lifetime of a state key: Run (per-execution) or Thread (persisted across runs).
StateMap状态映射Type-safe heterogeneous map backing Snapshot.
RunStatus运行状态Coarse run status: Running, Waiting, Done.
ToolCallStatus工具调用状态Per-call status: New, Running, Suspended, Resuming, Succeeded, Failed, Cancelled.
ResolvedAgent已解析智能体Agent fully resolved from registries with config, tools, plugins, and executor.
AgentResolver智能体解析器Trait that resolves an agent spec ID into a ResolvedAgent.
BuildError构建错误Error from AgentRuntimeBuilder when validation or wiring fails.
RuntimeError运行时错误Error during agent loop execution.
InferenceOverride推理覆盖Per-request override for model, temperature, max_tokens, reasoning_effort.
ContextWindowPolicy上下文窗口策略Token budget and compaction rules for context management.
StreamEvent流事件Envelope wrapping AgentEvent with sequence number and timestamp.
TokenUsage令牌用量Token consumption report from LLM inference.
ExecutionEnv执行环境Assembled runtime environment holding hooks, handlers, tools, and plugins.
CommitHook提交钩子Hook invoked when state is committed to storage.