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

    Type Alias TextResourceContents

    Text-based resource contents.

    type TextResourceContents = {
        text: string;
        uri: string;
        mimeType?: MediaType | null;
        _meta?: { [key: string]: unknown } | null;
    }
    Index
    text: string

    The contents of the resource. Its mimeType, when provided, describes the format.

    uri: string

    URI associated with this resource or media payload.

    mimeType?: MediaType | null

    MIME type describing the encoded media payload.

    Omitted and null are equivalent and mean the MIME type is not specified.

    _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