( t testing.TB, geometry workspacesdk.DesktopGeometry, conn workspacesdk.AgentConn, storeFile chattool.StoreFileFunc, clock quartz.Clock, )
| 991 | } |
| 992 | |
| 993 | func newOpenAIComputerUseTool( |
| 994 | t testing.TB, |
| 995 | geometry workspacesdk.DesktopGeometry, |
| 996 | conn workspacesdk.AgentConn, |
| 997 | storeFile chattool.StoreFileFunc, |
| 998 | clock quartz.Clock, |
| 999 | ) fantasy.AgentTool { |
| 1000 | t.Helper() |
| 1001 | return chattool.NewComputerUseTool( |
| 1002 | chattool.ComputerUseProviderOpenAI, |
| 1003 | geometry.DeclaredWidth, |
| 1004 | geometry.DeclaredHeight, |
| 1005 | func(_ context.Context) (workspacesdk.AgentConn, error) { |
| 1006 | return conn, nil |
| 1007 | }, |
| 1008 | storeFile, |
| 1009 | clock, |
| 1010 | slogtest.Make(t, nil), |
| 1011 | ) |
| 1012 | } |
| 1013 | |
| 1014 | func openAIComputerUseCall(input string) fantasy.ToolCall { |
| 1015 | return fantasy.ToolCall{ |
no test coverage detected