Skip to content

Home > intention-kernel > CapabilityTurnContext

CapabilityTurnContext interface ​

Runtime services available to a capability implementation.

Signature:

typescript
export interface CapabilityTurnContext

Properties ​

Property

Modifiers

Type

Description

continuation?

readonly

unknown

(Optional) Capability-owned opaque state persisted while its work remains open.

currentMessage

readonly

ConversationMessage

Current user message that produced this execution step.

hostContext?

readonly

unknown

(Optional) Serializable, turn-scoped metadata supplied by the host application.

interaction?

readonly

Interaction

(Optional) Active interaction owned by this capability, when one exists.

interactionAnswer?

readonly

InteractionAnswer

(Optional) Structured answer to the active interaction, when the turn answered it.

modelRedactions?

readonly

readonly string[]

(Optional) Sensitive values from prior capability state, available only to host code.

previousMessages

readonly

readonly ConversationMessage[]

Conversation committed before the current user message.

summary?

readonly

string

(Optional) Optional host-generated summary paired with explicitly bounded history.