File size: 567 Bytes
39b5447
57e16da
 
988ce90
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57e16da
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import type { Tool } from "$lib/types";

export const messageTool: Tool<Promise<Blob | string> | string, void> = {
  name: "message",
  description: "Send data back to the user.",
  examples: [
    {
      prompt: "Display the created image",
      command: 'message("we display the image", image)',
    },
    {
      prompt: "Display the generated text",
      command: 'message("we render the text", text)',
    },
    {
      prompt: 'Display the text "hello world"',
      command: 'message("hello world")',
    },
  ],
  call: async () => {
    return;
  },
};