Class AgentNode

All Implemented Interfaces:
WorkflowNode

public final class AgentNode extends AbstractWorkflowNode
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 Details

    • AgentNode

      public AgentNode()
  • Method Details

    • type

      public String type()
      Description copied from interface: WorkflowNode
      The element name (start, script, ...), matching the @JsonSubTypes names. Not getType(), so bean scanning ignores it.
    • getRef

      public String getRef()
    • setRef

      public void setRef(String ref)
    • getNext

      public String getNext()
    • setNext

      public void setNext(String next)
    • getOutput

      public List<OutputField> getOutput()
    • setOutput

      public void setOutput(List<OutputField> output)
    • getPrompt

      public String getPrompt()
    • setPrompt

      public void setPrompt(String prompt)
    • getAsync

      public Boolean getAsync()
    • setAsync

      public void setAsync(Boolean async)
    • runsAsync

      public boolean runsAsync()
      getAsync(), with the default resolved: absent reads as true.