https://www.boundaryml.com logo
🟡 Looking for an answer to a question
# questions
g
Anthropic just introduced web search to the API. is it possible to add these headers with BAML? https://docs.anthropic.com/en/docs/build-with-claude/tool-use/web-search-tool
BAML's options block maps through to API request parameters (model, temperature, max_tokens, api_key), but I can't find any documentation or examples of tools being passed through the BAML client definition for Anthropic's server-side tools specifically. The server-side tool format (type: "web_search_20250305") is a different shape from normal function-calling tools and BAML may not handle it in clients.baml.
v
Yep! You can just add it to the client options!
g
Ty!
The tool calling did work but I'll tell you I had a bunch of failed parse results from Anthropic tool calls.
I'm not sure if any succeeded or it was only a low percentage
v
oh, can you sahre your outcomes
like prompt / client defintions, would love to try it and see if we can improve something!
i may have a few prompting tricks up my sleee as well
g
Oh just seeing this. I'll recreate over the next day or two