- 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
1 from humanloop import Humanloop 2 3 client = Humanloop(api_key="YOUR_API_KEY", ) 4 client.tools.upsert( 5 path="math-tool", 6 function={ 7 "name": "multiply", 8 "description": "Multiply two numbers", 9 "parameters": { 10 "type": "object", 11 "properties": {"a":{"type":"number"},"b":{"type":"number"}}, 12 "required": ["a","b"] 13 } 14 }, 15 commit_message="Initial commit" 16 )
Response