JSON output in Claude model
However I can't seem to get it to work with tools (the workaround for claude). Using
genkitx-anthropic but I can't even get that far.I can't use ai.define_tool at runtime (genkit limitation) and I'd like to avoid having to pre create tools for all flows
Just passing in a literal object (into
tools array in the generate call) that fits ToolDefinition type name, description, inputSchema gives me this exception:looking for that string in the genkit repo it looks like a failed tool registry lookup (
generate.ts line 345). Is there anyway to pass in a non predefined tool?