fix(agent): restore streamFn extension compatibility
Keep streamFn required for typed callers while preserving the legacy runtime fallback for extensions that omit it.\n\nfixes #6915
This commit is contained in:
@@ -9,5 +9,5 @@ if (!model) throw new Error("Anthropic smoke-test model not found");
|
||||
|
||||
export const agent = new Agent({
|
||||
initialState: { model },
|
||||
streamFunction: models.streamSimple.bind(models),
|
||||
streamFn: models.streamSimple.bind(models),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user