- 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/tools \ > -H "X-API-KEY: " \ > -H "Content-Type: application/json" \ > -d '{ > "path": "math-tool", > "function": { > "name": "multiply", > "description": "Multiply two numbers", > "parameters": { > "type": "object", > "properties": { > "a": { > "type": "number" > }, > "b": { > "type": "number" > } > }, > "required": [ > "a", > "b" > ] > } > }, > "commit_message": "Initial commit" > }'
Response