Prometheus Entity Management API
    Preparing search index...

    Message is one unit of communication between client and server. It can be associated with a context and/or a task. For server messages, context_id must be provided, and task_id only if a task was created. For client messages, both fields are optional, with the caveat that if both are provided, they have to match (the context_id has to be the one that is set on the task). If only task_id is provided, the server will infer context_id from it.

    interface Message {
        contextId: string;
        extensions: string[];
        messageId: string;
        metadata: { [key: string]: any } | undefined;
        parts: Part[];
        referenceTaskIds: string[];
        role: Role;
        taskId: string;
    }
    Index
    contextId: string

    Optional. The context id of the message. If set, the message will be associated with the given context.

    extensions: string[]

    The URIs of extensions that are present or contributed to this Message.

    messageId: string

    The unique identifier (e.g. UUID) of the message. This is created by the message creator.

    metadata: { [key: string]: any } | undefined

    Optional. Any metadata to provide along with the message.

    parts: Part[]

    Parts is the container of the message content.

    referenceTaskIds: string[]

    A list of task IDs that this message references for additional context.

    role: Role

    Identifies the sender of the message.

    taskId: string

    Optional. The task id of the message. If set, the message will be associated with the given task.