Task#
- class scikitplot.agent.Task(name, tool, arguments=None, into=None, update=None, max_visits=None, on_exhausted=None)[source]#
A node that calls one tool.
- Parameters:
- namestr
Node name, unique in the graph.
- toolTool
The tool to call.
- argumentsmapping, callable or None, default=None
The call’s arguments, or
arguments(view) -> mapping.Noneis no arguments.- intostr or None, default=None
Channel the result is reduced into when the call executed.
- updatecallable or None, default=None
update(view, result) -> {channel: value}, each value reduced into its channel, instead ofinto.- max_visitsint or None, default=None
How many times the node may be entered; required on every loop.
- on_exhaustedstr or None, default=None
Node entered instead once
max_visitsis reached.Nonemakes reaching the bound an error.
- Raises:
- WorkflowError
If a field is malformed.
- Parameters: