Update runtime auth when provider/apiKey changes
(provider: string, apiKey?: string)
| 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( |
nothing calls this directly
no outgoing calls
no test coverage detected