https://www.boundaryml.com logo
Hey guys. Quick question. Is it possible
# general
y
Hey guys. Quick question. Is it possible to get all the parameters passed to a BAML function from the log_collector? I'm trying to plug-in dspy's gepa optimizer in BAML. Getting a handle of the function's parameters would be amazing. If not, I can simply use the raw request body (not ideal but should still work)
a
at the moment nope, but the b.request will have everything!
y
Any plans to add function request response to the baml collector?
a
you mean in a standardized format?
y
I mean getting the parameters passed to the function and the response returned by it instead of the raw http request and response sent over the wire
a
ah gotcha, we don't have a plan to expose this directly yet, but i'll talk to the team about it. It seems interesting so that you can just get all the aggregate logs and not have to keep track of the parameters yourself
y
Precisely
This makes Observability and tracing happen on a more semantic level which a dev can relate with
As a bonus, it helps my gepa optimizer as well by removing all things unnecessary
a
cool, lmk if you do get it working with the raw request, otherwise i'll add this to the list of things we can expose via Collector