Skip to content

Commit 47e96ee

Browse files
committed
feat: Enhance JoinConvoAIReq and UpdateConvoAIReq with new LLM parameters and turn detection configuration
- Added support for LLM parameters in UpdateConvoAIReq, allowing for system messages and additional parameters. - Introduced turn detection configuration in JoinConvoAIReq, enabling more control over agent interactions. - Updated InterruptConvoAIAPI to use an empty map for request body. - Enhanced JoinConvoAIReq with new fields for vendor, style, and additional TTS settings, improving customization options.
1 parent ff82b29 commit 47e96ee

File tree

4 files changed

+956
-37
lines changed

4 files changed

+956
-37
lines changed

agora-rest-client-core/src/main/java/io/agora/rest/services/convoai/api/InterruptConvoAIAPI.java

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
package io.agora.rest.services.convoai.api;
22

3+
import java.util.HashMap;
4+
import java.util.Map;
5+
36
import io.agora.rest.core.Context;
47
import io.agora.rest.exception.AgoraNeedRetryException;
58
import io.agora.rest.services.convoai.res.InterruptConvoAIRes;
@@ -14,7 +17,9 @@ public InterruptConvoAIAPI(Context context, String pathPrefix, Integer maxAttemp
1417

1518
public Mono<InterruptConvoAIRes> handle(String agentId) {
1619
String path = String.format("%s/agents/%s/interrupt", pathPrefix, agentId);
17-
return this.context.sendRequest(path, HttpMethod.POST, null, InterruptConvoAIRes.class)
20+
// use empty map as body
21+
Map<String, Object> body = new HashMap<>();
22+
return this.context.sendRequest(path, HttpMethod.POST, body, InterruptConvoAIRes.class)
1823
.retryWhen(customRetry(e -> e instanceof AgoraNeedRetryException));
1924
}
2025
}

0 commit comments

Comments
 (0)