langchain.js
    Preparing search index...

    Options for the task function

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

    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.