Files
Cosmo 7b5f76576f
All checks were successful
Deploy / deploy (push) Successful in 1m25s
refactor: tool plugin registry - each tool in separate file
2026-04-30 20:58:11 +00:00

23 lines
572 B
TypeScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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')
},
}