Module types

Module types 

Source
Expand description

OpenCode Server API types

Type definitions matching the OpenCode Server REST API schema.

Structs§

CreateSessionRequest
Session creation request
ErrorResponse
Error response from server
MessageRequest
Message/prompt request
ModelSpec
Model specification for a message
ServerInfo
Server info response
Session
Session response from server
SessionStatus
Session status response

Enums§

MessagePart
Part of a message (currently only text supported)
SessionState
State of a session