newExecuteTool creates an Execute tool wired to the given mock.
(t *testing.T, mockConn *agentconnmock.MockAgentConn)
| 630 | |
| 631 | // newExecuteTool creates an Execute tool wired to the given mock. |
| 632 | func newExecuteTool(t *testing.T, mockConn *agentconnmock.MockAgentConn) fantasy.AgentTool { |
| 633 | t.Helper() |
| 634 | return chattool.Execute(chattool.ExecuteOptions{ |
| 635 | GetWorkspaceConn: func(_ context.Context) (workspacesdk.AgentConn, error) { |
| 636 | return mockConn, nil |
| 637 | }, |
| 638 | }) |
| 639 | } |
| 640 | |
| 641 | func ptr[T any](v T) *T { |
| 642 | return &v |
no test coverage detected