ACP v2 (Preview) TypeScript SDK — EXPERIMENTAL - v2.12.1
    Preparing search index...

    Type Alias SystemPromptExperimental

    Client-provided system-level instructions for a session.

    Clients MUST only send this when the Agent advertises session.systemPrompt. Agents that cannot apply it, for example because of an unadvertised mode or an unsupported content block type, MUST return an error instead of creating or resuming the session.

    type SystemPrompt = {
        mode: SystemPromptMode;
        content: ContentBlock[];
        _meta?: { [key: string]: unknown } | null;
    }
    Index

    How the Agent combines content with its own instructions.

    Required. Agents MUST return an error for a mode they do not support rather than treating it as append or override.

    content: ContentBlock[]

    The system prompt content.

    Agents advertising the capability MUST accept text content blocks. Clients MUST NOT send other content block types until a future capability allows them, and Agents MUST return an error for content blocks they do not support, including unknown types.

    Clients MUST NOT send an empty array. Agents MAY reject one with -32602 without creating or resuming the session.

    _meta?: { [key: string]: unknown } | null

    The _meta property is reserved by ACP to allow Clients and Agents to attach additional metadata to their interactions. Omitted and null are equivalent and mean no metadata. Implementations MUST NOT assign meaning to keys they do not recognize.

    See protocol docs: Extensibility