mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-20 10:59:59 +00:00
- Remove unused fs import from app.ts - Remove unused LLM import and missing module reference from server.ts - Fix parameter naming inconsistency in fetch.ts execute function - Add missing metadata property to fetch.ts return statement - Update test file to use correct API signatures and parameter names - Remove unused parameters from example.ts 🤖 Generated with opencode Co-Authored-By: opencode <noreply@opencode.ai>
20 lines
411 B
TypeScript
20 lines
411 B
TypeScript
import { z } from "zod"
|
|
import { Tool } from "./tool"
|
|
|
|
export const ExampleTool = Tool.define({
|
|
id: "opencode.example",
|
|
description: "Example tool",
|
|
parameters: z.object({
|
|
foo: z.string().describe("The foo parameter"),
|
|
bar: z.number().describe("The bar parameter"),
|
|
}),
|
|
async execute() {
|
|
return {
|
|
metadata: {
|
|
lol: "hey",
|
|
},
|
|
output: "Hello, world!",
|
|
}
|
|
},
|
|
})
|