Skip to content

Commit

Permalink
undo merge
Browse files Browse the repository at this point in the history
  • Loading branch information
pavelgj committed Jan 23, 2025
1 parent 718db38 commit 9af7937
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions js/genkit/src/genkit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ import {
SessionError,
SessionOptions,
} from '@genkit-ai/ai/session';
import { resolveTools } from '@genkit-ai/ai/tool';
import { resolveTools, ToolFn } from '@genkit-ai/ai/tool';
import {
Action,
defineFlow,
Expand Down Expand Up @@ -218,7 +218,7 @@ export class Genkit implements HasRegistry {
*/
defineTool<I extends z.ZodTypeAny, O extends z.ZodTypeAny>(
config: ToolConfig<I, O>,
fn: (input: z.infer<I>) => Promise<z.infer<O>>
fn: ToolFn<I, O>
): ToolAction<I, O> {
return defineTool(this.registry, config, fn);
}
Expand Down

0 comments on commit 9af7937

Please sign in to comment.