2025-07-04 00:49:15 +08:00
# Shared Response Types
2025-07-08 08:58:47 +08:00
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go/shared" > shared</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go/shared#MessageAbortedError" > MessageAbortedError</ a >
2025-07-04 00:49:15 +08:00
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go/shared" > shared</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go/shared#ProviderAuthError" > ProviderAuthError</ a >
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go/shared" > shared</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go/shared#UnknownError" > UnknownError</ a >
# Event
Response Types:
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#EventListResponse" > EventListResponse</ a >
Methods:
- < code title = "get /event" > client.Event.< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#EventService.List" > List</ a > (ctx < a href = "https://pkg.go.dev/context" > context</ a > .< a href = "https://pkg.go.dev/context#Context" > Context</ a > ) (< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#EventListResponse" > EventListResponse</ a > , < a href = "https://pkg.go.dev/builtin#error" > error</ a > )</ code >
# App
Response Types:
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#App" > App</ a >
2025-07-10 22:53:18 +08:00
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#Mode" > Mode</ a >
2025-07-17 01:42:52 +08:00
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#Model" > Model</ a >
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#Provider" > Provider</ a >
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#AppProvidersResponse" > AppProvidersResponse</ a >
2025-07-04 00:49:15 +08:00
Methods:
- < code title = "get /app" > client.App.< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#AppService.Get" > Get</ a > (ctx < a href = "https://pkg.go.dev/context" > context</ a > .< a href = "https://pkg.go.dev/context#Context" > Context</ a > ) (< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#App" > App</ a > , < a href = "https://pkg.go.dev/builtin#error" > error</ a > )</ code >
- < code title = "post /app/init" > client.App.< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#AppService.Init" > Init</ a > (ctx < a href = "https://pkg.go.dev/context" > context</ a > .< a href = "https://pkg.go.dev/context#Context" > Context</ a > ) (< a href = "https://pkg.go.dev/builtin#bool" > bool</ a > , < a href = "https://pkg.go.dev/builtin#error" > error</ a > )</ code >
2025-07-09 21:16:10 +08:00
- < code title = "post /log" > client.App.< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#AppService.Log" > Log</ a > (ctx < a href = "https://pkg.go.dev/context" > context</ a > .< a href = "https://pkg.go.dev/context#Context" > Context</ a > , body < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#AppLogParams" > AppLogParams</ a > ) (< a href = "https://pkg.go.dev/builtin#bool" > bool</ a > , < a href = "https://pkg.go.dev/builtin#error" > error</ a > )</ code >
2025-07-10 22:53:18 +08:00
- < code title = "get /mode" > client.App.< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#AppService.Modes" > Modes</ a > (ctx < a href = "https://pkg.go.dev/context" > context</ a > .< a href = "https://pkg.go.dev/context#Context" > Context</ a > ) ([]< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#Mode" > Mode</ a > , < a href = "https://pkg.go.dev/builtin#error" > error</ a > )</ code >
2025-07-17 01:42:52 +08:00
- < code title = "get /config/providers" > client.App.< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#AppService.Providers" > Providers</ a > (ctx < a href = "https://pkg.go.dev/context" > context</ a > .< a href = "https://pkg.go.dev/context#Context" > Context</ a > ) (< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#AppProvidersResponse" > AppProvidersResponse</ a > , < a href = "https://pkg.go.dev/builtin#error" > error</ a > )</ code >
2025-07-04 00:49:15 +08:00
# Find
Response Types:
2025-07-09 21:16:10 +08:00
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#Match" > Match</ a >
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#Symbol" > Symbol</ a >
2025-07-04 00:49:15 +08:00
Methods:
- < code title = "get /find/file" > client.Find.< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#FindService.Files" > Files</ a > (ctx < a href = "https://pkg.go.dev/context" > context</ a > .< a href = "https://pkg.go.dev/context#Context" > Context</ a > , query < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#FindFilesParams" > FindFilesParams</ a > ) ([]< a href = "https://pkg.go.dev/builtin#string" > string</ a > , < a href = "https://pkg.go.dev/builtin#error" > error</ a > )</ code >
2025-07-09 21:16:10 +08:00
- < code title = "get /find/symbol" > client.Find.< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#FindService.Symbols" > Symbols</ a > (ctx < a href = "https://pkg.go.dev/context" > context</ a > .< a href = "https://pkg.go.dev/context#Context" > Context</ a > , query < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#FindSymbolsParams" > FindSymbolsParams</ a > ) ([]< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#Symbol" > Symbol</ a > , < a href = "https://pkg.go.dev/builtin#error" > error</ a > )</ code >
- < code title = "get /find" > client.Find.< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#FindService.Text" > Text</ a > (ctx < a href = "https://pkg.go.dev/context" > context</ a > .< a href = "https://pkg.go.dev/context#Context" > Context</ a > , query < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#FindTextParams" > FindTextParams</ a > ) ([]< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#Match" > Match</ a > , < a href = "https://pkg.go.dev/builtin#error" > error</ a > )</ code >
2025-07-04 00:49:15 +08:00
# File
Response Types:
2025-07-09 21:16:10 +08:00
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#File" > File</ a >
2025-07-04 00:49:15 +08:00
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#FileReadResponse" > FileReadResponse</ a >
Methods:
- < code title = "get /file" > client.File.< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#FileService.Read" > Read</ a > (ctx < a href = "https://pkg.go.dev/context" > context</ a > .< a href = "https://pkg.go.dev/context#Context" > Context</ a > , query < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#FileReadParams" > FileReadParams</ a > ) (< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#FileReadResponse" > FileReadResponse</ a > , < a href = "https://pkg.go.dev/builtin#error" > error</ a > )</ code >
2025-07-09 21:16:10 +08:00
- < code title = "get /file/status" > client.File.< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#FileService.Status" > Status</ a > (ctx < a href = "https://pkg.go.dev/context" > context</ a > .< a href = "https://pkg.go.dev/context#Context" > Context</ a > ) ([]< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#File" > File</ a > , < a href = "https://pkg.go.dev/builtin#error" > error</ a > )</ code >
2025-07-04 00:49:15 +08:00
# Config
Response Types:
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#Config" > Config</ a >
2025-07-17 01:42:52 +08:00
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#KeybindsConfig" > KeybindsConfig</ a >
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#McpLocalConfig" > McpLocalConfig</ a >
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#McpRemoteConfig" > McpRemoteConfig</ a >
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#ModeConfig" > ModeConfig</ a >
2025-07-04 00:49:15 +08:00
Methods:
- < code title = "get /config" > client.Config.< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#ConfigService.Get" > Get</ a > (ctx < a href = "https://pkg.go.dev/context" > context</ a > .< a href = "https://pkg.go.dev/context#Context" > Context</ a > ) (< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#Config" > Config</ a > , < a href = "https://pkg.go.dev/builtin#error" > error</ a > )</ code >
# Session
Params Types:
2025-07-19 01:42:50 +08:00
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#FilePartInputParam" > FilePartInputParam</ a >
2025-07-20 18:38:52 +08:00
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#FilePartSourceUnionParam" > FilePartSourceUnionParam</ a >
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#FilePartSourceTextParam" > FilePartSourceTextParam</ a >
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#FileSourceParam" > FileSourceParam</ a >
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#SymbolSourceParam" > SymbolSourceParam</ a >
2025-07-19 01:42:50 +08:00
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#TextPartInputParam" > TextPartInputParam</ a >
2025-07-04 00:49:15 +08:00
Response Types:
2025-07-08 03:53:43 +08:00
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#AssistantMessage" > AssistantMessage</ a >
2025-07-04 00:49:15 +08:00
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#FilePart" > FilePart</ a >
2025-07-20 18:38:52 +08:00
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#FilePartSource" > FilePartSource</ a >
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#FilePartSourceText" > FilePartSourceText</ a >
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#FileSource" > FileSource</ a >
2025-07-04 00:49:15 +08:00
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#Message" > Message</ a >
2025-07-14 05:22:11 +08:00
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#Part" > Part</ a >
2025-07-04 00:49:15 +08:00
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#Session" > Session</ a >
2025-07-15 23:03:11 +08:00
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#SnapshotPart" > SnapshotPart</ a >
2025-07-14 05:22:11 +08:00
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#StepFinishPart" > StepFinishPart</ a >
2025-07-04 00:49:15 +08:00
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#StepStartPart" > StepStartPart</ a >
2025-07-20 18:38:52 +08:00
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#SymbolSource" > SymbolSource</ a >
2025-07-04 00:49:15 +08:00
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#TextPart" > TextPart</ a >
2025-07-08 03:53:43 +08:00
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#ToolPart" > ToolPart</ a >
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#ToolStateCompleted" > ToolStateCompleted</ a >
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#ToolStateError" > ToolStateError</ a >
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#ToolStatePending" > ToolStatePending</ a >
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#ToolStateRunning" > ToolStateRunning</ a >
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#UserMessage" > UserMessage</ a >
2025-07-14 05:22:11 +08:00
- < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#SessionMessagesResponse" > SessionMessagesResponse</ a >
2025-07-04 00:49:15 +08:00
Methods:
- < code title = "post /session" > client.Session.< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#SessionService.New" > New</ a > (ctx < a href = "https://pkg.go.dev/context" > context</ a > .< a href = "https://pkg.go.dev/context#Context" > Context</ a > ) (< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#Session" > Session</ a > , < a href = "https://pkg.go.dev/builtin#error" > error</ a > )</ code >
- < code title = "get /session" > client.Session.< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#SessionService.List" > List</ a > (ctx < a href = "https://pkg.go.dev/context" > context</ a > .< a href = "https://pkg.go.dev/context#Context" > Context</ a > ) ([]< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#Session" > Session</ a > , < a href = "https://pkg.go.dev/builtin#error" > error</ a > )</ code >
- < code title = "delete /session/{id}" > client.Session.< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#SessionService.Delete" > Delete</ a > (ctx < a href = "https://pkg.go.dev/context" > context</ a > .< a href = "https://pkg.go.dev/context#Context" > Context</ a > , id < a href = "https://pkg.go.dev/builtin#string" > string</ a > ) (< a href = "https://pkg.go.dev/builtin#bool" > bool</ a > , < a href = "https://pkg.go.dev/builtin#error" > error</ a > )</ code >
- < code title = "post /session/{id}/abort" > client.Session.< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#SessionService.Abort" > Abort</ a > (ctx < a href = "https://pkg.go.dev/context" > context</ a > .< a href = "https://pkg.go.dev/context#Context" > Context</ a > , id < a href = "https://pkg.go.dev/builtin#string" > string</ a > ) (< a href = "https://pkg.go.dev/builtin#bool" > bool</ a > , < a href = "https://pkg.go.dev/builtin#error" > error</ a > )</ code >
2025-07-08 03:53:43 +08:00
- < code title = "post /session/{id}/message" > client.Session.< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#SessionService.Chat" > Chat</ a > (ctx < a href = "https://pkg.go.dev/context" > context</ a > .< a href = "https://pkg.go.dev/context#Context" > Context</ a > , id < a href = "https://pkg.go.dev/builtin#string" > string</ a > , body < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#SessionChatParams" > SessionChatParams</ a > ) (< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#AssistantMessage" > AssistantMessage</ a > , < a href = "https://pkg.go.dev/builtin#error" > error</ a > )</ code >
2025-07-04 00:49:15 +08:00
- < code title = "post /session/{id}/init" > client.Session.< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#SessionService.Init" > Init</ a > (ctx < a href = "https://pkg.go.dev/context" > context</ a > .< a href = "https://pkg.go.dev/context#Context" > Context</ a > , id < a href = "https://pkg.go.dev/builtin#string" > string</ a > , body < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#SessionInitParams" > SessionInitParams</ a > ) (< a href = "https://pkg.go.dev/builtin#bool" > bool</ a > , < a href = "https://pkg.go.dev/builtin#error" > error</ a > )</ code >
2025-07-14 05:22:11 +08:00
- < code title = "get /session/{id}/message" > client.Session.< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#SessionService.Messages" > Messages</ a > (ctx < a href = "https://pkg.go.dev/context" > context</ a > .< a href = "https://pkg.go.dev/context#Context" > Context</ a > , id < a href = "https://pkg.go.dev/builtin#string" > string</ a > ) ([]< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#SessionMessagesResponse" > SessionMessagesResponse</ a > , < a href = "https://pkg.go.dev/builtin#error" > error</ a > )</ code >
2025-07-24 08:30:46 +08:00
- < code title = "post /session/{id}/revert" > client.Session.< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#SessionService.Revert" > Revert</ a > (ctx < a href = "https://pkg.go.dev/context" > context</ a > .< a href = "https://pkg.go.dev/context#Context" > Context</ a > , id < a href = "https://pkg.go.dev/builtin#string" > string</ a > , body < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#SessionRevertParams" > SessionRevertParams</ a > ) (< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#Session" > Session</ a > , < a href = "https://pkg.go.dev/builtin#error" > error</ a > )</ code >
2025-07-04 00:49:15 +08:00
- < code title = "post /session/{id}/share" > client.Session.< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#SessionService.Share" > Share</ a > (ctx < a href = "https://pkg.go.dev/context" > context</ a > .< a href = "https://pkg.go.dev/context#Context" > Context</ a > , id < a href = "https://pkg.go.dev/builtin#string" > string</ a > ) (< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#Session" > Session</ a > , < a href = "https://pkg.go.dev/builtin#error" > error</ a > )</ code >
- < code title = "post /session/{id}/summarize" > client.Session.< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#SessionService.Summarize" > Summarize</ a > (ctx < a href = "https://pkg.go.dev/context" > context</ a > .< a href = "https://pkg.go.dev/context#Context" > Context</ a > , id < a href = "https://pkg.go.dev/builtin#string" > string</ a > , body < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#SessionSummarizeParams" > SessionSummarizeParams</ a > ) (< a href = "https://pkg.go.dev/builtin#bool" > bool</ a > , < a href = "https://pkg.go.dev/builtin#error" > error</ a > )</ code >
2025-07-24 08:30:46 +08:00
- < code title = "post /session/{id}/unrevert" > client.Session.< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#SessionService.Unrevert" > Unrevert</ a > (ctx < a href = "https://pkg.go.dev/context" > context</ a > .< a href = "https://pkg.go.dev/context#Context" > Context</ a > , id < a href = "https://pkg.go.dev/builtin#string" > string</ a > ) (< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#Session" > Session</ a > , < a href = "https://pkg.go.dev/builtin#error" > error</ a > )</ code >
2025-07-04 00:49:15 +08:00
- < code title = "delete /session/{id}/share" > client.Session.< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#SessionService.Unshare" > Unshare</ a > (ctx < a href = "https://pkg.go.dev/context" > context</ a > .< a href = "https://pkg.go.dev/context#Context" > Context</ a > , id < a href = "https://pkg.go.dev/builtin#string" > string</ a > ) (< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#Session" > Session</ a > , < a href = "https://pkg.go.dev/builtin#error" > error</ a > )</ code >
2025-07-22 07:53:22 +08:00
# Tui
Methods:
2025-07-23 00:14:14 +08:00
- < code title = "post /tui/append-prompt" > client.Tui.< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#TuiService.AppendPrompt" > AppendPrompt</ a > (ctx < a href = "https://pkg.go.dev/context" > context</ a > .< a href = "https://pkg.go.dev/context#Context" > Context</ a > , body < a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go" > opencode</ a > .< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#TuiAppendPromptParams" > TuiAppendPromptParams</ a > ) (< a href = "https://pkg.go.dev/builtin#bool" > bool</ a > , < a href = "https://pkg.go.dev/builtin#error" > error</ a > )</ code >
2025-07-22 07:53:22 +08:00
- < code title = "post /tui/open-help" > client.Tui.< a href = "https://pkg.go.dev/github.com/sst/opencode-sdk-go#TuiService.OpenHelp" > OpenHelp</ a > (ctx < a href = "https://pkg.go.dev/context" > context</ a > .< a href = "https://pkg.go.dev/context#Context" > Context</ a > ) (< a href = "https://pkg.go.dev/builtin#bool" > bool</ a > , < a href = "https://pkg.go.dev/builtin#error" > error</ a > )</ code >