Package com.smartgwt.client.ai
Class WorkflowBuilderCoTResult
java.lang.Object
com.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.core.RefDataClass
com.smartgwt.client.util.AsyncOperationResult
com.smartgwt.client.ai.WorkflowBuilderCoTResult
- All Implemented Interfaces:
HasHandlers
The shape of the resolved output of a WorkflowBuilderCoTProcess run, available via
AsyncOperationResult.output once CoTProcess.asyncStart() completes.-
Field Summary
Fields inherited from class com.smartgwt.client.core.RefDataClass
idFields inherited from class com.smartgwt.client.core.DataClass
factoryCreated, factoryProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOne entry per step actually added this invocation, oldest first, each{addedEditNode, addedTaskType, addedTitle}.Convenience alias for the last entry'saddedTaskTypeinaddedSteps.Convenience alias for the last entry'saddedTitleinaddedSteps.Exploration entries accumulated this call (the inputexplorationHistoryplus, if exploration ran, one new entry per explored step).Convenience alias for the last entry'sfailureHandlerEditNodeinaddedSteps, when present.Convenience alias for the last entry'sfailureHandlerTitleinaddedSteps, when present.static WorkflowBuilderCoTResultgetOrCreateRef(JavaScriptObject jsObj) Present only whenrefusedistrue; a short natural-language explanation suitable for display to the end user.truewhenstepIntent(or, mid-decomposition, the current step decided bydecideNextStep) does not map to any available DataSource operation, UI action, or branch point, or whenmaxDecomposedStepswas reached.setAddedEditNode(EditNode addedEditNode) setAddedSteps(WorkflowBuilderAddedStep... addedSteps) One entry per step actually added this invocation, oldest first, each{addedEditNode, addedTaskType, addedTitle}.setAddedTaskType(String addedTaskType) Convenience alias for the last entry'saddedTaskTypeinaddedSteps.setAddedTitle(String addedTitle) Convenience alias for the last entry'saddedTitleinaddedSteps.setExplorationHistory(WorkflowExplorationEntry... explorationHistory) Exploration entries accumulated this call (the inputexplorationHistoryplus, if exploration ran, one new entry per explored step).setFailureHandlerEditNode(EditNode failureHandlerEditNode) Convenience alias for the last entry'sfailureHandlerEditNodeinaddedSteps, when present.setFailureHandlerTitle(String failureHandlerTitle) Convenience alias for the last entry'sfailureHandlerTitleinaddedSteps, when present.setRefusalReason(String refusalReason) Present only whenrefusedistrue; a short natural-language explanation suitable for display to the end user.setRefused(Boolean refused) truewhenstepIntent(or, mid-decomposition, the current step decided bydecideNextStep) does not map to any available DataSource operation, UI action, or branch point, or whenmaxDecomposedStepswas reached.Methods inherited from class com.smartgwt.client.util.AsyncOperationResult
getCancellationReason, getDisabledMessage, getErrorMessage, getType, setCancellationReason, setDisabledMessage, setErrorMessage, setTypeMethods inherited from class com.smartgwt.client.core.RefDataClass
getRef, getRef, internalSetIDMethods inherited from class com.smartgwt.client.core.DataClass
applyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated
-
Constructor Details
-
WorkflowBuilderCoTResult
public WorkflowBuilderCoTResult() -
WorkflowBuilderCoTResult
-
-
Method Details
-
getOrCreateRef
-
setAddedEditNode
- Parameters:
addedEditNode- New addedEditNode value. Default value is null- Returns:
WorkflowBuilderCoTResultinstance, for chaining setter calls
-
getAddedEditNode
- Returns:
- Current addedEditNode value. Default value is null
-
setAddedSteps
One entry per step actually added this invocation, oldest first, each{addedEditNode, addedTaskType, addedTitle}. InsingleStepmode, or when the default decomposition only ever needed one step, this has exactly one entry. An entry additionally carriesfailureHandlerEditNode/failureHandlerTitlewhen that step's intent named explicit failure handling (seestepIntent) - the siblingShowNotificationTaskEditNode committed alongside it, wired viafailureElement, not chained into the normal flow.- Parameters:
addedSteps- New addedSteps value. Default value is null- Returns:
WorkflowBuilderCoTResultinstance, for chaining setter calls
-
getAddedSteps
One entry per step actually added this invocation, oldest first, each{addedEditNode, addedTaskType, addedTitle}. InsingleStepmode, or when the default decomposition only ever needed one step, this has exactly one entry. An entry additionally carriesfailureHandlerEditNode/failureHandlerTitlewhen that step's intent named explicit failure handling (seestepIntent) - the siblingShowNotificationTaskEditNode committed alongside it, wired viafailureElement, not chained into the normal flow.- Returns:
- Current addedSteps value. Default value is null
-
setAddedTaskType
Convenience alias for the last entry'saddedTaskTypeinaddedSteps.- Parameters:
addedTaskType- New addedTaskType value. Default value is null- Returns:
WorkflowBuilderCoTResultinstance, for chaining setter calls- See Also:
-
getAddedTaskType
Convenience alias for the last entry'saddedTaskTypeinaddedSteps.- Returns:
- Current addedTaskType value. Default value is null
- See Also:
-
setAddedTitle
Convenience alias for the last entry'saddedTitleinaddedSteps.- Parameters:
addedTitle- New addedTitle value. Default value is null- Returns:
WorkflowBuilderCoTResultinstance, for chaining setter calls
-
getAddedTitle
Convenience alias for the last entry'saddedTitleinaddedSteps.- Returns:
- Current addedTitle value. Default value is null
-
setExplorationHistory
public WorkflowBuilderCoTResult setExplorationHistory(WorkflowExplorationEntry... explorationHistory) Exploration entries accumulated this call (the inputexplorationHistoryplus, if exploration ran, one new entry per explored step). Only the most recent entry carries the full result sample; earlier entries are trimmed to a one-line summary.- Parameters:
explorationHistory- New explorationHistory value. Default value is null- Returns:
WorkflowBuilderCoTResultinstance, for chaining setter calls
-
getExplorationHistory
Exploration entries accumulated this call (the inputexplorationHistoryplus, if exploration ran, one new entry per explored step). Only the most recent entry carries the full result sample; earlier entries are trimmed to a one-line summary.- Returns:
- Current explorationHistory value. Default value is null
-
setFailureHandlerEditNode
Convenience alias for the last entry'sfailureHandlerEditNodeinaddedSteps, when present.- Parameters:
failureHandlerEditNode- New failureHandlerEditNode value. Default value is null- Returns:
WorkflowBuilderCoTResultinstance, for chaining setter calls
-
getFailureHandlerEditNode
Convenience alias for the last entry'sfailureHandlerEditNodeinaddedSteps, when present.- Returns:
- Current failureHandlerEditNode value. Default value is null
-
setFailureHandlerTitle
Convenience alias for the last entry'sfailureHandlerTitleinaddedSteps, when present.- Parameters:
failureHandlerTitle- New failureHandlerTitle value. Default value is null- Returns:
WorkflowBuilderCoTResultinstance, for chaining setter calls
-
getFailureHandlerTitle
Convenience alias for the last entry'sfailureHandlerTitleinaddedSteps, when present.- Returns:
- Current failureHandlerTitle value. Default value is null
-
setRefusalReason
Present only whenrefusedistrue; a short natural-language explanation suitable for display to the end user.- Parameters:
refusalReason- New refusalReason value. Default value is null- Returns:
WorkflowBuilderCoTResultinstance, for chaining setter calls
-
getRefusalReason
Present only whenrefusedistrue; a short natural-language explanation suitable for display to the end user.- Returns:
- Current refusalReason value. Default value is null
-
setRefused
truewhenstepIntent(or, mid-decomposition, the current step decided bydecideNextStep) does not map to any available DataSource operation, UI action, or branch point, or whenmaxDecomposedStepswas reached. This ends the session but is a partial success, not a rollback - whatever steps are already inaddedStepsstay in the Workflow.- Parameters:
refused- New refused value. Default value is false- Returns:
WorkflowBuilderCoTResultinstance, for chaining setter calls
-
getRefused
truewhenstepIntent(or, mid-decomposition, the current step decided bydecideNextStep) does not map to any available DataSource operation, UI action, or branch point, or whenmaxDecomposedStepswas reached. This ends the session but is a partial success, not a rollback - whatever steps are already inaddedStepsstay in the Workflow.- Returns:
- Current refused value. Default value is false
-