Skip to content

RAGFlow is an agent-native database: a Retrieval-Augmented Generation (RAG) engine that grew into context infrastructure.

fix(agent): serialize UserFillUp inputs as objects (#21508)

Sbaaoui Idrissab10171a594c
diff --git a/web/src/pages/agent/utils.ts b/web/src/pages/agent/utils.ts
index 43631a4566..c59e48ce86 100644
--- a/web/src/pages/agent/utils.ts
+++ b/web/src/pages/agent/utils.ts
@@ -773,6 +773,20 @@ export const buildDslComponentsByGraph = (
case Operator.Begin:
params = transformBeginParams(params);
break;
+ case Operator.UserFillUp:
+ if (Array.isArray(params.inputs)) {
+ params = {
+ ...params,
+ inputs: params.inputs.reduce(
+ (inputs, { key, ...value }) => {
+ inputs[key] = value;
+ return inputs;
+ },
+ {} as Record<string, Omit<BeginQuery, 'key'>>,
+ ),
+ };
+ }
+ break;
default:
break;
}