@@ -1342,7 +1342,11 @@ describe("agentLoopContinue with AgentMessage", () => {
|
||||
convertToLlm: identityConverter,
|
||||
};
|
||||
|
||||
expect(() => agentLoopContinue(context, config)).toThrow("Cannot continue: no messages in context");
|
||||
expect(() =>
|
||||
agentLoopContinue(context, config, undefined, () => {
|
||||
throw new Error("Unexpected stream call");
|
||||
}),
|
||||
).toThrow("Cannot continue: no messages in context");
|
||||
});
|
||||
|
||||
it("should continue from existing context without emitting user message events", async () => {
|
||||
|
||||
Reference in New Issue
Block a user