mirror of https://github.com/langgenius/dify.git
fix: type
This commit is contained in:
parent
0de8596afe
commit
b9b9f8eae3
|
|
@ -1,10 +1,15 @@
|
|||
import type { StateCreator } from 'zustand'
|
||||
import type { ToolWithProvider } from '../../types'
|
||||
|
||||
export type ToolSliceShape = {
|
||||
toolPublished: boolean
|
||||
setToolPublished: (toolPublished: boolean) => void
|
||||
lastPublishedHasUserInput: boolean
|
||||
setLastPublishedHasUserInput: (hasUserInput: boolean) => void
|
||||
buildInTools?: ToolWithProvider[]
|
||||
customTools?: ToolWithProvider[]
|
||||
workflowTools?: ToolWithProvider[]
|
||||
mcpTools?: ToolWithProvider[]
|
||||
}
|
||||
|
||||
export const createToolSlice: StateCreator<ToolSliceShape> = set => ({
|
||||
|
|
@ -12,4 +17,8 @@ export const createToolSlice: StateCreator<ToolSliceShape> = set => ({
|
|||
setToolPublished: toolPublished => set(() => ({ toolPublished })),
|
||||
lastPublishedHasUserInput: false,
|
||||
setLastPublishedHasUserInput: hasUserInput => set(() => ({ lastPublishedHasUserInput: hasUserInput })),
|
||||
buildInTools: undefined,
|
||||
customTools: undefined,
|
||||
workflowTools: undefined,
|
||||
mcpTools: undefined,
|
||||
})
|
||||
|
|
|
|||
Loading…
Reference in New Issue