logo
On this page

Reset Agent Instance Context


Description

This API is used to reset the message list as context used by the agent instance during a voice conversation.

Request prototype

  • Request method: POST
  • Request body format: JSON
  • Request URL: https://aigc-aiagent-api.zegotech.cn?Action=ResetAgentInstanceMsgList
  • Transmission protocol: HTTPS
  • QPS limit: 10 times/second

Request parameters

Listed below are the parameters specific to this request and part of the common request parameters. For the complete list of common request parameters, see Accessing Server APIs - Common request parameters.

ParameterTypeRequiredDescription
AgentInstanceIdStringYesThe unique identifier of the agent instance.

Request example

  • Request URL:

    Untitled
    https://aigc-aiagent-api.zegotech.cn?Action=ResetAgentInstanceMsgList
    &<Common request parameters>
    
    1
    Copied!
  • Request body:

    Untitled
    {
        "AgentInstanceId": "1907616178474336256"
    }
    
    1
    Copied!

Response parameters

ParameterTypeDescription
CodeNumberThe return code. 0 indicates success, and other values indicate failure. For code explanations and processing suggestions, see Return codes.
MessageStringExplanation of the request result.
RequestIdStringRequest ID.

Response example

Untitled
{
    "Code": 0,
    "Message": "success",
    "RequestId": "2537521374375652066"
}
1
Copied!

Previous

Get Agent Instance Context

Next

Receiving Callback