Skip to content

Commit a54bbe7

Browse files
Formatting
1 parent 696d14c commit a54bbe7

2 files changed

Lines changed: 26 additions & 10 deletions

File tree

nodejs/test/e2e/agent_and_compact_rpc.test.ts

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ describe("Agent Selection RPC", async () => {
2626
},
2727
];
2828

29-
const session = await client.createSession({ onPermissionRequest: approveAll, customAgents });
29+
const session = await client.createSession({
30+
onPermissionRequest: approveAll,
31+
customAgents,
32+
});
3033

3134
const result = await session.rpc.agent.list();
3235
expect(result.agents).toBeDefined();
@@ -50,7 +53,10 @@ describe("Agent Selection RPC", async () => {
5053
},
5154
];
5255

53-
const session = await client.createSession({ onPermissionRequest: approveAll, customAgents });
56+
const session = await client.createSession({
57+
onPermissionRequest: approveAll,
58+
customAgents,
59+
});
5460

5561
const result = await session.rpc.agent.getCurrent();
5662
expect(result.agent).toBeNull();
@@ -68,7 +74,10 @@ describe("Agent Selection RPC", async () => {
6874
},
6975
];
7076

71-
const session = await client.createSession({ onPermissionRequest: approveAll, customAgents });
77+
const session = await client.createSession({
78+
onPermissionRequest: approveAll,
79+
customAgents,
80+
});
7281

7382
// Select the agent
7483
const selectResult = await session.rpc.agent.select({ name: "test-agent" });
@@ -94,7 +103,10 @@ describe("Agent Selection RPC", async () => {
94103
},
95104
];
96105

97-
const session = await client.createSession({ onPermissionRequest: approveAll, customAgents });
106+
const session = await client.createSession({
107+
onPermissionRequest: approveAll,
108+
customAgents,
109+
});
98110

99111
// Select then deselect
100112
await session.rpc.agent.select({ name: "test-agent" });

python/e2e/test_agent_and_compact_rpc.py

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ async def test_should_list_available_custom_agents(self):
3434
"description": "Another test agent",
3535
"prompt": "You are another agent.",
3636
},
37-
]
37+
],
3838
}
3939
)
4040

@@ -68,7 +68,7 @@ async def test_should_return_null_when_no_agent_is_selected(self):
6868
"description": "A test agent",
6969
"prompt": "You are a test agent.",
7070
}
71-
]
71+
],
7272
}
7373
)
7474

@@ -97,7 +97,7 @@ async def test_should_select_and_get_current_agent(self):
9797
"description": "A test agent",
9898
"prompt": "You are a test agent.",
9999
}
100-
]
100+
],
101101
}
102102
)
103103

@@ -136,7 +136,7 @@ async def test_should_deselect_current_agent(self):
136136
"description": "A test agent",
137137
"prompt": "You are a test agent.",
138138
}
139-
]
139+
],
140140
}
141141
)
142142

@@ -160,7 +160,9 @@ async def test_should_return_empty_list_when_no_custom_agents_configured(self):
160160

161161
try:
162162
await client.start()
163-
session = await client.create_session({"on_permission_request": PermissionHandler.approve_all})
163+
session = await client.create_session(
164+
{"on_permission_request": PermissionHandler.approve_all}
165+
)
164166

165167
result = await session.rpc.agent.list()
166168
assert result.agents == []
@@ -175,7 +177,9 @@ class TestSessionCompactionRpc:
175177
@pytest.mark.asyncio
176178
async def test_should_compact_session_history_after_messages(self, ctx: E2ETestContext):
177179
"""Test compacting session history via RPC."""
178-
session = await ctx.client.create_session({"on_permission_request": PermissionHandler.approve_all})
180+
session = await ctx.client.create_session(
181+
{"on_permission_request": PermissionHandler.approve_all}
182+
)
179183

180184
# Send a message to create some history
181185
await session.send_and_wait({"prompt": "What is 2+2?"})

0 commit comments

Comments
 (0)