An interesting use of the tools feature. Basically you use it to force Claude to provide a response in a specific format? The primary use for tools as described by Anthropic is to allow Claude to call functions that you provide. One example given is to ask Claude Opus to call a function that retrieves quick sort algorithms from the web and pass them to Claude Haiku instances to test how fast each of then runs. I haven't tested it but in my understand you need the Claude client software to call functions. Which is why this doesn't work in Bubble when using the cURL style API calls to Claude. But at least we can do what you show here.
An interesting use of the tools feature. Basically you use it to force Claude to provide a response in a specific format?
The primary use for tools as described by Anthropic is to allow Claude to call functions that you provide. One example given is to ask Claude Opus to call a function that retrieves quick sort algorithms from the web and pass them to Claude Haiku instances to test how fast each of then runs. I haven't tested it but in my understand you need the Claude client software to call functions. Which is why this doesn't work in Bubble when using the cURL style API calls to Claude. But at least we can do what you show here.