MCPcopy Create free account
hub / github.com/OperationT00/T-Code / requiredString

Function requiredString

clients/t-code-cli/src/runtime-client.ts:138–144  ·  view source on GitHub ↗
(body: Record<string, unknown>, key: string)

Source from the content-addressed store, hash-verified

136}
137
138function requiredString(body: Record<string, unknown>, key: string): string {
139 const value = body[key];
140 if (typeof value !== "string" || value.length === 0) {
141 throw new Error(`Runtime API response is missing '${key}'`);
142 }
143 return value;
144}

Callers 2

createThreadMethod · 0.85
submitTurnMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected