Skip to content

Commit 9971b35

Browse files
authored
fix(go): fixed broken build (#3039)
1 parent 56f67de commit 9971b35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

go/ai/tools.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,9 @@ func DefineToolWithInputSchema[Out any](r *registry.Registry, name, description
162162
return fn(toolCtx, input)
163163
}
164164

165-
toolAction := core.DefineActionWithInputSchema(r, "", name, atype.Tool, metadata, inputSchema, wrappedFn)
165+
toolAction := core.DefineActionWithInputSchema(r, "", name, core.ActionTypeTool, metadata, inputSchema, wrappedFn)
166166

167-
return &tool{action: toolAction}
167+
return &tool{Action: toolAction}
168168
}
169169

170170
// Name returns the name of the tool.

0 commit comments

Comments
 (0)