How to use tools with schema #309
-
Hi Guys, fetch_chat_context.chat(model:, provider:).with_tools(*tools).with_schema(schema).with_temperature(0.1).ask "..." I get this error message Function calling with a response mime type: 'application/json' is unsupported Reading the guide, I think a possible nice solution is a way to disable tools between calls like we have with schema https://rubyllm.com/guides/chat#multi-turn-conversations-with-schemas |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
Would #238 help? |
Beta Was this translation helpful? Give feedback.
-
Take a look at https://youtu.be/ucof9Mb37k4 |
Beta Was this translation helpful? Give feedback.
-
@crmne These kinds of scenarios are very model/api specific. The video you referenced uses OpenAI, which is fine. But Victor is using Gemini and I'm using Anthropic/Bedrock, which each have their own unique issues with tools/output. Anthropic users still need this and I'm not sure the best solution for Victor as Gemini apparently just doesn't mix tools with json outputs currently. |
Beta Was this translation helpful? Give feedback.
@crmne These kinds of scenarios are very model/api specific. The video you referenced uses OpenAI, which is fine. But Victor is using Gemini and I'm using Anthropic/Bedrock, which each have their own unique issues with tools/output. Anthropic users still need this and I'm not sure the best solution for Victor as Gemini apparently just doesn't mix tools with json outputs currently.