- Prompts
- POSTLog to a Prompt
- PATCHUpdate Prompt Log
- GETList Prompts
- POSTUpsert Prompt
- GETGet Prompt
- DELDelete Prompt
- PATCHMove Prompt
- POSTPopulate Prompt template
- GETList Versions of a Prompt
- POSTCommit a Prompt Version
- DELDelete Prompt Version
- POSTDeploy Prompt
- DELRemove Deployment
- GETList a Prompt's Environments
- POSTUpdate Monitoring
- Tools
- Datasets
- Evaluators
- POSTSubmit Evaluator Judgment
- GETList Evaluators
- POSTUpsert Evaluator
- GETGet Evaluator
- DELDelete Evaluator
- PATCHMove Evaluator
- GETList Versions of an Evaluator
- POSTCommit an Evaluator Version
- DELDelete Evaluator Version
- POSTDeploy Evaluator
- DELRemove Deployment
- GETList an Evaluator's Environments
- POSTUpdate Monitoring
- Flows
- Directories
- Files
- Evaluations
- Logs
Request
$ curl -X POST https://api.humanloop.com/v5/prompts/call \ > -H "X-API-KEY: " \ > -H "Content-Type: application/json" \ > -d '{ > "stream": false, > "path": "persona", > "messages": [ > { > "role": "user", > "content": "latest apple" > } > ], > "prompt": { > "model": "gpt-4", > "template": [ > { > "role": "system", > "content": "You are stockbot. Return latest prices." > } > ], > "tools": [ > { > "name": "get_stock_price", > "description": "Get current stock price", > "parameters": { > "type": "object", > "properties": { > "ticker_symbol": { > "type": "string", > "name": "Ticker Symbol", > "description": "Ticker symbol of the stock" > } > }, > "required": [] > } > } > ] > } > }'
Response