sam_vultron
12/09/2025, 7:32 PM// Tool classes for chat functions
class SearchContentLibrary {
query string @description("The query to search the content library for")
}
---LLM REPLY---
{"type":"function_call","name":"search_content_library","arguments":"{\"query\":\"proposal management best practices\"}","call_id":"call_WbevPSVPfKmaJHY4oyt7448U"}
---Parsed Response (list<class SearchContentLibrary>)---
[
{
"query": "{type: function_call, name: search_content_library, arguments: {\"query\":\"proposal management best practices\"}, call_id: call_WbevPSVPfKmaJHY4oyt7448U}"
}
]
I was thinking to handle this in the short-term it'd be easier to define multiple response types for tool for each provider so baml can parse according to provider callaaronv (BAML)
12/09/2025, 7:33 PMaaronv (BAML)
12/09/2025, 7:33 PMsam_vultron
12/09/2025, 7:34 PMsanjan63
12/09/2025, 11:10 PMcurl https://api.openai.com/v1/responses \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $OPENAI_API_KEY" \
-d '{
"model": "gpt-4.1",
"tools": [{ "type": "web_search_preview" }],
"input": "What was a positive news story from today?"
}'aaronv (BAML)
12/09/2025, 11:16 PMoutput type will be put into the tools array for you as json