POSThttps://api.humanloop.com/v5/flows
Body Parameters
    • key
      value
    • key
      value
    • key
      value
View in API Reference
Request
$curl -X POST https://api.humanloop.com/v5/flows \
> -H "X-API-KEY: " \
> -H "Content-Type: application/json" \
> -d '{
> "attributes": {
> "prompt": {
> "template": "You are a helpful medical assistant helping with medical anamnesis. Answer {{question}}",
> "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"
> },
> "commit_message": "Initial commit"
> },
> "path": "Personal Projects/MedQA Flow"
>}'
Response