Package com.axelor.workflow.plan
Record Class WorkflowPlan.AgentStep
java.lang.Object
java.lang.Record
com.axelor.workflow.plan.WorkflowPlan.AgentStep
- All Implemented Interfaces:
WorkflowPlan.Step
- Enclosing class:
WorkflowPlan
public static record WorkflowPlan.AgentStep(String id, String agentCode, String prompt, List<AgentOutputField> output, String title, String description, boolean async, String next, List<WorkflowPlan.Boundary> boundaries)
extends Record
implements WorkflowPlan.Step
Invokes an AI agent with
prompt and binds the answer as agent. output
is the shape the node declared, empty when it declared none.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theagentCoderecord component.booleanasync()Returns the value of theasyncrecord component.Returns the value of theboundariesrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.next()Returns the value of thenextrecord component.output()Returns the value of theoutputrecord component.prompt()Returns the value of thepromptrecord component.targets()title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.type()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.axelor.workflow.plan.WorkflowPlan.Step
catching
-
Constructor Details
-
AgentStep
public AgentStep(String id, String agentCode, String prompt, List<AgentOutputField> output, String title, String description, boolean async, String next, List<WorkflowPlan.Boundary> boundaries) Creates an instance of aAgentSteprecord class.- Parameters:
id- the value for theidrecord componentagentCode- the value for theagentCoderecord componentprompt- the value for thepromptrecord componentoutput- the value for theoutputrecord componenttitle- the value for thetitlerecord componentdescription- the value for thedescriptionrecord componentasync- the value for theasyncrecord componentnext- the value for thenextrecord componentboundaries- the value for theboundariesrecord component
-
-
Method Details
-
type
- Specified by:
typein interfaceWorkflowPlan.Step
-
targets
- Specified by:
targetsin interfaceWorkflowPlan.Step
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
id
Returns the value of theidrecord component.- Specified by:
idin interfaceWorkflowPlan.Step- Returns:
- the value of the
idrecord component
-
agentCode
Returns the value of theagentCoderecord component.- Returns:
- the value of the
agentCoderecord component
-
prompt
Returns the value of thepromptrecord component.- Returns:
- the value of the
promptrecord component
-
output
Returns the value of theoutputrecord component.- Returns:
- the value of the
outputrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
async
public boolean async()Returns the value of theasyncrecord component.- Specified by:
asyncin interfaceWorkflowPlan.Step- Returns:
- the value of the
asyncrecord component
-
next
Returns the value of thenextrecord component.- Returns:
- the value of the
nextrecord component
-
boundaries
Returns the value of theboundariesrecord component.- Specified by:
boundariesin interfaceWorkflowPlan.Step- Returns:
- the value of the
boundariesrecord component
-