Skip to content

Commit d699cff

Browse files
author
Jicheng Lu
committed
add rule args
1 parent 05624ec commit d699cff

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/routes/page/agent/[agentId]/agent-components/agent-rule.svelte

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
return {
7676
name: x.trigger_name,
7777
displayName: "",
78+
output_args: x.output_args,
7879
json_args: x.json_args
7980
};
8081
}) || [];
@@ -195,6 +196,9 @@
195196
save_to_db: true,
196197
script_name: `${rule.trigger_name}_rule.py`,
197198
script_type: AgentCodeScriptType.Src,
199+
data: {
200+
'rule_args': { ...rule.output_args }
201+
}
198202
// to do:
199203
// agent_id: agent.id,
200204
// template_name: "rule"
@@ -233,6 +237,7 @@
233237
const found = ruleOptions.find(y => y.name === x.trigger_name);
234238
return {
235239
...x,
240+
output_args: found?.output_args,
236241
json_args: found?.json_args
237242
}
238243
}) || [];
@@ -363,7 +368,7 @@
363368
id={`rule-${uid}`}
364369
data-bs-toggle="tooltip"
365370
data-bs-placement="top"
366-
title="Output arguments"
371+
title="Rule arguments"
367372
/>
368373
<BotsharpTooltip
369374
containerClasses="agent-utility-desc"

0 commit comments

Comments
 (0)