package com.vetti.socket.agents.ai;

public class AgentTest {
    public static void main(String[] args) throws Exception {
        String agentId = "agent_9401kd09yfjnes2vddz1n29wev2t";
        String apiKey = "sk_dfe2b45e19bf8ad93a71d3a0faa61619a91e817df549d116";

        ElevenLabsAgentEndpoint client = new ElevenLabsAgentEndpoint();
        client.connect(agentId, apiKey);

        // 发送第一条消息
        client.sendTextMessage("你好，只回复一句话");

        // 可以睡几秒，等待 Agent 回复
        Thread.sleep(3000);

        // 发送第二条消息
        client.sendTextMessage("再来一句自我介绍");

        Thread.sleep(5000);

        client.close();
    }
}

