Skip to content

acpTerminationMeta

acpTerminationMeta(reason): Record<string, unknown> | undefined

Defined in: packages/agent/src/modules/acp/acpStopReason.ts:120

The classification as structured metadata, for the _meta of an ACP response or the data of an ACP error.

Namespaced, because _meta is a shared bag whose keys are reserved by convention rather than by the protocol. Returns undefined for an unclassified ending rather than a placeholder object: a client must be able to tell “we did not classify this” from “we classified it as nothing”.

GthTerminationReason | null | undefined

Record<string, unknown> | undefined