- cancel() - Method in class io.github.easy4j.opencode.api.sse.SseSubscription
-
取消当前异步操作或 SSE 订阅。
- cancel(boolean) - Method in class io.github.easy4j.opencode.api.sse.StreamingChatResponse
-
取消当前异步操作或 SSE 订阅。
- chat() - Method in class io.github.easy4j.opencode.OpenCodeClient
-
获取统一的 OpenCode 聊天场景客户端。
- chatCompletion(String, ChatRequest) - Method in class io.github.easy4j.opencode.api.OpenCodeChatClient
-
同步提交聊天请求并返回完整响应。
- chatCompletion(String, PromptRequest) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
同步提交聊天请求并返回完整响应。
- chatCompletion(String, String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
同步提交聊天请求并返回完整响应。
- chatCompletion(String, String, String, String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
同步提交聊天请求并返回完整响应。
- chatCompletion(String, ChatRequest) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
同步提交聊天请求并返回完整响应。
- chatCompletionAsync(String, ChatRequest) - Method in class io.github.easy4j.opencode.api.OpenCodeChatClient
-
异步完成指定会话的聊天请求。
- chatCompletionAsync(String, ChatRequest) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
异步完成指定会话的聊天请求。
- chatCompletionAsync(String, PromptRequest) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
异步提交聊天请求;网络或解析失败通过返回的 Future 传播。
- chatCompletionAsync(String, String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
异步提交聊天请求;网络或解析失败通过返回的 Future 传播。
- chatCompletionStream(ChatRequest, String) - Method in class io.github.easy4j.opencode.api.OpenCodeChatClient
-
创建流式聊天响应,异步订阅会话事件并持续交付文本增量。
- chatCompletionStream(ChatRequest, String, OpenCodeRequestContext) - Method in class io.github.easy4j.opencode.api.OpenCodeChatClient
-
创建流式聊天响应,异步订阅会话事件并持续交付文本增量。
- chatCompletionStream(ChatRequest, String, OpenCodeRequestContext, Consumer<String>) - Method in class io.github.easy4j.opencode.api.OpenCodeChatClient
-
在事件订阅启动前绑定增量回调,避免丢失首批分片。
- chatCompletionStream(ChatRequest, String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
创建流式聊天响应,异步订阅会话事件并持续交付文本增量。
- chatCompletionStream(ChatRequest, String, OpenCodeRequestContext) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
创建流式聊天响应,异步订阅会话事件并持续交付文本增量。
- chatCompletionStream(ChatRequest, String, OpenCodeRequestContext, Consumer<String>) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
流式对话,并在订阅启动前绑定增量回调,避免丢失首批分片。
- chatCompletionWithSession(ChatRequest, String) - Method in class io.github.easy4j.opencode.api.OpenCodeChatClient
-
复用或创建稳定会话后提交聊天请求并返回结果。
- chatCompletionWithSession(ChatRequest, String, HttpCallCancellation) - Method in class io.github.easy4j.opencode.api.OpenCodeChatClient
-
复用或创建稳定会话后提交聊天请求并返回结果。
- chatCompletionWithSession(PromptRequest, String) - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
复用或创建稳定会话后提交聊天请求并返回结果。
- chatCompletionWithSession(PromptRequest, String, HttpCallCancellation) - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
复用或创建稳定会话后提交聊天请求并返回结果。
- chatCompletionWithSession(PromptRequest, String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
复用或创建稳定会话后提交聊天请求并返回结果。
- chatCompletionWithSession(PromptRequest, String, HttpCallCancellation) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
复用或创建稳定会话后提交聊天请求并返回结果。
- chatCompletionWithSession(String, String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
复用或创建稳定会话后提交聊天请求并返回结果。
- chatCompletionWithSession(String, String, String, String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
复用或创建稳定会话后提交聊天请求并返回结果。
- chatCompletionWithSession(ChatRequest, String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
复用或创建稳定会话后提交聊天请求并返回结果。
- chatCompletionWithSession(ChatRequest, String, HttpCallCancellation) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
复用或创建稳定会话后提交聊天请求并返回结果。
- chatCompletionWithSessionAsync(ChatRequest, String, HttpCallCancellation) - Method in class io.github.easy4j.opencode.api.OpenCodeChatClient
-
异步查找会话并完成聊天请求。
- chatCompletionWithSessionAsync(PromptRequest, String) - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
异步复用或创建稳定会话后提交聊天请求,不阻塞调用线程。
- chatCompletionWithSessionAsync(PromptRequest, String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
异步复用或创建稳定会话后提交聊天请求,不阻塞调用线程。
- chatCompletionWithSessionAsync(ChatRequest, String, HttpCallCancellation) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
异步查找会话并完成聊天请求。
- ChatMessage - Class in io.github.easy4j.opencode.api.model
-
OpenAI Chat Completions API message object (aligned with OpenClaw/Hermes).
- ChatMessage(String, String) - Constructor for class io.github.easy4j.opencode.api.model.ChatMessage
-
创建 chat message 实例,并按传入依赖确定资源所有权。
- ChatMessageMapper - Class in io.github.easy4j.opencode.api.mapper
-
- ChatRequest - Class in io.github.easy4j.opencode.api.model
-
OpenAI Chat Completions API request body (aligned with OpenClaw/Hermes).
- ChatRequest() - Constructor for class io.github.easy4j.opencode.api.model.ChatRequest
-
- ChatResponse - Class in io.github.easy4j.opencode.api.model
-
OpenAI Chat Completions API response (aligned with OpenClaw/Hermes).
- ChatResponse() - Constructor for class io.github.easy4j.opencode.api.model.ChatResponse
-
- ChatResponse.Choice - Class in io.github.easy4j.opencode.api.model
-
响应中的一个选择。
- ChatResponse.Usage - Class in io.github.easy4j.opencode.api.model
-
Token 使用统计。
- check(OpenCodeCliConfig) - Method in class io.github.easy4j.opencode.cli.availability.OpenCodeCliAvailabilityChecker
-
使用与运行时一致的配置探测 CLI。
- Choice() - Constructor for class io.github.easy4j.opencode.api.model.ChatResponse.Choice
-
- cli() - Method in class io.github.easy4j.opencode.OpenCodeClient
-
委托本地 OpenCode CLI 门面执行OpenCode 协议数据,同步返回退出状态及输出。
- cliAcp(String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
委托本地 OpenCode CLI 门面执行acp 子命令,同步返回退出状态及输出。
- cliAgentCreate(String, String, String, String, String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
委托本地 OpenCode CLI 门面执行agent create 子命令,同步返回退出状态及输出。
- cliAgentList() - Method in class io.github.easy4j.opencode.OpenCodeClient
-
委托本地 OpenCode CLI 门面执行agent list 子命令,同步返回退出状态及输出。
- cliAttach(String, String, String, String, String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
委托本地 OpenCode CLI 门面执行attach 子命令,同步返回退出状态及输出。
- cliAuthList() - Method in class io.github.easy4j.opencode.OpenCodeClient
-
委托本地 OpenCode CLI 门面执行auth list 子命令,同步返回退出状态及输出。
- cliAuthLogin(String, String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
委托本地 OpenCode CLI 门面执行auth login 子命令,同步返回退出状态及输出。
- cliAuthLogout(String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
委托本地 OpenCode CLI 门面执行auth logout 子命令,同步返回退出状态及输出。
- cliDb(String, String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
委托本地 OpenCode CLI 门面执行db 子命令,同步返回退出状态及输出。
- cliDbPath() - Method in class io.github.easy4j.opencode.OpenCodeClient
-
委托本地 OpenCode CLI 门面执行db path 子命令,同步返回退出状态及输出。
- cliDebugConfig() - Method in class io.github.easy4j.opencode.OpenCodeClient
-
委托本地 OpenCode CLI 门面执行debug config 子命令,同步返回退出状态及输出。
- cliDebugInfo() - Method in class io.github.easy4j.opencode.OpenCodeClient
-
委托本地 OpenCode CLI 门面执行debug info 子命令,同步返回退出状态及输出。
- cliDebugPaths() - Method in class io.github.easy4j.opencode.OpenCodeClient
-
委托本地 OpenCode CLI 门面执行debug paths 子命令,同步返回退出状态及输出。
- cliExport(String, boolean) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
委托本地 OpenCode CLI 门面执行export 子命令,同步返回退出状态及输出。
- cliGenerate() - Method in class io.github.easy4j.opencode.OpenCodeClient
-
委托本地 OpenCode CLI 门面执行generate 子命令,同步返回退出状态及输出。
- cliGithubInstall() - Method in class io.github.easy4j.opencode.OpenCodeClient
-
委托本地 OpenCode CLI 门面执行github install 子命令,同步返回退出状态及输出。
- cliGithubRun(String, String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
委托本地 OpenCode CLI 门面执行github run 子命令,同步返回退出状态及输出。
- cliImport(String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
委托本地 OpenCode CLI 门面执行import 子命令,同步返回退出状态及输出。
- cliMcpAdd(String, String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
委托本地 OpenCode CLI 门面执行mcp add 子命令,同步返回退出状态及输出。
- cliMcpAuth(String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
委托本地 OpenCode CLI 门面执行mcp auth 子命令,同步返回退出状态及输出。
- cliMcpList() - Method in class io.github.easy4j.opencode.OpenCodeClient
-
委托本地 OpenCode CLI 门面执行mcp list 子命令,同步返回退出状态及输出。
- cliMcpLogout(String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
委托本地 OpenCode CLI 门面执行mcp logout 子命令,同步返回退出状态及输出。
- cliModels() - Method in class io.github.easy4j.opencode.OpenCodeClient
-
委托本地 OpenCode CLI 门面执行models 子命令,同步返回退出状态及输出。
- cliModels(String, boolean, boolean) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
委托本地 OpenCode CLI 门面执行models 子命令,同步返回退出状态及输出。
- cliPr(int) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
委托本地 OpenCode CLI 门面执行pr 子命令,同步返回退出状态及输出。
- cliProvidersList() - Method in class io.github.easy4j.opencode.OpenCodeClient
-
委托本地 OpenCode CLI 门面执行providers list 子命令,同步返回退出状态及输出。
- cliProvidersLogin(String, String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
委托本地 OpenCode CLI 门面执行providers login 子命令,同步返回退出状态及输出。
- cliProvidersLogout(String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
委托本地 OpenCode CLI 门面执行providers logout 子命令,同步返回退出状态及输出。
- cliServe() - Method in class io.github.easy4j.opencode.OpenCodeClient
-
委托本地 OpenCode CLI 门面执行serve 子命令,同步返回退出状态及输出。
- cliServe(Integer, String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
委托本地 OpenCode CLI 门面执行serve 子命令,同步返回退出状态及输出。
- cliSessionList() - Method in class io.github.easy4j.opencode.OpenCodeClient
-
委托本地 OpenCode CLI 门面执行session list 子命令,同步返回退出状态及输出。
- cliSessionList(int) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
委托本地 OpenCode CLI 门面执行session list 子命令,同步返回退出状态及输出。
- cliStats() - Method in class io.github.easy4j.opencode.OpenCodeClient
-
委托本地 OpenCode CLI 门面执行stats 子命令,同步返回退出状态及输出。
- cliStats(Integer, Integer, Integer, String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
委托本地 OpenCode CLI 门面执行stats 子命令,同步返回退出状态及输出。
- cliUninstall(boolean, boolean, boolean, boolean) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
委托本地 OpenCode CLI 门面执行uninstall 子命令,同步返回退出状态及输出。
- cliUpgrade() - Method in class io.github.easy4j.opencode.OpenCodeClient
-
委托本地 OpenCode CLI 门面执行upgrade 子命令,同步返回退出状态及输出。
- cliUpgrade(String, String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
委托本地 OpenCode CLI 门面执行upgrade 子命令,同步返回退出状态及输出。
- cliWeb() - Method in class io.github.easy4j.opencode.OpenCodeClient
-
委托本地 OpenCode CLI 门面执行web 子命令,同步返回退出状态及输出。
- cliWeb(Integer, String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
委托本地 OpenCode CLI 门面执行web 子命令,同步返回退出状态及输出。
- close() - Method in class io.github.easy4j.opencode.api.OpenCodeChatClient
-
释放当前对象持有的连接、订阅或执行资源;重复调用是安全的。
- close() - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
释放当前对象持有的连接、订阅或执行资源;重复调用是安全的。
- close() - Method in class io.github.easy4j.opencode.api.OpenCodeSseClient
-
取消全部订阅并释放 SSE 客户端自有资源。
- close() - Method in class io.github.easy4j.opencode.api.sse.SseQueueSubscription
-
释放当前对象持有的连接、订阅或执行资源;重复调用是安全的。
- close() - Method in class io.github.easy4j.opencode.api.sse.SseSubscription
-
释放当前对象持有的连接、订阅或执行资源;重复调用是安全的。
- close() - Method in class io.github.easy4j.opencode.OpenCodeClient
-
释放当前对象持有的连接、订阅或执行资源;重复调用是安全的。
- Command - Class in io.github.easy4j.opencode.api.model
-
Represents a registered slash command in OpenCode, corresponding to a GET /command response element.
- Command() - Constructor for class io.github.easy4j.opencode.api.model.Command
-
- consoleLogin(String) - Method in class io.github.easy4j.opencode.cli.OpenCodeCli
-
opencode console login [url]
- consoleLogout(String) - Method in class io.github.easy4j.opencode.cli.OpenCodeCli
-
opencode console logout [email]
- consoleOpen() - Method in class io.github.easy4j.opencode.cli.OpenCodeCli
-
opencode console open
- consoleOrgs() - Method in class io.github.easy4j.opencode.cli.OpenCodeCli
-
opencode console orgs
- consoleSwitch() - Method in class io.github.easy4j.opencode.cli.OpenCodeCli
-
opencode console switch
- create(OpenCodeHttpClientConfig) - Static method in class io.github.easy4j.opencode.OpenCodeOkHttpClientFactory
-
根据 OpenCode HTTP 配置创建客户端。
- createSession(String) - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
通过 OpenCode Server HTTP API 创建会话。
- createSession(String, OpenCodeRequestContext) - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
通过 OpenCode Server HTTP API 创建会话。
- createSession(String, OpenCodeRequestContext, HttpCallCancellation) - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
通过 OpenCode Server HTTP API 创建会话。
- createSession(String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
通过 OpenCode Server HTTP API 创建会话。
- createSessionAsync(String, OpenCodeRequestContext, HttpCallCancellation) - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
异步请求 OpenCode Server 创建会话;网络或解析失败通过返回的 Future 传播。
- fail(Throwable) - Method in class io.github.easy4j.opencode.api.sse.StreamingChatResponse
-
以给定异常结束流式响应。
- FileContent - Class in io.github.easy4j.opencode.api.model
-
Represents file content returned by GET /file/content.
- FileContent() - Constructor for class io.github.easy4j.opencode.api.model.FileContent
-
- FileDiff - Class in io.github.easy4j.opencode.api.model
-
Represents a file diff entry returned by GET /session/:id/diff.
- FileDiff() - Constructor for class io.github.easy4j.opencode.api.model.FileDiff
-
- FileNode - Class in io.github.easy4j.opencode.api.model
-
Represents a file or directory node returned by GET /file or GET /file/status.
- FileNode() - Constructor for class io.github.easy4j.opencode.api.model.FileNode
-
- FileSearchResult - Class in io.github.easy4j.opencode.api.model
-
Represents a ripgrep text search result returned by GET /find.
- FileSearchResult() - Constructor for class io.github.easy4j.opencode.api.model.FileSearchResult
-
- find(String) - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
GET /find,ripgrep 文本搜索。
- find(String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
调用 OpenCode Server 搜索接口查找OpenCode 协议数据;未命中时返回空结果。
- findFiles(String) - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
GET /find/file,按文件名/模式查找文件。
- findFiles(String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
调用 OpenCode Server 搜索接口查找文件节点;未命中时返回空结果。
- findSessionByTitle(String) - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
按 title 精确查找 session。
- findSessionByTitle(String, OpenCodeRequestContext) - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
调用 OpenCode Server 搜索接口查找标题匹配的会话;未命中时返回空结果。
- findSessionByTitle(String, OpenCodeRequestContext, HttpCallCancellation) - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
调用 OpenCode Server 搜索接口查找标题匹配的会话;未命中时返回空结果。
- findSessionByTitle(String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
调用 OpenCode Server 搜索接口查找标题匹配的会话;未命中时返回空结果。
- findSymbols(String) - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
GET /find/symbol,通过 LSP 搜索工作区符号。
- findSymbols(String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
调用 OpenCode Server 搜索接口查找代码符号;未命中时返回空结果。
- finish() - Method in class io.github.easy4j.opencode.api.sse.StreamingChatResponse
-
以当前累计文本正常完成流式响应。
- forkSession(String, String) - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
POST /session/:id/fork,从指定 message 处 fork session。
- forkSession(String, String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
从指定消息位置派生新会话,并返回服务端创建的子会话。
- FormatterStatus - Class in io.github.easy4j.opencode.api.model
-
Represents the status of a code formatter, returned by GET /formatter.
- FormatterStatus() - Constructor for class io.github.easy4j.opencode.api.model.FormatterStatus
-
- forStableSession(String, String) - Static method in class io.github.easy4j.opencode.api.OpenCodeSessionKeys
-
固定多轮会话 key:opencode:{agentId}:{peerId}。
- forStableSession(String, String, String) - Static method in class io.github.easy4j.opencode.api.OpenCodeSessionKeys
-
固定多轮会话 key(含渠道):opencode:{agentId}:{peerId}:{channel}。
- generate() - Method in class io.github.easy4j.opencode.cli.OpenCodeCli
-
opencode generate
打印带 JS 代码示例注入的 OpenAPI spec。
- getAccumulatedContent() - Method in class io.github.easy4j.opencode.api.sse.StreamingChatResponse
-
通过 OpenCode Server HTTP API 获取累计的流式文本。
- getConfig() - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
GET /config,获取实例生效的配置。
- getConfig() - Method in class io.github.easy4j.opencode.OpenCodeClient
-
通过 OpenCode Server HTTP API 获取实例配置。
- getConfigProviders() - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
GET /config/providers,获取已配置的 providers 列表与默认模型映射。
- getConfigProviders() - Method in class io.github.easy4j.opencode.OpenCodeClient
-
通过 OpenCode Server HTTP API 获取配置中的模型提供方。
- getContent() - Method in class io.github.easy4j.opencode.api.model.ChatResponse
-
快捷获取第一选择的消息内容。
- getCurrentProject() - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
GET /project/current,获取当前项目。
- getCurrentProject() - Method in class io.github.easy4j.opencode.OpenCodeClient
-
通过 OpenCode Server HTTP API 获取当前项目。
- getFileContent(String) - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
GET /file/content,读取文件内容。
- getFileContent(String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
通过 OpenCode Server HTTP API 获取文件内容。
- getFileStatus() - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
GET /file/status,获取项目所有文件的 git 状态。
- getFileStatus() - Method in class io.github.easy4j.opencode.OpenCodeClient
-
通过 OpenCode Server HTTP API 获取文件状态。
- getGlobalConfig() - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
GET /global/config,获取全局配置。
- getGlobalOpenCodeConfig() - Method in class io.github.easy4j.opencode.OpenCodeClient
-
通过 OpenCode Server HTTP API 获取全局配置。
- getMessage(String, String) - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
GET /session/:id/message/:messageID,获取单条 message 详情。
- getMessage(String, String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
通过 OpenCode Server HTTP API 获取会话消息。
- getMessages(String) - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
通过 OpenCode Server HTTP API 获取会话消息。
- getMessages(String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
通过 OpenCode Server HTTP API 获取会话消息。
- getObjectMapper() - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
暴露 ObjectMapper 供转换器复用。
- getOkHttpClient() - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
暴露 OkHttpClient 供 SSE 客户端复用。
- getOpenCodeConfig() - Method in class io.github.easy4j.opencode.OpenCodeClient
-
通过 OpenCode Server HTTP API 获取配置。
- getPath() - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
GET /path,获取 opencode 工作目录相关的所有路径。
- getPath() - Method in class io.github.easy4j.opencode.OpenCodeClient
-
通过 OpenCode Server HTTP API 获取运行路径信息。
- getQueue() - Method in class io.github.easy4j.opencode.api.sse.SseQueueSubscription
-
通过 OpenCode Server HTTP API 获取SSE 事件队列。
- getSession(String) - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
通过 OpenCode Server HTTP API 获取会话。
- getSession(String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
通过 OpenCode Server HTTP API 获取会话。
- getSessionChildren(String) - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
GET /session/:id/children,列出 session 的子(forked)session。
- getSessionChildren(String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
通过 OpenCode Server HTTP API 获取子会话。
- getSessionDiff(String, String) - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
GET /session/:id/diff,获取指定 message 之后的文件 diff。
- getSessionDiff(String, String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
通过 OpenCode Server HTTP API 获取会话文件差异。
- getSessionStatusMap() - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
GET /session/status,获取所有 session 状态。
- getSessionStatusMap() - Method in class io.github.easy4j.opencode.OpenCodeClient
-
通过 OpenCode Server HTTP API 获取会话状态。
- getSessionTodo(String) - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
GET /session/:id/todo,获取 session 的 todo 列表。
- getSessionTodo(String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
通过 OpenCode Server HTTP API 获取会话待办项。
- getSubscription() - Method in class io.github.easy4j.opencode.api.sse.SseQueueSubscription
-
通过 OpenCode Server HTTP API 获取SSE 订阅句柄。
- getTextContent() - Method in class io.github.easy4j.opencode.api.model.PromptResult
-
提取纯文本响应(拼接所有 type=text 的 part)。
- getVcs() - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
GET /vcs,获取当前工作目录的 VCS 信息。
- getVcs() - Method in class io.github.easy4j.opencode.OpenCodeClient
-
通过 OpenCode Server HTTP API 获取版本控制状态。
- githubInstall() - Method in class io.github.easy4j.opencode.cli.OpenCodeCli
-
opencode github install
- githubRun(String, String) - Method in class io.github.easy4j.opencode.cli.OpenCodeCli
-
{@code opencode github run [--event ...
- globalDispose() - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
POST /global/dispose,释放所有 instance。
- globalDispose() - Method in class io.github.easy4j.opencode.OpenCodeClient
-
请求 OpenCode Server 释放全部全局实例资源。
- globalUpgrade(String) - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
POST /global/upgrade,升级 opencode。
- globalUpgrade(String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
请求 OpenCode Server 将全局安装升级到指定目标版本。
- listAgents() - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
通过 OpenCode Server HTTP API 查询智能体;无数据时返回空集合。
- listAgents() - Method in class io.github.easy4j.opencode.OpenCodeClient
-
通过 OpenCode Server HTTP API 查询智能体;无数据时返回空集合。
- listCommands() - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
GET /command,列出已注册的 slash commands。
- listCommands() - Method in class io.github.easy4j.opencode.OpenCodeClient
-
通过 OpenCode Server HTTP API 查询斜杠命令;无数据时返回空集合。
- listFiles(String) - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
GET /file,列出指定目录下的文件/目录树。
- listFiles(String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
通过 OpenCode Server HTTP API 查询文件节点;无数据时返回空集合。
- listFormatters() - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
GET /formatter,列出 formatter 状态。
- listFormatters() - Method in class io.github.easy4j.opencode.OpenCodeClient
-
通过 OpenCode Server HTTP API 查询格式化器状态;无数据时返回空集合。
- listLsps() - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
GET /lsp,列出 LSP 服务器状态。
- listLsps() - Method in class io.github.easy4j.opencode.OpenCodeClient
-
通过 OpenCode Server HTTP API 查询语言服务器状态;无数据时返回空集合。
- listMcpServers() - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
GET /mcp,列出 MCP 服务器状态。
- listMcpServers() - Method in class io.github.easy4j.opencode.OpenCodeClient
-
通过 OpenCode Server HTTP API 查询MCP 服务;无数据时返回空集合。
- listPermissions() - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
GET /permission,列出所有待审批权限请求。
- listPermissions() - Method in class io.github.easy4j.opencode.OpenCodeClient
-
通过 OpenCode Server HTTP API 查询待处理权限;无数据时返回空集合。
- listProjects() - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
GET /project,列出所有已知项目。
- listProjects() - Method in class io.github.easy4j.opencode.OpenCodeClient
-
通过 OpenCode Server HTTP API 查询项目;无数据时返回空集合。
- listProviderAuthMethods() - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
GET /provider/auth,获取每个 provider 的可用认证方式。
- listProviderAuthMethods() - Method in class io.github.easy4j.opencode.OpenCodeClient
-
通过 OpenCode Server HTTP API 查询模型提供方认证方式;无数据时返回空集合。
- listProviders() - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
GET /provider,获取 providers 列表 + 默认 provider/model 映射 + 已连接 provider。
- listProviders() - Method in class io.github.easy4j.opencode.OpenCodeClient
-
通过 OpenCode Server HTTP API 查询模型提供方;无数据时返回空集合。
- listQuestions() - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
GET /question,列出所有待回答的问题。
- listQuestions() - Method in class io.github.easy4j.opencode.OpenCodeClient
-
通过 OpenCode Server HTTP API 查询待回答问题;无数据时返回空集合。
- listSessions() - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
通过 OpenCode Server HTTP API 查询会话;无数据时返回空集合。
- listSessions(String, Integer, Integer) - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
分页/过滤列出 sessions,对齐 Hermes listSessions(limit, offset, source, includeChildren)。
- listSessions(String, Integer, Integer, OpenCodeRequestContext) - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
通过 OpenCode Server HTTP API 查询会话;无数据时返回空集合。
- listSessions() - Method in class io.github.easy4j.opencode.OpenCodeClient
-
通过 OpenCode Server HTTP API 查询会话;无数据时返回空集合。
- listSessions(String, Integer, Integer) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
通过 OpenCode Server HTTP API 查询会话;无数据时返回空集合。
- listSessionsAsync(String, Integer, Integer, OpenCodeRequestContext, HttpCallCancellation) - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
异步分页列出会话。
- listSkills() - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
GET /skill,列出已注册的 skills。
- listSkills() - Method in class io.github.easy4j.opencode.OpenCodeClient
-
通过 OpenCode Server HTTP API 查询技能;无数据时返回空集合。
- LspStatus - Class in io.github.easy4j.opencode.api.model
-
Represents the status of an LSP server, returned by GET /lsp.
- LspStatus() - Constructor for class io.github.easy4j.opencode.api.model.LspStatus
-
- ofDirectory(String) - Static method in class io.github.easy4j.opencode.api.OpenCodeRequestContext
-
创建只包含工作目录的请求上下文。
- ofText(String) - Static method in class io.github.easy4j.opencode.api.model.PromptRequest
-
快捷构造:纯文本 prompt。
- ofText(String, String, String) - Static method in class io.github.easy4j.opencode.api.model.PromptRequest
-
快捷构造:带模型的纯文本 prompt。
- ofUser(String) - Static method in class io.github.easy4j.opencode.api.model.ChatRequest
-
快捷构造:单条 user 消息。
- ofUser(String, String) - Static method in class io.github.easy4j.opencode.api.model.ChatRequest
-
快捷构造:单条 user 消息 + 模型。
- onCancel(Runnable) - Method in class io.github.easy4j.opencode.api.sse.StreamingChatResponse
-
绑定底层 EventSource 取消动作。
- onCancel(Runnable) - Method in interface io.github.easy4j.opencode.HttpCallCancellation
-
Registers a cancellation callback and returns a handle to unregister it.
- onDelta(Consumer<String>) - Method in class io.github.easy4j.opencode.api.sse.StreamingChatResponse
-
注册文本增量消费者;后续到达的增量按接收顺序同步通知该消费者。
- onEvent(SseEvent) - Method in interface io.github.easy4j.opencode.api.event.EventHandler
-
任一事件到达时优先触发(最早)。
- onFileDiff(String, SseEvent) - Method in interface io.github.easy4j.opencode.api.event.EventHandler
-
文件 diff 事件。
- onMessage(String, String, SseEvent) - Method in interface io.github.easy4j.opencode.api.event.EventHandler
-
Message 创建事件(user / assistant)。
- onPermissionRequested(String, String, SseEvent) - Method in interface io.github.easy4j.opencode.api.event.EventHandler
-
处理 permission requested 事件;默认实现不执行操作。
- onQuestionRequested(String, String, SseEvent) - Method in interface io.github.easy4j.opencode.api.event.EventHandler
-
处理 question requested 事件;默认实现不执行操作。
- onSessionError(String, String, SseEvent) - Method in interface io.github.easy4j.opencode.api.event.EventHandler
-
session 发生错误时触发。
- onSessionIdle(String, SseEvent) - Method in interface io.github.easy4j.opencode.api.event.EventHandler
-
session 进入 idle 状态(agent loop 完成)时触发。
- onSessionStatus(String, String, SseEvent) - Method in interface io.github.easy4j.opencode.api.event.EventHandler
-
Session 状态变更(idle / running / retry / compacting)。
- onTextDelta(String, SseEvent) - Method in interface io.github.easy4j.opencode.api.event.EventHandler
-
文本增量(message.part.updated / text.delta 等)。
- onToolCall(String, Map<String, Object>, SseEvent) - Method in interface io.github.easy4j.opencode.api.event.EventHandler
-
工具调用(tool_use part)。
- onToolResult(String, Object, SseEvent) - Method in interface io.github.easy4j.opencode.api.event.EventHandler
-
工具调用结果(tool_result part)。
- OpenCodeCallbackParser - Class in io.github.easy4j.opencode.api.mapper
-
Parses callback JSON from OpenCode AI text responses.
- OpenCodeCallbackParser() - Constructor for class io.github.easy4j.opencode.api.mapper.OpenCodeCallbackParser
-
- OpenCodeChatClient - Class in io.github.easy4j.opencode.api
-
OpenCode 聊天场景客户端,统一提供完整响应与流式响应。
- OpenCodeChatClient(OpenCodeHttpClientConfig) - Constructor for class io.github.easy4j.opencode.api.OpenCodeChatClient
-
创建 open code chat client 实例,并按传入依赖确定资源所有权。
- OpenCodeChatClient(OpenCodeHttpClientConfig, ObjectMapper, OkHttpClient) - Constructor for class io.github.easy4j.opencode.api.OpenCodeChatClient
-
创建 open code chat client 实例,并按传入依赖确定资源所有权。
- OpenCodeChatClient(OpenCodeHttpClientConfig, ObjectMapper, OkHttpClient, OpenCodeSseClient) - Constructor for class io.github.easy4j.opencode.api.OpenCodeChatClient
-
创建 open code chat client 实例,并按传入依赖确定资源所有权。
- OpenCodeCli - Class in io.github.easy4j.opencode.cli
-
Facade for the local opencode CLI commands.
- OpenCodeCli(OpenCodeCliExecutor) - Constructor for class io.github.easy4j.opencode.cli.OpenCodeCli
-
创建 open code cli 实例,并按传入依赖确定资源所有权。
- OpenCodeCliAvailabilityChecker - Class in io.github.easy4j.opencode.cli.availability
-
Checks whether the local opencode CLI is installed and can execute opencode --version.
- OpenCodeCliAvailabilityChecker() - Constructor for class io.github.easy4j.opencode.cli.availability.OpenCodeCliAvailabilityChecker
-
- OpenCodeCliAvailabilityReport - Class in io.github.easy4j.opencode.cli.availability
-
Report produced by the CLI availability probe during startup or readiness checks.
- OpenCodeCliAvailabilityReport() - Constructor for class io.github.easy4j.opencode.cli.availability.OpenCodeCliAvailabilityReport
-
- OpenCodeCliAvailabilityStatus - Enum in io.github.easy4j.opencode.cli.availability
-
Enumeration of possible outcomes from an OpenCode CLI availability probe.
- OpenCodeCliConfig - Class in io.github.easy4j.opencode
-
Configuration for the local OpenCode CLI subsystem.
- OpenCodeCliConfig() - Constructor for class io.github.easy4j.opencode.OpenCodeCliConfig
-
使用独立的默认调试策略创建配置。
- OpenCodeCliConfig(OpenCodeDebugConfig) - Constructor for class io.github.easy4j.opencode.OpenCodeCliConfig
-
使用指定调试策略创建配置。
- OpenCodeClient - Class in io.github.easy4j.opencode
-
Facade client for OpenCode: HTTP Server + SSE event stream + local CLI.
- OpenCodeClient(OpenCodeHttpClientConfig) - Constructor for class io.github.easy4j.opencode.OpenCodeClient
-
仅 HTTP 子系统(CLI 禁用)。
- OpenCodeClient(OpenCodeHttpClientConfig, ObjectMapper, OkHttpClient) - Constructor for class io.github.easy4j.opencode.OpenCodeClient
-
仅 HTTP 子系统(CLI 禁用),强制注入共享 ObjectMapper 与 OkHttpClient。
- OpenCodeClient(OpenCodeCliConfig) - Constructor for class io.github.easy4j.opencode.OpenCodeClient
-
仅 CLI 子系统(HTTP 禁用)。
- OpenCodeClient(OpenCodeCliConfig, ObjectMapper, OkHttpClient) - Constructor for class io.github.easy4j.opencode.OpenCodeClient
-
仅 CLI 子系统(HTTP 禁用),强制注入共享 ObjectMapper 与 OkHttpClient。
- OpenCodeClient(OpenCodeHttpClientConfig, OpenCodeCliConfig) - Constructor for class io.github.easy4j.opencode.OpenCodeClient
-
HTTP + CLI 子系统。
- OpenCodeClient(OpenCodeHttpClientConfig, OpenCodeCliConfig, ObjectMapper, OkHttpClient) - Constructor for class io.github.easy4j.opencode.OpenCodeClient
-
HTTP + CLI 子系统,强制注入共享 ObjectMapper 与 OkHttpClient。
- OpenCodeClient(OpenCodeClientConfig) - Constructor for class io.github.easy4j.opencode.OpenCodeClient
-
组合配置,自动创建默认 ObjectMapper 与 OkHttpClient。
- OpenCodeClient(OpenCodeClientConfig, ObjectMapper, OkHttpClient) - Constructor for class io.github.easy4j.opencode.OpenCodeClient
-
组合配置,强制注入共享 ObjectMapper 与 OkHttpClient。
- OpenCodeClient(OpenCodeClientConfig, OpenCodeHttpClient, OpenCodeSseClient, OpenCodeCli) - Constructor for class io.github.easy4j.opencode.OpenCodeClient
-
全量依赖注入(用于测试或自定义组件)。
- OpenCodeClientConfig - Class in io.github.easy4j.opencode
-
Unified configuration POJO for the OpenCode client.
- OpenCodeClientConfig() - Constructor for class io.github.easy4j.opencode.OpenCodeClientConfig
-
- OpenCodeCliExecutor - Class in io.github.easy4j.opencode.cli
-
Executor for the local opencode CLI subprocess.
- OpenCodeCliExecutor(OpenCodeCliConfig) - Constructor for class io.github.easy4j.opencode.cli.OpenCodeCliExecutor
-
创建 open code cli executor 实例,并按传入依赖确定资源所有权。
- OpenCodeCliResult - Class in io.github.easy4j.opencode.cli
-
Represents the result of a local opencode CLI command execution.
- OpenCodeCliResult() - Constructor for class io.github.easy4j.opencode.cli.OpenCodeCliResult
-
- OpenCodeCliStartupException - Exception in io.github.easy4j.opencode.exception
-
Thrown during application startup when the OpenCode CLI is unavailable and fail-fast is enabled.
- OpenCodeCliStartupException(String, OpenCodeCliAvailabilityReport) - Constructor for exception io.github.easy4j.opencode.exception.OpenCodeCliStartupException
-
创建 open code cli startup exception 实例,并按传入依赖确定资源所有权。
- OpenCodeConfig - Class in io.github.easy4j.opencode.api.model
-
Represents the OpenCode global or instance configuration, returned by
GET /config and GET /global/config.
- OpenCodeConfig() - Constructor for class io.github.easy4j.opencode.api.model.OpenCodeConfig
-
- OpenCodeDebugConfig - Class in io.github.easy4j.opencode
-
OpenCode SDK 统一调试配置,用于控制生命周期、请求头和正文日志。
- OpenCodeDebugConfig() - Constructor for class io.github.easy4j.opencode.OpenCodeDebugConfig
-
- OpenCodeException - Exception in io.github.easy4j.opencode.exception
-
Base exception for the OpenCode SDK.
- OpenCodeException(String) - Constructor for exception io.github.easy4j.opencode.exception.OpenCodeException
-
创建 open code exception 实例,并按传入依赖确定资源所有权。
- OpenCodeException(String, Throwable) - Constructor for exception io.github.easy4j.opencode.exception.OpenCodeException
-
创建 open code exception 实例,并按传入依赖确定资源所有权。
- OpenCodeHttpClient - Class in io.github.easy4j.opencode.api
-
HTTP client for the OpenCode Server REST API.
- OpenCodeHttpClient(OpenCodeHttpClientConfig, ObjectMapper, OkHttpClient) - Constructor for class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
创建 open code http client 实例,并按传入依赖确定资源所有权。
- OpenCodeHttpClientConfig - Class in io.github.easy4j.opencode
-
Configuration for the OpenCode HTTP Server client.
- OpenCodeHttpClientConfig() - Constructor for class io.github.easy4j.opencode.OpenCodeHttpClientConfig
-
使用默认关闭的调试配置创建 HTTP 配置。
- OpenCodeHttpClientConfig(OpenCodeDebugConfig) - Constructor for class io.github.easy4j.opencode.OpenCodeHttpClientConfig
-
使用客户端级共享调试配置创建 HTTP 配置。
- OpenCodeHttpException - Exception in io.github.easy4j.opencode.exception
-
Exception thrown when an OpenCode HTTP request fails.
- OpenCodeHttpException(int, String) - Constructor for exception io.github.easy4j.opencode.exception.OpenCodeHttpException
-
创建 open code http exception 实例,并按传入依赖确定资源所有权。
- OpenCodeHttpException(String, Throwable) - Constructor for exception io.github.easy4j.opencode.exception.OpenCodeHttpException
-
创建 open code http exception 实例,并按传入依赖确定资源所有权。
- OpenCodeOkHttpClientFactory - Class in io.github.easy4j.opencode
-
Factory for creating OkHttpClient instances used by the OpenCode SDK in standalone mode.
- OpenCodePath - Class in io.github.easy4j.opencode.api.model
-
Represents OpenCode working directory paths, returned by GET /path.
- OpenCodePath() - Constructor for class io.github.easy4j.opencode.api.model.OpenCodePath
-
- OpenCodeRequestContext - Class in io.github.easy4j.opencode.api
-
OpenCode 单次请求上下文。
- OpenCodeRequestContext() - Constructor for class io.github.easy4j.opencode.api.OpenCodeRequestContext
-
- OpenCodeSessionKeys - Class in io.github.easy4j.opencode.api
-
OpenCode 会话 key 命名工具,对齐 OpenClawSessionKeys 的设计。
- OpenCodeSseClient - Class in io.github.easy4j.opencode.api
-
OpenCode Server SSE 客户端,负责事件订阅、过滤、取消和资源回收。
- OpenCodeSseClient(OpenCodeHttpClientConfig) - Constructor for class io.github.easy4j.opencode.api.OpenCodeSseClient
-
使用 SDK 自建 OkHttpClient 创建 SSE 客户端。
- OpenCodeSseClient(OpenCodeHttpClientConfig, ObjectMapper, OkHttpClient) - Constructor for class io.github.easy4j.opencode.api.OpenCodeSseClient
-
使用共享 ObjectMapper 和 OkHttpClient 创建 SSE 客户端。
- parseFromPromptResult(PromptResult) - Method in class io.github.easy4j.opencode.api.mapper.OpenCodeCallbackParser
-
从 PromptResult 中提取文本内容并解析为 Map。
- parseFromText(String) - Method in class io.github.easy4j.opencode.api.mapper.OpenCodeCallbackParser
-
从纯文本中尝试提取并解析 JSON。
- Part - Class in io.github.easy4j.opencode.api.model
-
Represents a part of an OpenCode message (text, tool_use, tool_result, etc.).
- Part() - Constructor for class io.github.easy4j.opencode.api.model.Part
-
- PermissionRequest - Class in io.github.easy4j.opencode.api.model
-
Represents a pending permission request, returned by GET /permission.
- PermissionRequest() - Constructor for class io.github.easy4j.opencode.api.model.PermissionRequest
-
- plugin(String, boolean, boolean) - Method in class io.github.easy4j.opencode.cli.OpenCodeCli
-
opencode plugin <module> [--global] [--force]
- pr(int) - Method in class io.github.easy4j.opencode.cli.OpenCodeCli
-
opencode pr <number>
- probe() - Method in class io.github.easy4j.opencode.cli.OpenCodeCliExecutor
-
探测 CLI 是否可用(执行 opencode --version)。
- Project - Class in io.github.easy4j.opencode.api.model
-
Represents an OpenCode project, returned by GET /project and GET /project/current.
- Project() - Constructor for class io.github.easy4j.opencode.api.model.Project
-
- prompt(String, PromptRequest) - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
向指定会话同步提交 Prompt,并等待 OpenCode Server 返回完整生成结果。
- prompt(String, PromptRequest, HttpCallCancellation) - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
向指定会话同步提交 Prompt,并等待 OpenCode Server 返回完整生成结果。
- promptAsync(String, PromptRequest) - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
向指定会话提交无需等待正文的异步 Prompt 请求。
- promptAsync(String, PromptRequest, OpenCodeRequestContext) - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
向指定会话提交无需等待正文的异步 Prompt 请求。
- promptCompletionAsync(String, PromptRequest, HttpCallCancellation) - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
异步发送消息并等待完整 Prompt 结果。
- PromptRequest - Class in io.github.easy4j.opencode.api.model
-
Request body for sending a message to the OpenCode Server (POST /session/:id/message).
- PromptRequest() - Constructor for class io.github.easy4j.opencode.api.model.PromptRequest
-
- PromptRequest.ModelRef - Class in io.github.easy4j.opencode.api.model
-
模型提供方与模型 ID 的协议引用。
- PromptResult - Class in io.github.easy4j.opencode.api.model
-
Response body from the OpenCode Server prompt endpoint (POST /session/:id/message).
- PromptResult() - Constructor for class io.github.easy4j.opencode.api.model.PromptResult
-
- Provider - Class in io.github.easy4j.opencode.api.model
-
Represents an OpenCode provider, returned by GET /provider.
- Provider() - Constructor for class io.github.easy4j.opencode.api.model.Provider
-
- ProviderAuthAuthorization - Class in io.github.easy4j.opencode.api.model
-
Represents a provider OAuth authorization response, returned by
POST /provider/:id/oauth/authorize.
- ProviderAuthAuthorization() - Constructor for class io.github.easy4j.opencode.api.model.ProviderAuthAuthorization
-
- ProviderAuthMethod - Class in io.github.easy4j.opencode.api.model
-
Represents a provider authentication method, returned in GET /provider/auth.
- ProviderAuthMethod() - Constructor for class io.github.easy4j.opencode.api.model.ProviderAuthMethod
-
- ProviderList - Class in io.github.easy4j.opencode.api.model
-
Container for the OpenCode provider list, returned by GET /provider.
- ProviderList() - Constructor for class io.github.easy4j.opencode.api.model.ProviderList
-
- providerOAuthAuthorize(String, String) - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
POST /provider/:id/oauth/authorize,启动 provider OAuth 授权。
- providerOAuthAuthorize(String, String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
启动指定模型提供方的 OAuth 授权流程,并返回访问地址及校验状态。
- providerOAuthCallback(String, String) - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
POST /provider/:id/oauth/callback,处理 OAuth 回调。
- providerOAuthCallback(String, String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
向 OpenCode Server 提交模型提供方 OAuth 回调授权码。
- providerOAuthCallbackAsync(String, String) - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
异步处理 provider OAuth 回调。
- providersList() - Method in class io.github.easy4j.opencode.cli.OpenCodeCli
-
opencode providers list
- providersLogin(String, String) - Method in class io.github.easy4j.opencode.cli.OpenCodeCli
-
{@code opencode providers login [--provider ...
- providersLogout(String) - Method in class io.github.easy4j.opencode.cli.OpenCodeCli
-
opencode providers logout [provider]
- serve(Integer, String) - Method in class io.github.easy4j.opencode.cli.OpenCodeCli
-
opencode serve [--port N --hostname H]
- Session - Class in io.github.easy4j.opencode.api.model
-
Represents an OpenCode session.
- Session() - Constructor for class io.github.easy4j.opencode.api.model.Session
-
- sessionDelete(String) - Method in class io.github.easy4j.opencode.cli.OpenCodeCli
-
opencode session delete <sessionId>
- sessionList() - Method in class io.github.easy4j.opencode.cli.OpenCodeCli
-
opencode session list --format json
- sessionList(int) - Method in class io.github.easy4j.opencode.cli.OpenCodeCli
-
opencode session list --max-count <n> --format json
- SessionStatus - Class in io.github.easy4j.opencode.api.model
-
Represents the status of a single session, returned in GET /session/status.
- SessionStatus() - Constructor for class io.github.easy4j.opencode.api.model.SessionStatus
-
- SessionTodo - Class in io.github.easy4j.opencode.api.model
-
Represents a session todo item, returned by GET /session/:id/todo.
- SessionTodo() - Constructor for class io.github.easy4j.opencode.api.model.SessionTodo
-
- setAuth(String, Object) - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
PUT /auth/:id,设置 provider 凭证。
- setAuth(String, Object) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
保存指定模型提供方的认证配置。
- setAuthAsync(String, Object) - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
异步设置 provider 凭证。
- shareSession(String) - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
POST /session/:id/share,创建可分享链接。
- shareSession(String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
为指定会话启用共享,并返回更新后的会话信息。
- shutdown(OkHttpClient) - Static method in class io.github.easy4j.opencode.OpenCodeOkHttpClientFactory
-
释放 SDK 自建客户端资源。
- Skill - Class in io.github.easy4j.opencode.api.model
-
Represents a registered skill in OpenCode, returned by GET /skill.
- Skill() - Constructor for class io.github.easy4j.opencode.api.model.Skill
-
- sse() - Method in class io.github.easy4j.opencode.OpenCodeClient
-
获取统一的 OpenCode SSE 场景客户端。
- SseEvent - Class in io.github.easy4j.opencode.api.sse
-
OpenCode Server 通过 SSE 传输的事件。
- SseEvent() - Constructor for class io.github.easy4j.opencode.api.sse.SseEvent
-
- SseQueueSubscription - Class in io.github.easy4j.opencode.api.sse
-
同时持有事件队列和取消句柄的 SSE 队列订阅。
- SseQueueSubscription(BlockingQueue<SseEvent>, SseSubscription) - Constructor for class io.github.easy4j.opencode.api.sse.SseQueueSubscription
-
创建 sse queue subscription 实例,并按传入依赖确定资源所有权。
- SseSubscription - Class in io.github.easy4j.opencode.api.sse
-
可取消且幂等关闭的 OpenCode SSE 订阅句柄。
- SseSubscription(Runnable) - Constructor for class io.github.easy4j.opencode.api.sse.SseSubscription
-
创建 sse subscription 实例,并按传入依赖确定资源所有权。
- stats(Integer, Integer, Integer, String) - Method in class io.github.easy4j.opencode.cli.OpenCodeCli
-
{@code opencode stats [--days ...
- StreamingChatResponse - Class in io.github.easy4j.opencode.api.sse
-
OpenCode 流式聊天响应,逐段回调并在结束时返回累积全文。
- StreamingChatResponse() - Constructor for class io.github.easy4j.opencode.api.sse.StreamingChatResponse
-
- subscribeEvents(Consumer<SseEvent>) - Method in class io.github.easy4j.opencode.api.OpenCodeSseClient
-
订阅全局事件流。
- subscribeEvents(Consumer<SseEvent>, OpenCodeRequestContext) - Method in class io.github.easy4j.opencode.api.OpenCodeSseClient
-
使用请求上下文订阅全局事件流。
- subscribeEventsQueue(OpenCodeRequestContext) - Method in class io.github.easy4j.opencode.api.OpenCodeSseClient
-
创建带有界队列的全局事件订阅。
- subscribeEventTypes(Set<String>, Consumer<SseEvent>) - Method in class io.github.easy4j.opencode.api.OpenCodeSseClient
-
订阅指定类型集合中的事件。
- subscribeEventTypes(Set<String>, Consumer<SseEvent>, OpenCodeRequestContext) - Method in class io.github.easy4j.opencode.api.OpenCodeSseClient
-
使用请求上下文订阅指定类型集合中的事件。
- subscribeSessionEvents(String, Consumer<SseEvent>) - Method in class io.github.easy4j.opencode.api.OpenCodeSseClient
-
订阅指定 session 的事件。
- subscribeSessionEvents(String, Consumer<SseEvent>, OpenCodeRequestContext) - Method in class io.github.easy4j.opencode.api.OpenCodeSseClient
-
使用请求上下文订阅指定 session 的事件。
- subscribeSessionEvents(String, EventHandler) - Method in class io.github.easy4j.opencode.api.OpenCodeSseClient
-
使用类型化处理器订阅指定 session 的事件。
- subscribeSessionEvents(String, EventHandler, OpenCodeRequestContext) - Method in class io.github.easy4j.opencode.api.OpenCodeSseClient
-
使用请求上下文和类型化处理器订阅指定 session 的事件。
- summarizeSession(String, String, String) - Method in class io.github.easy4j.opencode.api.OpenCodeHttpClient
-
POST /session/:id/summarize,对 session 进行 AI 摘要压缩。
- summarizeSession(String, String, String) - Method in class io.github.easy4j.opencode.OpenCodeClient
-
使用指定模型压缩会话上下文,以降低后续请求的上下文长度。
- Symbol - Class in io.github.easy4j.opencode.api.model
-
Represents an LSP workspace symbol, returned by GET /find/symbol.
- Symbol() - Constructor for class io.github.easy4j.opencode.api.model.Symbol
-
- system(String) - Static method in class io.github.easy4j.opencode.api.model.ChatMessage
-
快捷构造 system 消息。