Finish#
- class scikitplot.agent.Finish(name, answer=None, on_rejected=None, max_visits=None, on_exhausted=None)[source]#
A node that ends the run with an answer.
- Parameters:
- namestr
Node name, unique in the graph.
- answercallable or None, default=None
answer(view) -> JSON value;Noneanswers with every channel.- on_rejectedstr or None, default=None
Node entered when the agent’s done criterion rejects the answer.
Nonemakes a rejection end the workflow with an error.
- Raises:
- WorkflowError
If a field is malformed.
- Parameters: