Skip to content
English

配置、清单与策略 ​

Kit · 可选业务库 · 返回本层目录

符号类别用途
AgentCatalogPortsinterfacePorts the catalog reads from the App's registries.
CatalogGoalinterfaceGoal as the catalog sees it: an id plus its declared delegates.
CatalogScopeinterfaceScope as the catalog sees it: an id plus the tools it may use.
CatalogTaskinterfaceThe goal currently accepted for the request, used to narrow the catalog.
CatalogToolinterfaceTool facts the catalog needs, independent of lifecycle details.
defineAgentCatalogfunctionCompile 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.
definePolicySetfunctionCompile 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.
defineRecoveryChainfunctionCompile 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.
DescribedToolinterfaceModel- or host-facing description of one tool.
Policiesconstant
PolicyAssessmentinterfaceResult of assessing every registered policy against one input.
PolicyDefinitioninterfaceOne declarative policy.
RecoveryDefinitioninterfaceOne recovery handler in an ordered chain.
RecoveryResulttypeOutcome of one recovery handler, or of the whole chain.

接口参考、使用示例与开发指南。