diff --git a/models/assistant.ts b/models/assistant.ts index 2deb866e..3b024d0f 100644 --- a/models/assistant.ts +++ b/models/assistant.ts @@ -1,6 +1,19 @@ import type { IResource } from '@/composables/steve/types' declare global { + interface IParameter { + type: string + properties: object + } + + interface ITool { + 'function': { + description: string + name: string, + parameters: IParameter + } + type: string + } interface IAssistant extends IResource { spec: { cache: boolean @@ -11,7 +24,7 @@ declare global { model: string name: string parameters: object - tools: object[] + tools: ITool[] vision: boolean } diff --git a/pages/a/[assistant].vue b/pages/a/[assistant].vue index 4b22b330..1c824dd2 100644 --- a/pages/a/[assistant].vue +++ b/pages/a/[assistant].vue @@ -58,7 +58,13 @@ async function send(e: ChatEvent) {

{{assistant.spec.name}}

{{assistant.spec.description}}

-
{{assistant.spec.instructions}}
+ +

Available Tools:

+
+ + {{t['function'].name}}({{t['function'].parameters.type}}) + +