genkit
genkit copied to clipboard
[JS] [Go] Add simulated tool support middleware
Describe the bug Some models don't support native tool calling support (e.g. Gemma 3) but it could be implemented via a middleware that modifies the request with injected tool definition instructions and parses the response into simulated tool responses.