mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 10:28:10 +08:00
all tools
This commit is contained in:
@ -1,5 +1,6 @@
|
||||
import { get, post } from './base'
|
||||
import type { Collection, CustomCollectionBackend, CustomParamSchema, Tool, ToolCredential } from '@/app/components/tools/types'
|
||||
import type { ToolWithProvider } from '@/app/components/workflow/types'
|
||||
|
||||
export const fetchCollectionList = () => {
|
||||
return get<Collection[]>('/workspaces/current/tool-providers')
|
||||
@ -86,3 +87,11 @@ export const testAPIAvailable = (payload: any) => {
|
||||
},
|
||||
})
|
||||
}
|
||||
|
||||
export const fetchAllBuiltInTools = () => {
|
||||
return get<ToolWithProvider[]>('/workspaces/current/tools/builtin')
|
||||
}
|
||||
|
||||
export const fetchAllCustomTools = () => {
|
||||
return get<ToolWithProvider[]>('/workspaces/current/tools/api')
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user