MCPcopy Index your code
hub / github.com/coder/coder / CreateChat

Method CreateChat

scaletest/chat/client.go:16–16  ·  view source on GitHub ↗
(ctx context.Context, req codersdk.CreateChatRequest)

Source from the content-addressed store, hash-verified

14 SetLogger(logger slog.Logger)
15 SetLogBodies(logBodies bool)
16 CreateChat(ctx context.Context, req codersdk.CreateChatRequest) (codersdk.Chat, error)
17 StreamChat(ctx context.Context, chatID uuid.UUID, opts *codersdk.StreamChatOptions) (<-chan codersdk.ChatStreamEvent, io.Closer, error)
18 CreateChatMessage(ctx context.Context, chatID uuid.UUID, req codersdk.CreateChatMessageRequest) (codersdk.CreateChatMessageResponse, error)
19 UpdateChat(ctx context.Context, chatID uuid.UUID, req codersdk.UpdateChatRequest) error

Callers 15

TestPostChatsFunction · 0.65
TestListChatsFunction · 0.65
TestGetChatFunction · 0.65
TestArchiveChatFunction · 0.65
TestUnarchiveChatFunction · 0.65
TestChatPinOrderFunction · 0.65
TestPostChatMessagesFunction · 0.65
TestChatMessageWithFilesFunction · 0.65
TestPatchChatMessageFunction · 0.65
TestStreamChatFunction · 0.65
TestWatchChatDesktopFunction · 0.65

Implementers 2

fakeChatClientscaletest/chat/run_internal_test.go
sdkChatClientscaletest/chat/client.go

Calls

no outgoing calls

Tested by 15

TestPostChatsFunction · 0.52
TestListChatsFunction · 0.52
TestGetChatFunction · 0.52
TestArchiveChatFunction · 0.52
TestUnarchiveChatFunction · 0.52
TestChatPinOrderFunction · 0.52
TestPostChatMessagesFunction · 0.52
TestChatMessageWithFilesFunction · 0.52
TestPatchChatMessageFunction · 0.52
TestStreamChatFunction · 0.52
TestWatchChatDesktopFunction · 0.52