Skip to content

Commit

Permalink
🐛 export createReverseGeocode with new Tool
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannLai committed Jan 28, 2024
1 parent 76ceaa1 commit 0b9fd40
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/reverseGeocode.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// reverseGeocode.ts
import { Tool, ToolInterface } from './tool';
import { z } from 'zod';

function createReverseGeocode({
Expand Down Expand Up @@ -48,7 +49,7 @@ function createReverseGeocode({
};
};

return { paramsSchema, name, description, execute };
return new Tool(paramsSchema, name, description, execute).tool;
}

export { createReverseGeocode };

0 comments on commit 0b9fd40

Please sign in to comment.