For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Sign inBook a demo
DocsReferenceChangelog
DocsReferenceChangelog
  • Introduction
    • Overview
    • Errors
  • SDK
    • Overview
    • Decorators
    • Run Evaluation
  • API
      • POSTLog to an Agent
      • PATCHUpdate Agent Log
      • STREAMCall Agent
      • STREAMContinue Agent Call
      • GETList Agents
      • POSTUpsert Agent
      • DELDelete Agent Version
      • PATCHUpdate Agent Version
      • GETGet Agent
      • DELDelete Agent
      • PATCHMove Agent
      • GETList Versions of a Agent
      • POSTDeploy Agent
      • DELRemove Deployment
      • GETList an Agent's Environments
      • POSTUpdate Monitoring
      • GETSerialize
      • POSTDeserialize
LogoLogo
Sign inBook a demo
APIAgents

Continue Agent Call

POST
https://api.humanloop.com/v5/agents/continue
POST
/v5/agents/continue
$curl -X POST https://api.humanloop.com/v5/agents/continue \
> -H "X-API-KEY: <apiKey>" \
> -H "Content-Type: application/json" \
> -d '{
> "log_id": "log_id",
> "messages": [
> {
> "role": "user"
> }
> ],
> "stream": true
>}'
Continue an incomplete Agent call. This endpoint allows continuing an existing incomplete Agent call, by passing the tool call requested by the Agent. The Agent will resume processing from where it left off. The messages in the request will be appended to the original messages in the Log. You do not have to provide the previous conversation history. The original log must be in an incomplete state to be continued.
Was this page helpful?
Previous

List Agents

Next
Built with

Authentication

X-API-KEYstring
API Key authentication via header

Request

This endpoint expects an object.
log_idstringRequired
This identifies the Agent Log to continue.
messageslist of objectsRequired
The additional messages with which to continue the Agent Log. Often, these should start with the Tool messages with results for the previous Assistant message's tool calls.
streamtrueRequired

If true, packets will be sent as data-only server-sent events.

provider_api_keysobjectOptional
API keys required by each provider to make API calls. The API keys provided here are not stored by Humanloop. If not specified here, Humanloop will fall back to the key saved to your organization.
include_trace_childrenbooleanOptionalDefaults to false

If true, populate trace_children for the returned Agent Log. Defaults to false.

Response

log_idstring
messagestring
typeenum
An enumeration.
created_atdatetime
payloadobject

Errors

422
Agents Continue Call Stream Request Unprocessable Entity Error