refactor: tool plugin registry - each tool in separate file
All checks were successful
Deploy / deploy (push) Successful in 1m25s
All checks were successful
Deploy / deploy (push) Successful in 1m25s
This commit is contained in:
22
lib/tools/notes.ts
Normal file
22
lib/tools/notes.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import type { VoiceTool } from './_types'
|
||||
import { tabletGet } from './_http'
|
||||
|
||||
export const tool: VoiceTool = {
|
||||
schema: {
|
||||
type: 'function',
|
||||
function: {
|
||||
name: 'get_notes',
|
||||
description:
|
||||
'Список заметок и списков покупок с планшета. Для «что мне купить», ' +
|
||||
'«что в списке», «какие записи».',
|
||||
parameters: {
|
||||
type: 'object',
|
||||
properties: {},
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
async execute() {
|
||||
return tabletGet('/api/voice/tools/notes')
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user