MCPcopy Create free account
hub / github.com/coder/coder / computerUseTool

Struct computerUseTool

coderd/x/chatd/chattool/computeruse.go:83–92  ·  view source on GitHub ↗

computerUseTool implements fantasy.AgentTool and chatloop.ToolDefiner.

Source from the content-addressed store, hash-verified

81
82// computerUseTool implements fantasy.AgentTool and chatloop.ToolDefiner.
83type computerUseTool struct {
84 provider string
85 declaredWidth int
86 declaredHeight int
87 getWorkspaceConn func(ctx context.Context) (workspacesdk.AgentConn, error)
88 storeFile StoreFileFunc
89 providerOptions fantasy.ProviderOptions
90 clock quartz.Clock
91 logger slog.Logger
92}
93
94// NewComputerUseTool creates a provider-aware computer use AgentTool that
95// delegates to the agent's desktop endpoints. declaredWidth and declaredHeight

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected