mirror of
https://github.com/langgenius/dify.git
synced 2026-04-29 12:37:20 +08:00
Merge branch 'feat/plugins' of https://github.com/langgenius/dify into feat/plugins
This commit is contained in:
commit
b752c0654e
@ -76,7 +76,6 @@ export const AgentStrategySelector = (props: AgentStrategySelectorProps) => {
|
|||||||
const [query, setQuery] = useState('')
|
const [query, setQuery] = useState('')
|
||||||
const stra = useStrategyProviders()
|
const stra = useStrategyProviders()
|
||||||
const list = stra.data ? formatStrategy(stra.data) : undefined
|
const list = stra.data ? formatStrategy(stra.data) : undefined
|
||||||
console.log('list', list, 'stra', stra)
|
|
||||||
const filteredTools = useMemo(() => {
|
const filteredTools = useMemo(() => {
|
||||||
if (!list) return []
|
if (!list) return []
|
||||||
return list.filter(tool => tool.name.toLowerCase().includes(query.toLowerCase()))
|
return list.filter(tool => tool.name.toLowerCase().includes(query.toLowerCase()))
|
||||||
@ -125,7 +124,6 @@ export const AgentStrategySelector = (props: AgentStrategySelectorProps) => {
|
|||||||
agent_parameters: tool!.params,
|
agent_parameters: tool!.params,
|
||||||
agent_strategy_label: tool!.tool_label,
|
agent_strategy_label: tool!.tool_label,
|
||||||
})
|
})
|
||||||
console.log(tool, 'tool')
|
|
||||||
setOpen(false)
|
setOpen(false)
|
||||||
}}
|
}}
|
||||||
hasSearchText={false}
|
hasSearchText={false}
|
||||||
|
|||||||
@ -20,7 +20,6 @@ const useConfig = (id: string, payload: AgentNodeType) => {
|
|||||||
const currentStrategy = strategies.data?.declaration.strategies.find(
|
const currentStrategy = strategies.data?.declaration.strategies.find(
|
||||||
str => str.identity.name === inputs.agent_strategy_name,
|
str => str.identity.name === inputs.agent_strategy_name,
|
||||||
)
|
)
|
||||||
console.log('currentStrategy', currentStrategy, 'strategies', strategies, 'inputs', inputs)
|
|
||||||
return {
|
return {
|
||||||
readOnly,
|
readOnly,
|
||||||
inputs,
|
inputs,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user