(t *testing.T)
| 255 | } |
| 256 | |
| 257 | func newRunConfig(t *testing.T) Config { |
| 258 | t.Helper() |
| 259 | reg := prometheus.NewRegistry() |
| 260 | return Config{ |
| 261 | OrganizationID: uuid.MustParse("22222222-2222-2222-2222-222222222222"), |
| 262 | WorkspaceID: uuid.MustParse("11111111-1111-1111-1111-111111111111"), |
| 263 | ModelConfigID: uuid.MustParse("33333333-3333-3333-3333-333333333333"), |
| 264 | Prompt: "Reply with one short sentence.", |
| 265 | Turns: 1, |
| 266 | Metrics: NewMetrics(reg), |
| 267 | } |
| 268 | } |
| 269 | |
| 270 | type fakeChatClient struct { |
| 271 | createChatFunc func(context.Context, codersdk.CreateChatRequest) (codersdk.Chat, error) |
no test coverage detected