logo
On this page

API Overview


ZEGOCLOUD AI Agent server provides the following relevant API interfaces and callbacks. You can refer to Accessing Server APIs to call the interfaces below.

Agent Configuration Management

Interface NameInterface FunctionDefault Call Frequency Limit
Register An AgentRegister an agent (Agent) for creating an agent instance.10 times/second
Unregister An AgentUnregister an agent.10 times/second
Update An AgentModify an agent.10 times/second
List AgentsGet the list of available agents.10 times/second
Query Agent DetailsGet the details of a specified agent.10 times/second

Agent Instance Management

Interface NameInterface FunctionDefault QPS limit
Create An Agent InstanceCreate an agent instance and add it to text conversations and voice (RTC) conversations.10 times/second
Update An Agent InstanceUpdate an existing agent instance.10 times/second
Delete An Agent InstanceDelete an existing agent instance.10 times/second

Agent Instance Control

Interface NameInterface FunctionDefault QPS limit
Trigger LLMTrigger the LLM service as a user, and based on the response content from the LLM, proactively invoke the TTS service as an agent to send voice messages to the user.10 times/second
Trigger TTSTrigger the TTS service as an agent to send voice messages to the user.10 times/second
Query The Status of An AI Agent InstanceQuery the runtime status information of the agent during voice conversations.10 times/second
Interrupt Agent InstanceInterrupt the agent instance in a voice conversation10 times/second
Get Agent Instance Contextget the message list as context used by the agent instance during a voice conversation.10 times/second
Reset Agent Instance ContextReset the message list as context used by the agent instance during a voice conversation.10 times/second

Callbacks

Callback NameCallback Description
Receiving CallbackWith this callback, listen to events that occur during the user's conversation with the agent.

Previous

Interact with AI in IM and make voice calls

Next

Accessing Server APIs