Call Agent
Call an Agent. The Agent will run on the Humanloop runtime and return a completed Agent Log.
If the Agent requires a tool call that cannot be ran by Humanloop, execution will halt. To continue, pass the ID of the incomplete Log and the required tool call to the /agents/continue endpoint.
The agent will run for the maximum number of iterations, or until it encounters a stop condition, according to its configuration.
You can use query parameters version_id, or environment, to target an existing version of the Agent. Otherwise the default deployed version will be chosen.
Instead of targeting an existing version explicitly, you can instead pass in Agent details in the request body. A new version is created if it does not match any existing ones. This is helpful in the case where you are storing or deriving your Agent details in code.
Request
- Base URL: https://api.humanloop.com/v5
- URL: https://api.humanloop.com/v5/agents/call
- Auth: API key in header X-API-KEY
Query parameters
A specific Version ID of the Agent to log to.
Name of the Environment identifying a deployed version to log to.
Request body
Changes
No recorded changes to this operation across all 1 revision of this API.