The result, containing the final state of the canceled Task object.

interface Task {
    artifacts?: Artifact[];
    contextId: string;
    history?: Message1[];
    id: string;
    kind: "task";
    metadata?: {
        [k: string]: unknown;
    };
    status: TaskStatus;
}

Properties

artifacts?: Artifact[]

A collection of artifacts generated by the agent during the execution of the task.

contextId: string

A server-generated identifier for maintaining context across multiple related tasks or interactions.

history?: Message1[]

An array of messages exchanged during the task, representing the conversation history.

id: string

A unique identifier for the task, generated by the server for a new task.

kind: "task"

The type of this object, used as a discriminator. Always 'task' for a Task.

metadata?: {
    [k: string]: unknown;
}

Optional metadata for extensions. The key is an extension-specific identifier.

Type declaration

  • [k: string]: unknown
status: TaskStatus