robustness(core): static checks to validate history is immutable (#21228)

This commit is contained in:
Jacob Richman
2026-03-09 11:26:03 -07:00
committed by GitHub
parent 7abb7e5235
commit 5cfe9d665c
13 changed files with 34 additions and 31 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ export interface RoutingDecision {
*/
export interface RoutingContext {
/** The full history of the conversation. */
history: Content[];
history: readonly Content[];
/** The immediate request parts to be processed. */
request: PartListUnion;
/** An abort signal to cancel an LLM call during routing. */