| Package | Description |
|---|---|
| io.github.easy4j.opencode |
| Modifier and Type | Method and Description |
|---|---|
OpenCodeClientConfig |
OpenCodeClient.getConfig()
通过 OpenCode Server HTTP API 获取实例配置。
|
| Constructor and Description |
|---|
OpenCodeClient(OpenCodeClientConfig config)
组合配置,自动创建默认 ObjectMapper 与 OkHttpClient。
|
OpenCodeClient(OpenCodeClientConfig config,
com.fasterxml.jackson.databind.ObjectMapper objectMapper,
okhttp3.OkHttpClient httpClient)
组合配置,强制注入共享 ObjectMapper 与 OkHttpClient。
|
OpenCodeClient(OpenCodeClientConfig config,
OpenCodeHttpClient httpClient,
OpenCodeSseClient sseClient,
OpenCodeCli cli)
全量依赖注入(用于测试或自定义组件)。
|
Copyright © 2026. All rights reserved.