MCPcopy
hub / github.com/coder/mux / debugGetLastMockModel

Method debugGetLastMockModel

src/node/services/aiService.ts:2901–2911  ·  view source on GitHub ↗
(workspaceId: string)

Source from the content-addressed store, hash-verified

2899 return Ok(this.mockAiStreamPlayer.debugGetLastPrompt(workspaceId));
2900 }
2901 debugGetLastMockModel(workspaceId: string): Result<string | null> {
2902 if (typeof workspaceId !== "string" || workspaceId.trim().length === 0) {
2903 return Err("debugGetLastMockModel: workspaceId is required");
2904 }
2905
2906 if (!this.mockModeEnabled || !this.mockAiStreamPlayer) {
2907 return Ok(null);
2908 }
2909
2910 return Ok(this.mockAiStreamPlayer.debugGetLastModel(workspaceId));
2911 }
2912
2913 debugGetLastLlmRequest(workspaceId: string): Result<DebugLlmRequestSnapshot | null> {
2914 if (typeof workspaceId !== "string" || workspaceId.trim().length === 0) {

Callers 1

Calls 3

ErrFunction · 0.90
OkFunction · 0.90
debugGetLastModelMethod · 0.80

Tested by

no test coverage detected