feat: agent node checklist
parent
4663af8a60
commit
1b8ec6710a
@ -1,5 +0,0 @@
|
||||
import type { AgentNodeType } from './types'
|
||||
|
||||
export const checkNodeValid = (payload: AgentNodeType) => {
|
||||
return true
|
||||
}
|
||||
@ -0,0 +1,10 @@
|
||||
import type { StrategyPluginDetail } from '@/app/components/plugins/types'
|
||||
import { get } from './base'
|
||||
|
||||
export const fetchStrategyList = () => {
|
||||
return get<StrategyPluginDetail[]>('/workspaces/current/agent-providers')
|
||||
}
|
||||
|
||||
export const fetchStrategyDetail = (agentProvider: string) => {
|
||||
return get<StrategyPluginDetail>(`/workspaces/current/agent-provider/${agentProvider}`)
|
||||
}
|
||||
Loading…
Reference in New Issue