computerUseTool implements fantasy.AgentTool and chatloop.ToolDefiner.
| 81 | |
| 82 | // computerUseTool implements fantasy.AgentTool and chatloop.ToolDefiner. |
| 83 | type 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 |
nothing calls this directly
no outgoing calls
no test coverage detected