Skip to content

AcpContentBlockLike

Defined in: packages/agent/src/modules/acp/acpCommon.ts:189

The least a prompt content block is guaranteed to be in either dialect.

v1 and v2 declare their own ContentBlock unions and they are not the same type, but every member of both carries a type discriminator and nothing below reads a field without checking it first. Typing the seam this way is what lets one implementation of the fencing serve both, which is the point of keeping it here.

readonly type: string

Defined in: packages/agent/src/modules/acp/acpCommon.ts:190