stevemorin
08/03/2025, 5:24 PMbaml-sam
08/03/2025, 5:28 PMbaml-sam
08/03/2025, 5:29 PMstevemorin
08/04/2025, 5:02 AMbaml-sam
08/04/2025, 6:10 AMbaml-sam
08/04/2025, 6:10 AMimport requests
# requests is not async so for simplicity we'll use the sync client.
from baml_client.sync_client import b
def run():
# Get the HTTP request object.
req = b.request.ExtractResume("John Doe | Software Engineer | BSc in CS")
# Send the HTTP request.
res = requests.post(url=req.url, headers=req.headers, json=req.body.json())
# Parse the LLM response.
parsed = b.parse.ExtractResume(response.json()["choices"][0]["message"]["content"])
# Fully parsed Resume type.
print(parsed)baml-sam
08/04/2025, 6:10 AMrequests.post with anything you want