| import { tool } from "./tool.js"; | |
| export const ExamplePlugin = async (_ctx) => { | |
| return { | |
| tool: { | |
| mytool: tool({ | |
| description: "This is a custom tool", | |
| args: { | |
| foo: tool.schema.string().describe("foo"), | |
| }, | |
| async execute(args) { | |
| return `Hello ${args.foo}!`; | |
| }, | |
| }), | |
| }, | |
| }; | |
| }; | |
Xet Storage Details
- Size:
- 440 Bytes
- Xet hash:
- 7377f356dc817ca28f5ae3d94cdc4ae8e9fdd5d98b75a73f2fb892126313ebd6
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.