Package com.smartgwt.client.ai
Class WorkflowBuilderCoTParams
java.lang.Object
com.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.ai.WorkflowBuilderCoTParams
- All Implemented Interfaces:
HasHandlers
The shape of
process.state to populate before starting a WorkflowBuilderCoTProcess directly (its own class documentation covers the three ways this process may be invoked - as a sub-process of AI.buildUI(), standalone, or via the EventStream/UISession convergence).-
Field Summary
Fields inherited from class com.smartgwt.client.core.DataClass
factoryCreated, factoryProperties -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]Optional array of UI component IDs the AI may target with a UI-action step (FormSetFieldValueTask/GridSelectRecordsTask/SelectTabTask/ ClickButtonTask, among others).String[]Array of DataSource IDs the AI may target.Whentrue, restrictspickStepso the AI cannot select anything but a DSFetchTask/DSAddTask/DSUpdateTask/DSRemoveTask - UI actions, notifications, and branch points are not offered at all.The live EditContext the Workflow is being built in.Optional.Optional.static WorkflowBuilderCoTParamsgetOrCreateRef(JavaScriptObject jsObj) The root Process EditNode withineditContextto append the new task under.Whentrue,stepIntentis treated as exactly one atomic step (the original, pre-decomposition behavior) - no decomposition, no looping, anddecideNextStepmakes no AI call of its own.Natural-language description of the step to add.Optional.setComponentIDs(String... componentIDs) Optional array of UI component IDs the AI may target with a UI-action step (FormSetFieldValueTask/GridSelectRecordsTask/SelectTabTask/ ClickButtonTask, among others).setDataSourceIDs(String... dataSourceIDs) Array of DataSource IDs the AI may target.setDataSourceOperationsOnly(Boolean dataSourceOperationsOnly) Whentrue, restrictspickStepso the AI cannot select anything but a DSFetchTask/DSAddTask/DSUpdateTask/DSRemoveTask - UI actions, notifications, and branch points are not offered at all.setEditContext(EditContext editContext) The live EditContext the Workflow is being built in.setExplorationHistory(WorkflowExplorationEntry... explorationHistory) Optional.setExplorationSettings(Map explorationSettings) Optional.setProcessEditNode(EditNode processEditNode) The root Process EditNode withineditContextto append the new task under.setSingleStep(Boolean singleStep) Whentrue,stepIntentis treated as exactly one atomic step (the original, pre-decomposition behavior) - no decomposition, no looping, anddecideNextStepmakes no AI call of its own.setStepIntent(String stepIntent) Natural-language description of the step to add.setUiEditContext(EditContext uiEditContext) Optional.Methods 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
-
WorkflowBuilderCoTParams
public WorkflowBuilderCoTParams() -
WorkflowBuilderCoTParams
-
-
Method Details
-
getOrCreateRef
-
setComponentIDs
Optional array of UI component IDs the AI may target with a UI-action step (FormSetFieldValueTask/GridSelectRecordsTask/SelectTabTask/ ClickButtonTask, among others). When omitted or empty,pickStepdoes not offer UI-action step kinds at all - this process remains DataSource-operations-only unless a caller explicitly opts in.- Parameters:
componentIDs- New componentIDs value. Default value is null- Returns:
WorkflowBuilderCoTParamsinstance, for chaining setter calls- See Also:
-
getComponentIDs
Optional array of UI component IDs the AI may target with a UI-action step (FormSetFieldValueTask/GridSelectRecordsTask/SelectTabTask/ ClickButtonTask, among others). When omitted or empty,pickStepdoes not offer UI-action step kinds at all - this process remains DataSource-operations-only unless a caller explicitly opts in.- Returns:
- Current componentIDs value. Default value is null
- See Also:
-
setDataSourceIDs
Array of DataSource IDs the AI may target.- Parameters:
dataSourceIDs- New dataSourceIDs value. Default value is null- Returns:
WorkflowBuilderCoTParamsinstance, for chaining setter calls- See Also:
-
getDataSourceIDs
Array of DataSource IDs the AI may target.- Returns:
- Current dataSourceIDs value. Default value is null
- See Also:
-
setDataSourceOperationsOnly
Whentrue, restrictspickStepso the AI cannot select anything but a DSFetchTask/DSAddTask/DSUpdateTask/DSRemoveTask - UI actions, notifications, and branch points are not offered at all. An explicit, enforced restriction, not just an emergent property of omittingcomponentIDs(which only keeps UI-action step kinds out - branching and notification steps are still offered unconditionally once other conditions are met).- Parameters:
dataSourceOperationsOnly- New dataSourceOperationsOnly value. Default value is false- Returns:
WorkflowBuilderCoTParamsinstance, for chaining setter calls
-
getDataSourceOperationsOnly
Whentrue, restrictspickStepso the AI cannot select anything but a DSFetchTask/DSAddTask/DSUpdateTask/DSRemoveTask - UI actions, notifications, and branch points are not offered at all. An explicit, enforced restriction, not just an emergent property of omittingcomponentIDs(which only keeps UI-action step kinds out - branching and notification steps are still offered unconditionally once other conditions are met).- Returns:
- Current dataSourceOperationsOnly value. Default value is false
-
setEditContext
The live EditContext the Workflow is being built in.- Parameters:
editContext- New editContext value. Default value is null- Returns:
WorkflowBuilderCoTParamsinstance, for chaining setter calls
-
getEditContext
The live EditContext the Workflow is being built in.- Returns:
- Current editContext value. Default value is null
-
setExplorationHistory
public WorkflowBuilderCoTParams setExplorationHistory(WorkflowExplorationEntry... explorationHistory) Optional. Pass forward theexplorationHistoryoutput of a prior invocation to carry exploration context into a later step of the same multi-step build session - this process does not persist state between separatecreate()calls on its own.- Parameters:
explorationHistory- New explorationHistory value. Default value is null- Returns:
WorkflowBuilderCoTParamsinstance, for chaining setter calls
-
getExplorationHistory
Optional. Pass forward theexplorationHistoryoutput of a prior invocation to carry exploration context into a later step of the same multi-step build session - this process does not persist state between separatecreate()calls on its own.- Returns:
- Current explorationHistory value. Default value is null
-
setExplorationSettings
Optional. When{enabled:true}, a candidate DataSource-fetch step is actually executed against the real DataSource before being committed, so its live result can inform this and later steps.readOnlyOnly(defaulttruewhenever exploration is enabled) restricts exploration to fetches only - add/update/remove candidates are refused without executing, since a write cannot be meaningfully "previewed" without actually performing it.- Parameters:
explorationSettings- New explorationSettings value. Default value is null- Returns:
WorkflowBuilderCoTParamsinstance, for chaining setter calls
-
getExplorationSettings
Optional. When{enabled:true}, a candidate DataSource-fetch step is actually executed against the real DataSource before being committed, so its live result can inform this and later steps.readOnlyOnly(defaulttruewhenever exploration is enabled) restricts exploration to fetches only - add/update/remove candidates are refused without executing, since a write cannot be meaningfully "previewed" without actually performing it.- Returns:
- Current explorationSettings value. Default value is null
-
setProcessEditNode
The root Process EditNode withineditContextto append the new task under.- Parameters:
processEditNode- New processEditNode value. Default value is null- Returns:
WorkflowBuilderCoTParamsinstance, for chaining setter calls
-
getProcessEditNode
The root Process EditNode withineditContextto append the new task under.- Returns:
- Current processEditNode value. Default value is null
-
setSingleStep
Whentrue,stepIntentis treated as exactly one atomic step (the original, pre-decomposition behavior) - no decomposition, no looping, anddecideNextStepmakes no AI call of its own. When absent/false (the default),stepIntentmay describe a goal requiring several steps; the process keeps adding steps until the goal is satisfied ormaxDecomposedStepsis reached.- Parameters:
singleStep- New singleStep value. Default value is false- Returns:
WorkflowBuilderCoTParamsinstance, for chaining setter calls
-
getSingleStep
Whentrue,stepIntentis treated as exactly one atomic step (the original, pre-decomposition behavior) - no decomposition, no looping, anddecideNextStepmakes no AI call of its own. When absent/false (the default),stepIntentmay describe a goal requiring several steps; the process keeps adding steps until the goal is satisfied ormaxDecomposedStepsis reached.- Returns:
- Current singleStep value. Default value is false
-
setStepIntent
Natural-language description of the step to add. By default (seesingleStep) this may describe a compound, multi-step goal;decideNextStepdecomposes it. For a DataSource-operation step, may also explicitly describe failure handling (e.g. "...; if it fails, notify the user that the order could not be saved") -pickStepextracts that as an opt-infailureIntentandconfigureFailureHandlerauthors aShowNotificationTaskwired onto that one step's OWNfailureElement(a Task-level handler, independent ofProcess.errorTask/Process.errorTaskRef, the separate Process-wide default - see UnexpectedErrorTask). Only ever set when the intent explicitly names failure behavior; never invented.- Parameters:
stepIntent- New stepIntent value. Default value is null- Returns:
WorkflowBuilderCoTParamsinstance, for chaining setter calls
-
getStepIntent
Natural-language description of the step to add. By default (seesingleStep) this may describe a compound, multi-step goal;decideNextStepdecomposes it. For a DataSource-operation step, may also explicitly describe failure handling (e.g. "...; if it fails, notify the user that the order could not be saved") -pickStepextracts that as an opt-infailureIntentandconfigureFailureHandlerauthors aShowNotificationTaskwired onto that one step's OWNfailureElement(a Task-level handler, independent ofProcess.errorTask/Process.errorTaskRef, the separate Process-wide default - see UnexpectedErrorTask). Only ever set when the intent explicitly names failure behavior; never invented.- Returns:
- Current stepIntent value. Default value is null
-
setUiEditContext
Optional. The EditContext of the UI the Workflow is attached to (NOT this Workflow's owneditContext- a different EditContext, holding component EditNodes rather than task EditNodes). When supplied, checked first to resolve each candidate component - but NOT required for grounding: any component incomponentIDsthat resolves as a live, drawn global viaCanvas.getById()is grounded with its own fields/tabs/DataSource schema regardless of whetheruiEditContextis supplied at all.- Parameters:
uiEditContext- New uiEditContext value. Default value is null- Returns:
WorkflowBuilderCoTParamsinstance, for chaining setter calls
-
getUiEditContext
Optional. The EditContext of the UI the Workflow is attached to (NOT this Workflow's owneditContext- a different EditContext, holding component EditNodes rather than task EditNodes). When supplied, checked first to resolve each candidate component - but NOT required for grounding: any component incomponentIDsthat resolves as a live, drawn global viaCanvas.getById()is grounded with its own fields/tabs/DataSource schema regardless of whetheruiEditContextis supplied at all.- Returns:
- Current uiEditContext value. Default value is null
-