Interface CoT
In Smart GWT, CoTTask and
CoTProcess add declarative AI-based workflow features on top of core declarative workflow
features of Process
and Task
.
Specifically, CoTTask
implements a
default approach to prompt assembly within a CoT, has the logic to contact an AI (LLM),
automatically manages AI-driven transitions between states of the workflow, and has features
for declaratively updating the shared Process.state
, including a history mechanism
to
help the AI maintain context as it moves through the workflow (see CoTExecutionModels
).
CoTProcess
extends the existing
Process
class with some features to coordinate with CoTTask
, such as
providing prompt pieces that are common to all tasks as well as centrally defining
CoTProcess.optionalPrompts prompt parts that might be used by multiple tasks.