POSThttps://api.humanloop.com/v5/tools
Body Parameters
      • key
        value
      • key
        value
      • key
        value
View in API Reference
Request
1from humanloop import Humanloop
2
3client = Humanloop(api_key="YOUR_API_KEY", )
4client.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