Module agentforge4j.runtime
Package com.agentforge4j.runtime.command
Enum Class CommandApplicationResult
- All Implemented Interfaces:
Serializable,Comparable<CommandApplicationResult>,Constable
Outcome of applying a sequence of
LlmCommands in order.
Behaviour handlers translate this to execution outcomes via non-exported
CommandApplicationResults helpers so command handling stays decoupled from the execution
package.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAnESCALATEcommand was applied — the run waits forWorkflowRuntime.approve(String, String, String, String).AUSER_PROMPTwithresponseRequired=trueor aGENERATE_QUESTIONScommand was applied — the run waits forWorkflowRuntime.submitInput(String, java.util.Map, String).ATOOL_INVOCATIONrequires human approval before execution (policyRequireApproval) — the run waits forWorkflowRuntime.continueAfterToolApproval(String, String, com.agentforge4j.core.spi.tool.ApprovalDecision).ATOOL_INVOCATIONwas denied by policy or failed after retries — the run waits for an operatorToolDecisionviaWorkflowRuntime.resolveToolDecision(String, String, com.agentforge4j.core.spi.tool.ToolDecision).ACOMPLETEcommand was applied — the enclosing loop should treat the iteration as finished.Batch applied so far with no pause, completion signal, or escalation — execution continues with the next command or step. -
Method Summary
Modifier and TypeMethodDescriptionstatic CommandApplicationResultReturns the enum constant of this class with the specified name.static CommandApplicationResult[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONTINUE
Batch applied so far with no pause, completion signal, or escalation — execution continues with the next command or step. -
COMPLETE_SIGNAL
ACOMPLETEcommand was applied — the enclosing loop should treat the iteration as finished. -
AWAITING_INPUT
AUSER_PROMPTwithresponseRequired=trueor aGENERATE_QUESTIONScommand was applied — the run waits forWorkflowRuntime.submitInput(String, java.util.Map, String). -
AWAITING_APPROVAL
AnESCALATEcommand was applied — the run waits forWorkflowRuntime.approve(String, String, String, String). -
AWAITING_TOOL_APPROVAL
ATOOL_INVOCATIONrequires human approval before execution (policyRequireApproval) — the run waits forWorkflowRuntime.continueAfterToolApproval(String, String, com.agentforge4j.core.spi.tool.ApprovalDecision). -
AWAITING_TOOL_DECISION
ATOOL_INVOCATIONwas denied by policy or failed after retries — the run waits for an operatorToolDecisionviaWorkflowRuntime.resolveToolDecision(String, String, com.agentforge4j.core.spi.tool.ToolDecision).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-