Type alias TaskOptions

TaskOptions: {
    name: string;
    retry?: RetryPolicy;
}

Options for the task function

Type declaration

  • name: string

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

  • Optional retry?: RetryPolicy

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