| Package | Description |
|---|---|
| io.github.easy4j.opencode | |
| io.github.easy4j.opencode.api | |
| io.github.easy4j.opencode.api.mapper |
| Modifier and Type | Method and Description |
|---|---|
ChatResponse |
OpenCodeClient.chatCompletion(String sessionId,
ChatRequest request)
同步提交聊天请求并返回完整响应。
|
ChatResponse |
OpenCodeClient.chatCompletionWithSession(ChatRequest request,
String sessionKey)
复用或创建稳定会话后提交聊天请求并返回结果。
|
ChatResponse |
OpenCodeClient.chatCompletionWithSession(ChatRequest request,
String sessionKey,
HttpCallCancellation cancellation)
复用或创建稳定会话后提交聊天请求并返回结果。
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<ChatResponse> |
OpenCodeClient.chatCompletionAsync(String sessionId,
ChatRequest request)
异步完成指定会话的聊天请求。
|
CompletableFuture<ChatResponse> |
OpenCodeClient.chatCompletionWithSessionAsync(ChatRequest request,
String sessionKey,
HttpCallCancellation cancellation)
异步查找会话并完成聊天请求。
|
| Modifier and Type | Method and Description |
|---|---|
ChatResponse |
OpenCodeChatClient.chatCompletion(String sessionId,
ChatRequest request)
同步提交聊天请求并返回完整响应。
|
ChatResponse |
OpenCodeChatClient.chatCompletionWithSession(ChatRequest request,
String sessionKey)
复用或创建稳定会话后提交聊天请求并返回结果。
|
ChatResponse |
OpenCodeChatClient.chatCompletionWithSession(ChatRequest request,
String sessionKey,
HttpCallCancellation cancellation)
复用或创建稳定会话后提交聊天请求并返回结果。
|
| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<ChatResponse> |
OpenCodeChatClient.chatCompletionAsync(String sessionId,
ChatRequest request)
异步完成指定会话的聊天请求。
|
CompletableFuture<ChatResponse> |
OpenCodeChatClient.chatCompletionWithSessionAsync(ChatRequest request,
String sessionKey,
HttpCallCancellation cancellation)
异步查找会话并完成聊天请求。
|
| Modifier and Type | Method and Description |
|---|---|
static ChatResponse |
ChatMessageMapper.toChatResponse(PromptResult result)
PromptResult → ChatResponse。
|
Copyright © 2026. All rights reserved.