tool setting support variable

This commit is contained in:
JzoNg
2025-02-08 17:11:24 +08:00
parent aa3dc9002c
commit 8ac6bc0b5a
11 changed files with 455 additions and 49 deletions

View File

@ -35,6 +35,7 @@ export type ToolValue = {
provider_name: string
tool_name: string
tool_label: string
settings?: Record<string, any>
parameters?: Record<string, any>
enabled?: boolean
extra?: Record<string, any>

View File

@ -154,6 +154,9 @@ export const AgentStrategy = memo((props: AgentStrategyProps) => {
tooltip={schema.tooltip && renderI18nObject(schema.tooltip)}
>
<ToolSelector
supportVariables
nodeOutputVars={nodeOutputVars || []}
availableNodes={availableNodes || []}
scope={schema.scope}
value={value}
onSelect={item => onChange(item)}
@ -169,6 +172,9 @@ export const AgentStrategy = memo((props: AgentStrategyProps) => {
}
return (
<MultipleToolSelector
supportVariables
nodeOutputVars={nodeOutputVars || []}
availableNodes={availableNodes || []}
scope={schema.scope}
value={value || []}
label={renderI18nObject(schema.label)}