The parameters for querying a task.

interface TaskQueryParams {
    historyLength?: number;
    id: string;
    metadata?: {
        [k: string]: unknown;
    };
}

Properties

historyLength?: number

The number of most recent messages from the task's history to retrieve.

id: string

The unique identifier of the task.

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

Optional metadata associated with the request.

Type declaration

  • [k: string]: unknown