Call Tool
Call a Tool.
Calling a Tool with inputs runs the tool's source code and logs the result and metadata to Humanloop.
You can use query parameters version_id, or environment, to target an existing version of the Tool. Otherwise, the default deployed version will be chosen.
Instead of targeting an existing version explicitly, you can instead pass in Tool details in the request body. In this case, we will check if the details correspond to an existing version of the Tool. If they do not, we will create a new version. This is helpful in the case where you are storing or deriving your Tool details in code.
Request
- Base URL: https://api.humanloop.com/v5
- URL: https://api.humanloop.com/v5/tools/call
- Auth: API key in header X-API-KEY
Query parameters
A specific Version ID of the Tool to call.
Name of the Environment identifying a deployed version to call.
Request body
Response
Successful Response
Changes
No recorded changes to this operation across all 1 revision of this API.