MCPcopy Create free account
hub / github.com/CreminiAI/skillpack / updateAuth

Method updateAuth

src/runtime/agent.ts:453–461  ·  view source on GitHub ↗

Update runtime auth when provider/apiKey changes

(provider: string, apiKey?: string)

Source from the content-addressed store, hash-verified

451 const stopReason = message.stopReason ?? "unknown";
452 const errorMessage =
453 message.errorMessage ||
454 (stopReason === "error" || stopReason === "aborted"
455 ? `Request ${stopReason}`
456 : "");
457
458 const content = Array.isArray(message.content) ? message.content : [];
459 const text = content
460 .filter((item: any) => item?.type === "text")
461 .map((item: any) => item.text || "")
462 .join("")
463 .trim();
464 const toolCalls = content.filter(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected