chore: Fix types in tests 26/N.

This commit is contained in:
cpojer
2026-02-17 14:31:40 +09:00
parent 6e5df1dc0f
commit 4235435309
14 changed files with 57 additions and 45 deletions

View File

@@ -14,9 +14,10 @@ function assistantToolCall(id: string): AgentMessage {
describe("guardSessionManager integration", () => {
it("persists synthetic toolResult before subsequent assistant message", () => {
const sm = guardSessionManager(SessionManager.inMemory());
const appendMessage = sm.appendMessage.bind(sm) as unknown as (message: AgentMessage) => void;
sm.appendMessage(assistantToolCall("call_1"));
sm.appendMessage({
appendMessage(assistantToolCall("call_1"));
appendMessage({
role: "assistant",
content: [{ type: "text", text: "followup" }],
} as AgentMessage);