| Package | Description |
|---|---|
| io.github.easy4j.opencode | |
| io.github.easy4j.opencode.api |
| Modifier and Type | Method and Description |
|---|---|
static okhttp3.OkHttpClient |
OpenCodeOkHttpClientFactory.create(OpenCodeHttpClientConfig config)
根据 OpenCode HTTP 配置创建客户端。
|
| Constructor and Description |
|---|
OpenCodeClient(OpenCodeHttpClientConfig httpConfig)
仅 HTTP 子系统(CLI 禁用)。
|
OpenCodeClient(OpenCodeHttpClientConfig httpConfig,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
okhttp3.OkHttpClient httpClient)
仅 HTTP 子系统(CLI 禁用),强制注入共享 ObjectMapper 与 OkHttpClient。
|
OpenCodeClient(OpenCodeHttpClientConfig httpConfig,
OpenCodeCliConfig cliConfig)
HTTP + CLI 子系统。
|
OpenCodeClient(OpenCodeHttpClientConfig httpConfig,
OpenCodeCliConfig cliConfig,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
okhttp3.OkHttpClient httpClient)
HTTP + CLI 子系统,强制注入共享 ObjectMapper 与 OkHttpClient。
|
| Constructor and Description |
|---|
OpenCodeChatClient(OpenCodeHttpClientConfig config)
创建 open code chat client 实例,并按传入依赖确定资源所有权。
|
OpenCodeChatClient(OpenCodeHttpClientConfig config,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
okhttp3.OkHttpClient httpClient)
创建 open code chat client 实例,并按传入依赖确定资源所有权。
|
OpenCodeChatClient(OpenCodeHttpClientConfig config,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
okhttp3.OkHttpClient httpClient,
OpenCodeSseClient sseClient)
创建 open code chat client 实例,并按传入依赖确定资源所有权。
|
OpenCodeHttpClient(OpenCodeHttpClientConfig config,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
okhttp3.OkHttpClient httpClient)
创建 open code http client 实例,并按传入依赖确定资源所有权。
|
OpenCodeSseClient(OpenCodeHttpClientConfig config)
使用 SDK 自建 OkHttpClient 创建 SSE 客户端。
|
OpenCodeSseClient(OpenCodeHttpClientConfig config,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
okhttp3.OkHttpClient httpClient)
使用共享 ObjectMapper 和 OkHttpClient 创建 SSE 客户端。
|
Copyright © 2026. All rights reserved.