ICopilotRegistration
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Pure matching policy and host effect for one workflow.
export interface ICopilotRegistration<TBuild extends string = CopilotBuildType>
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
| (event: ChatDefinitionReceivedEvent, applicationId: string, target: ICopilotTarget<TBuild>) => void | (ALPHA) Apply the accepted definition, then explicitly acknowledge its application ID. | |
| (event: ChatDefinitionReceivedEvent, context: ICopilotContext<TBuild>, snapshot: ICopilotSnapshot<TBuild>) => ICopilotTarget<TBuild> | undefined | (ALPHA) Pure acceptance policy; return undefined to reject a definition. | |
| readonly AgentCustomSkill[] | (ALPHA) Skills that activate this workflow. | |
| TBuild | (ALPHA) Workflow activated by these skills. |
Property details
ICopilotRegistration.onApplyDefinitionpropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Apply the accepted definition, then explicitly acknowledge its application ID.
readonly onApplyDefinition: (event: ChatDefinitionReceivedEvent, applicationId: string, target: ICopilotTarget<TBuild>) => void;
ICopilotRegistration.resolveDefinitionpropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Pure acceptance policy; return undefined to reject a definition.
readonly resolveDefinition: (event: ChatDefinitionReceivedEvent, context: ICopilotContext<TBuild>, snapshot: ICopilotSnapshot<TBuild>) => ICopilotTarget<TBuild> | undefined;
ICopilotRegistration.skillspropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Skills that activate this workflow.
readonly skills: readonly AgentCustomSkill[];
ICopilotRegistration.typepropertyAlpha
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Workflow activated by these skills.
readonly type: TBuild;