From d244d01e7e16b99a46ef41371a41f387a7a6395d Mon Sep 17 00:00:00 2001 From: Jonathan Amsterdam Date: Tue, 28 May 2024 18:05:41 -0400 Subject: [PATCH] [Go] rename Run[T] to Run[Out] --- go/genkit/genkit.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/genkit/genkit.go b/go/genkit/genkit.go index af094454c9..7d0e062bab 100644 --- a/go/genkit/genkit.go +++ b/go/genkit/genkit.go @@ -47,7 +47,7 @@ func DefineFlow[In, Out, Stream any]( // Each call to Run results in a new step in the flow. // A step has its own span in the trace, and its result is cached so that if the flow // is restarted, f will not be called a second time. -func Run[T any](ctx context.Context, name string, f func() (T, error)) (T, error) { +func Run[Out any](ctx context.Context, name string, f func() (Out, error)) (Out, error) { return core.Run(ctx, name, f) }