Interface CoTExecutionModels


public interface CoTExecutionModels
Smart GWT supports two broad patterns for AI-assisted apps:
  • AIWorkflow ? a deterministic, testable workflow where each step is a CoTTask and transitions are explicit. This model emphasizes reliability, observability, and repeatability.
  • AIToolbox ? an ad hoc, flexible toolset where the AI can decide among many capabilities dynamically. This model is great for rapid prototyping or lightweight integrations where flexibility matters more than determinism.
Smart GWT supports both models, but we generally recommend AIWorkflow for enterprise tools where reliability and observability are critical, and AIToolbox for rapid prototyping or lightweight integrations where flexibility is more important than determinism. Often, an AIToolbox approach is used for prototyping and then evolves into an AIWorkflow approach as determinism, testability, and predictability become key for deployed tools.

See also: - CoTProcess and CoTTask for the workflow APIs
- CoT History for how history is recorded and surfaced in prompts