Versions in this module Expand all Collapse all v0 v0.4.0 May 26, 2026 v0.3.0 May 24, 2026 v0.2.0 May 18, 2026 Changes in this version + func AnthropicBetaHeader(toolVersion string) string + func HandleComputerAction(comp Computer, args map[string]string) (text string, screenshot []byte, err error) + func HandleGeminiComputerAction(comp Computer, name string, args map[string]string) (text string, screenshot []byte, err error) + func HandleSessionAction(comp Computer, args map[string]string) (text string, screenshot []byte, err error) + func IsGeminiComputerAction(name string) bool + func NormalizeActionType(action string) string + type Action struct + Amount int + Direction string + Duration int + Key string + Label int + Text string + Type string + URL string + X int + Y int + type AnthropicToolSpec struct + DisplayHeightPx int + DisplayWidthPx int + Name string + Type string + func GetAnthropicToolSpec(display DisplaySize, toolVersion string) AnthropicToolSpec + type Computer interface + Close func() error + DisplaySize func() DisplaySize + Execute func(action Action) (screenshot []byte, err error) + Screenshot func() ([]byte, error) + type Context struct + ID string + Persist bool + type ContextInfo interface + ContextID func() string + type DisplaySize struct + Height int + Width int + type OpenOptions struct + ContextID string + Persist bool + Proxy *bool + ProxyCountry string + SessionID string + Timeout int + URL string + type Resumable interface + Resume func(sessionID string) error + type SessionInfo interface + CurrentURL func() string + SessionID func() string + SessionType func() string + type SessionOpener interface + OpenSession func(opts OpenOptions) error + type Timeoutable interface + ExtendTimeout func(seconds int) error + type ToolDefinition struct + Description string + Name string + Parameters map[string]any + Rules string + Syntax string + func GetComputerToolDef(display DisplaySize) ToolDefinition + func GetSessionToolDef() ToolDefinition