Package com.axelor.meta.schema.workflows
Class AgentNode
java.lang.Object
com.axelor.meta.schema.workflows.AbstractWorkflowNode
com.axelor.meta.schema.workflows.AgentNode
- All Implemented Interfaces:
WorkflowNode
Invokes an AI agent (
ref) with the <prompt> template, then continues to
next. An optional <output> declares the answer's shape: the model is told it, and the
answer is checked against it before any later node reads it.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetAsync()getNext()getRef()booleangetAsync(), with the default resolved: absent reads astrue.voidvoidvoidsetOutput(List<OutputField> output) voidvoidtype()The element name (start,script, ...), matching the@JsonSubTypesnames.Methods inherited from class com.axelor.meta.schema.workflows.AbstractWorkflowNode
getDescription, getId, getTitle, setDescription, setId, setTitle
-
Constructor Details
-
AgentNode
public AgentNode()
-
-
Method Details
-
type
Description copied from interface:WorkflowNodeThe element name (start,script, ...), matching the@JsonSubTypesnames. NotgetType(), so bean scanning ignores it. -
getRef
-
setRef
-
getNext
-
setNext
-
getOutput
-
setOutput
-
getPrompt
-
setPrompt
-
getAsync
-
setAsync
-
runsAsync
public boolean runsAsync()getAsync(), with the default resolved: absent reads astrue.
-