AI flow generated config currently broken and needs to be updated to latest flow config version spec
About
The flow configuration that AI Catalog generates no longer matches the flow configuration expected by Workflow Service #568914 (comment 2745189918).
The means AI Catalog cannot run flows/agents.
Proposal
The config needs to change in the following way:
diff --git a/ee/lib/ai/catalog/duo_workflow_payload_builder/experimental.rb b/ee/lib/ai/catalog/duo_workflow_payload_builder/experimental.rb
index 529a44357358..43df3e8b07e3 100644
--- a/ee/lib/ai/catalog/duo_workflow_payload_builder/experimental.rb
+++ b/ee/lib/ai/catalog/duo_workflow_payload_builder/experimental.rb
@@ -8,7 +8,8 @@ class Experimental < Base
FLOW_ENVIRONMENT = 'remote'
AGENT_COMPONENT_TYPE = 'AgentComponent'
DEFAULT_INPUTS = [{ 'from' => 'context:goal', 'as' => 'goal' }].freeze
- LLM_CONFIG_FILE = 'claude_4_0'
+ LLM_MODEL_CLASS_PROVIDER = 'anthropic'
+ LLM_MODEL_CLASS_NAME = 'claude-opus-4-20250514'
MAX_TOKEN_SIZE = 8_192
DUO_FLOW_TIMEOUT = 30
PLACEHOLDER_VALUE = 'history'
@@ -96,8 +97,9 @@ def prompt_component(step)
{
'prompt_id' => step_prompt_id(step),
'model' => {
- 'config_file' => LLM_CONFIG_FILE,
'params' => {
+ 'model_class_provider' => LLM_MODEL_CLASS_PROVIDER,
+ 'model' => LLM_MODEL_CLASS_NAME,
'max_tokens' => MAX_TOKEN_SIZE
}
},
Edited by Luke Duncalfe