Skip to content

Commit

Permalink
remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-dixon committed Oct 25, 2024
1 parent ffc6b3d commit af9609e
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions typescript/src/types/tools.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,28 +49,3 @@ export const toolFromZodFunction = <Args extends z.ZodTuple, Output extends z.Zo
})
return f
}

const mytool2 = toolFromZodFunction(
z
.function(
z.tuple([z.object({ hello: z.string() })]).describe('This is a test tool input'),
z.object({ world: z.string() }).describe('This is a test tool output')
)
.describe('This is a test tool'),

async (args) => {
return { world: 'world' }
}
)

const mytool = tool(
{
name: 'mytool',
input: z.object({ hello: z.string() }).describe('This is a test tool'),
output: z.object({ world: z.string() }).describe('This is a test tool'),
description: 'This is a test tool',
},
async (args) => {
return { world: 'world' }
}
)

0 comments on commit af9609e

Please sign in to comment.