Provides API endpoints related to opencode http api
Summary
Types
@type v2_agent_list_200_json_resp() :: %{ data: [OpenCode.Generated.AgentV2Info.t()], location: OpenCode.Generated.LocationInfo.t() }
@type v2_health_get_200_json_resp() :: %{healthy: true}
Functions
@spec v2_agent_list(opts :: keyword()) :: {:ok, v2_agent_list_200_json_resp()} | {:error, OpenCode.Generated.InvalidRequestError.t() | OpenCode.Generated.UnauthorizedError.t()}
List agents
Retrieve currently registered agents.
Options
location
@spec v2_health_get(opts :: keyword()) :: {:ok, v2_health_get_200_json_resp()} | {:error, OpenCode.Generated.InvalidRequestError.t() | OpenCode.Generated.UnauthorizedError.t()}
Check server health
Check whether the API server is ready to accept requests.