Options for the task function

interface TaskOptions {
    cachePolicy?: CachePolicy;
    name: string;
    retry?: RetryPolicy;
}

Properties

cachePolicy?: CachePolicy

The cache policy for the task. Configures how the task should be cached.

name: string

The name of the task, analogous to the node name in StateGraph.

retry?: RetryPolicy

The retry policy for the task. Configures how many times and under what conditions the task should be retried if it fails.