Optional
cacheThe cache policy for the task. Configures how the task should be cached.
The name of the task, analogous to the node name in StateGraph.
Optional
retryThe retry policy for the task. Configures how many times and under what conditions the task should be retried if it fails.
Options for the task function