https://www.boundaryml.com logo
🟡 Retrieving prompt from baml file using Python
# questions
e
Hi I'm curious if there's a way to retrieve the prompt stored in the baml file (ideally whatever is under the
prompt
field in the function) using Python. I'm working on some logic that needs to track the total prompt text before sending it to the llm api.
v
you just need to leverage teh modular API!
in that case you can access not just the prompt, but actually the full HTTP request we are firing off
e
thank you!