AI Agent Solution

[中文]

Note

This document is automatically translated using AI. Please excuse any detailed errors. The official English version is still in progress.

Overview

AI Agents are built on the ESP32 platform and ESP-ADF. With esp_llm_service at the center, they provide a mature audio and video AI interaction solution. Developers can reuse this path to connect quickly to a built-in cloud platform or to their own large model.

Component Relationship

Relationship between AI Agents and the esp_llm_service component

Core Service: esp_llm_service

esp_llm_service replaces the previous Audio-processor. It separates the audio and video pipeline from the cloud protocol:

  • It reuses the mature audio and video capture, 3A audio front end, wake word, and multi-channel playback rendering of esp_media_service.

  • It supports voice conversation, image understanding, text-to-image display, and barge-in.

  • To switch to or add a custom cloud platform, only the esp_llm_* adapter needs to be replaced or added. The media path does not need to change.

Examples and Backend Components

The original examples/ai_agent examples have been updated to adf_examples/ai_agent:

Platform

Example project

Component

Supported capabilities

Baidu RTC

esp_llm_baidu_agent_app

esp_llm_baidu

Voice conversation, visual understanding, text-to-image, and multimodal preview

Coze

esp_llm_coze_agent_app

esp_llm_coze

WebSocket full-duplex voice, wake word, and barge-in

Alibaba Tongyi

esp_llm_tongyi_agent_app

esp_llm_tongyi

Voice conversation, camera preview, and single-frame capture for image recognition

Volcengine RTC

esp_llm_volc_agent_app

esp_llm_volc

RTC voice conversation (the component also supports video)

Quick Integration (agent.md)

Use the following agent.md documents to connect this audio and video solution to your own product or a custom large-model platform: