fix(agent): decouple agent streams from compat

closes #6851
This commit is contained in:
Mario Zechner
2026-07-20 17:54:17 +02:00
parent 3a40794ea1
commit 1235c0ec64
29 changed files with 219 additions and 105 deletions
@@ -84,7 +84,7 @@ describe("AgentSession dynamic provider registration", () => {
session: Awaited<ReturnType<typeof createSession>>,
): Promise<string | undefined> {
let baseUrl: string | undefined;
session.agent.streamFn = async (model) => {
session.agent.streamFunction = async (model) => {
baseUrl = model.baseUrl;
throw new Error("stop");
};