chore: Fix types in tests 32/N.

This commit is contained in:
cpojer
2026-02-17 14:33:38 +09:00
parent 116f5afea3
commit 2e375a5498
13 changed files with 41 additions and 32 deletions

View File

@@ -34,12 +34,13 @@ function writeTempPlugin(params: { dir: string; id: string; body: string }): str
}
function appendToolCallAndResult(sm: ReturnType<typeof SessionManager.inMemory>) {
sm.appendMessage({
const appendMessage = sm.appendMessage.bind(sm) as unknown as (message: AgentMessage) => void;
appendMessage({
role: "assistant",
content: [{ type: "toolCall", id: "call_1", name: "read", arguments: {} }],
} as AgentMessage);
sm.appendMessage({
appendMessage({
role: "toolResult",
toolCallId: "call_1",
isError: false,