mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-09 20:04:32 +00:00
chore: Fix types in tests 26/N.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user