Uses of Interface
io.github.easy4j.opencode.HttpCallCancellation
Packages that use HttpCallCancellation
-
Uses of HttpCallCancellation in io.github.easy4j.opencode
Methods in io.github.easy4j.opencode with parameters of type HttpCallCancellationModifier and TypeMethodDescriptionOpenCodeClient.chatCompletionWithSession(ChatRequest request, String sessionKey, HttpCallCancellation cancellation) 复用或创建稳定会话后提交聊天请求并返回结果。OpenCodeClient.chatCompletionWithSession(PromptRequest request, String sessionKey, HttpCallCancellation cancellation) 复用或创建稳定会话后提交聊天请求并返回结果。OpenCodeClient.chatCompletionWithSessionAsync(ChatRequest request, String sessionKey, HttpCallCancellation cancellation) 异步查找会话并完成聊天请求。 -
Uses of HttpCallCancellation in io.github.easy4j.opencode.api
Methods in io.github.easy4j.opencode.api with parameters of type HttpCallCancellationModifier and TypeMethodDescriptionOpenCodeChatClient.chatCompletionWithSession(ChatRequest request, String sessionKey, HttpCallCancellation cancellation) 复用或创建稳定会话后提交聊天请求并返回结果。OpenCodeHttpClient.chatCompletionWithSession(PromptRequest request, String sessionKey, HttpCallCancellation cancellation) 复用或创建稳定会话后提交聊天请求并返回结果。OpenCodeChatClient.chatCompletionWithSessionAsync(ChatRequest request, String sessionKey, HttpCallCancellation cancellation) 异步查找会话并完成聊天请求。OpenCodeHttpClient.createSession(String title, OpenCodeRequestContext context, HttpCallCancellation cancellation) 通过 OpenCode Server HTTP API 创建会话。OpenCodeHttpClient.createSessionAsync(String title, OpenCodeRequestContext context, HttpCallCancellation cancellation) 异步请求 OpenCode Server 创建会话;网络或解析失败通过返回的 Future 传播。OpenCodeHttpClient.ensureSession(String sessionKey, OpenCodeRequestContext context, HttpCallCancellation cancellation) 查找稳定会话键对应的会话;不存在时创建新会话。OpenCodeHttpClient.ensureSessionAsync(String sessionKey, OpenCodeRequestContext context, HttpCallCancellation cancellation) 异步查找或创建会话。protected <T> CompletableFuture<T>OpenCodeHttpClient.executeAsync(okhttp3.Request request, Class<T> type, HttpCallCancellation cancellation) 使用 OkHttp enqueue 异步执行并反序列化对象。OpenCodeHttpClient.findSessionByTitle(String title, OpenCodeRequestContext context, HttpCallCancellation cancellation) 调用 OpenCode Server 搜索接口查找标题匹配的会话;未命中时返回空结果。OpenCodeHttpClient.listSessionsAsync(String search, Integer limit, Integer start, OpenCodeRequestContext context, HttpCallCancellation cancellation) 异步分页列出会话。OpenCodeHttpClient.prompt(String sessionId, PromptRequest request, HttpCallCancellation cancellation) 向指定会话同步提交 Prompt,并等待 OpenCode Server 返回完整生成结果。OpenCodeHttpClient.promptCompletionAsync(String sessionId, PromptRequest request, HttpCallCancellation cancellation) 异步发送消息并等待完整 Prompt 结果。