Package io.github.easy4j.opencode.api.model


package io.github.easy4j.opencode.api.model
  • Classes
    Class
    Description
    Represents 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 a GET /command response element.
    Represents file content returned by GET /file/content.
    Represents a file diff entry returned by GET /session/:id/diff.
    Represents a file or directory node returned by GET /file or GET /file/status.
    Represents a ripgrep text search result returned by GET /find.
    Represents the status of a code formatter, returned by GET /formatter.
    Represents the health check response from the OpenCode Server (GET /global/health).
    Represents the status of an LSP server, returned by GET /lsp.
    Represents the status of an MCP server, returned by GET /mcp.
    Represents an OpenCode message within a session.
    Detailed information for a single message, returned by GET /session/:id/message/:messageID.
    Represents the OpenCode global or instance configuration, returned by GET /config and GET /global/config.
    Represents OpenCode working directory paths, returned by GET /path.
    Represents a part of an OpenCode message (text, tool_use, tool_result, etc.).
    Represents a pending permission request, returned by GET /permission.
    Represents an OpenCode project, returned by GET /project and GET /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 by GET /provider.
    Represents a provider OAuth authorization response, returned by POST /provider/:id/oauth/authorize.
    Represents a provider authentication method, returned in GET /provider/auth.
    Container for the OpenCode provider list, returned by GET /provider.
    Represents a pending question request, returned by GET /question.
    选项。
    Represents an OpenCode session.
    Represents the status of a single session, returned in GET /session/status.
    Represents a session todo item, returned by GET /session/:id/todo.
    Represents a registered skill in OpenCode, returned by GET /skill.
    Represents an LSP workspace symbol, returned by GET /find/symbol.
    Represents VCS (Version Control System) information for the OpenCode working directory, returned by GET /vcs.