Options for the task function
interface TaskOptionsThe cache policy for the task. Configures how the task should be cached.
The name of the task, analogous to the node name in StateGraph.
The retry policy for the task. Configures how many times and under what conditions the task should be retried if it fails.
Maximum duration for a single attempt of this task. Accepts a number of milliseconds (a hard wall-clock cap) or a TimeoutPolicy for finer control. When exceeded, a NodeTimeoutError is raised and the task's retry policy (if any) decides whether to retry.