Package io.github.easy4j.opencode.api.model
package io.github.easy4j.opencode.api.model
-
ClassesClassDescriptionRepresents an OpenCode agent, returned by
GET /agent.OpenAI Chat Completions API message object (aligned with OpenClaw/Hermes).OpenAI Chat Completions API request body (aligned with OpenClaw/Hermes).OpenAI Chat Completions API response (aligned with OpenClaw/Hermes).响应中的一个选择。Token 使用统计。Represents a registered slash command in OpenCode, corresponding to aGET /commandresponse element.Represents file content returned byGET /file/content.Represents a file diff entry returned byGET /session/:id/diff.Represents a file or directory node returned byGET /fileorGET /file/status.Represents a ripgrep text search result returned byGET /find.Represents the status of a code formatter, returned byGET /formatter.Represents the health check response from the OpenCode Server (GET /global/health).Represents the status of an LSP server, returned byGET /lsp.Represents the status of an MCP server, returned byGET /mcp.Represents an OpenCode message within a session.Detailed information for a single message, returned byGET /session/:id/message/:messageID.Represents the OpenCode global or instance configuration, returned byGET /configandGET /global/config.Represents OpenCode working directory paths, returned byGET /path.Represents a part of an OpenCode message (text, tool_use, tool_result, etc.).Represents a pending permission request, returned byGET /permission.Represents an OpenCode project, returned byGET /projectandGET /project/current.Request body for sending a message to the OpenCode Server (POST /session/:id/message).模型提供方与模型 ID 的协议引用。Response body from the OpenCode Server prompt endpoint (POST /session/:id/message).Represents an OpenCode provider, returned byGET /provider.Represents a provider OAuth authorization response, returned byPOST /provider/:id/oauth/authorize.Represents a provider authentication method, returned inGET /provider/auth.Container for the OpenCode provider list, returned byGET /provider.Represents a pending question request, returned byGET /question.选项。Represents an OpenCode session.Represents the status of a single session, returned inGET /session/status.Represents a session todo item, returned byGET /session/:id/todo.Represents a registered skill in OpenCode, returned byGET /skill.Represents an LSP workspace symbol, returned byGET /find/symbol.Represents VCS (Version Control System) information for the OpenCode working directory, returned byGET /vcs.