feat: fetch tools and set tools enabled from api

This commit is contained in:
Joel
2026-01-28 14:11:10 +08:00
parent ca95b6684f
commit 0ae02938e6
6 changed files with 140 additions and 53 deletions

View File

@ -80,3 +80,23 @@ export const workflowDraftUpdateFeaturesContract = base
}
}>())
.output(type<CommonResponse>())
export const workflowDraftNodeSkillsContract = base
.route({
path: '/apps/{appId}/workflows/draft/nodes/{nodeId}/skills',
method: 'GET',
})
.input(type<{
params: {
appId: string
nodeId: string
}
}>())
.output(type<{
node_id: string
tool_dependencies: {
type: string
provider: string
tool_name: string
}[]
}>())