https://www.boundaryml.com logo
🟡 Help needed with using 'effort.summary' in Open...
# questions
f
Hi there! Can someone help me with the openai-responses client? I'm trying to use the "effort.summary" property available in the [OpenAI's Responses API ref](https://platform.openai.com/docs/api-reference/responses/create#responses-create-reasoning-summary), but I don't know how to use the result as the BAML function only returns the class I defined for the output.
v
in your lcient defintion you would do this:
Copy code
client<llm> MyClient {
   provider openai-responses
   options {
     model "gpt-5"
     reasoning {
       effort "low"
       summary "auto"
     }
   }
}
will update docs!
f
Thanks for the help! I added that, but I'm not sure how to use the value with the summary returned by OpenAI. If you have an example it would be great, thanks again!
v
ah! yes if you want to use the summary, you'll want to use the collector. :
Copy code
python
collector = Collector()
result = b.CallFunction(.., baml_options={"collectors": [collector]})
# since there may be retries/fallbacks, print the selected_call's http response received
print(collector.last.selected_call.http_response)
that will give you access to the raw summary (and anything else).
f
That's it, thank you!!