POSThttps://api.humanloop.com/v5/flows/log
Query Parameters
Body Parameters
    • key
      value
      • key
        value
      • key
        value
View in API Reference
Request
$curl -X POST https://api.humanloop.com/v5/flows/log \
> -H "X-API-KEY: " \
> -H "Content-Type: application/json" \
> -d '{
> "id": "fl_6o701g4jmcanPVHxdqD0O",
> "start_time": "2024-07-08T22:40:35",
> "end_time": "2024-07-08T22:40:39",
> "output": "The patient is likely experiencing a myocardial infarction. Immediate medical attention is required.",
> "inputs": {
> "question": "Patient with a history of diabetes and hypertension presents with chest pain and shortness of breath."
> },
> "log_status": "incomplete",
> "flow": {
> "attributes": {
> "prompt": {
> "template": "You are a helpful assistant helping with medical anamnesis",
> "model": "gpt-4o",
> "temperature": 0.8
> },
> "tool": {
> "name": "retrieval_tool_v3",
> "description": "Retrieval tool for MedQA.",
> "source_code": "def retrieval_tool(question: str) -> str:\n pass\n"
> }
> }
> }
>}'
Response