23 lines
572 B
TypeScript
23 lines
572 B
TypeScript
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')
|
||
},
|
||
}
|