配置、清单与策略
Kit · 可选业务库 · 返回本层目录
| 符号 | 类别 | 用途 |
|---|---|---|
AgentCatalogPorts | interface | Ports the catalog reads from the App's registries. |
CatalogGoal | interface | Goal as the catalog sees it: an id plus its declared delegates. |
CatalogScope | interface | Scope as the catalog sees it: an id plus the tools it may use. |
CatalogTask | interface | The goal currently accepted for the request, used to narrow the catalog. |
CatalogTool | interface | Tool facts the catalog needs, independent of lifecycle details. |
defineAgentCatalog | function | Compile a catalog projection over the App's live registries. The actual registries determine availability and relationships. No parallel capability list exists: goalIds filters by tool support, modelCatalog narrows to the currently accepted task when restrictToTask is enabled, and scope tool ids are filtered to tools that exist. |
definePolicySet | function | Compile a policy set that reports every matching reason. Collect every matching reason; a configured mode cannot silently override a mandatory policy. assess returns the matched ids and deduplicated kinds rather than a single verdict, so callers keep the ordering information they need for messages and diagnostics. |
defineRecoveryChain | function | Compile an ordered recovery chain. A handler reports whether it handled the input; handled undefined values remain explicit. The first handler that reports handled ends the walk, so declaration order is the precedence, and { handled: false } is the only way to fall through. |
DescribedTool | interface | Model- or host-facing description of one tool. |
Policies | constant | |
PolicyAssessment | interface | Result of assessing every registered policy against one input. |
PolicyDefinition | interface | One declarative policy. |
RecoveryDefinition | interface | One recovery handler in an ordered chain. |
RecoveryResult | type | Outcome of one recovery handler, or of the whole chain. |