Skip to content

Commit 5762462

Browse files
OrKoNDevtools-frontend LUCI CQ
authored andcommitted
[AI Assistance] Refactor AiAgent
Removes some unnecessary methods and orders the methods by public/protected/private ordering changing the specifier when needed. Bug: 393267670 Change-Id: I246a10cda24ea8bd1678e6db801d12d62ee5aa0e Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/6235284 Reviewed-by: Nikolay Vitkov <[email protected]> Commit-Queue: Alex Rudenko <[email protected]>
1 parent 3f2023d commit 5762462

File tree

6 files changed

+290
-304
lines changed

6 files changed

+290
-304
lines changed

front_end/panels/ai_assistance/agents/AiAgent.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ describeWithEnvironment('AiAgent', () => {
303303

304304
await Array.fromAsync(agent.run('query', {selected: mockConversationContext()}));
305305

306-
assert.deepEqual(agent.chatHistoryForTesting, [
306+
assert.deepEqual(agent.buildRequest({text: ''}, Host.AidaClient.Role.USER).historical_contexts, [
307307
{
308308
role: Host.AidaClient.Role.USER,
309309
parts: [{text: 'query'}],

0 commit comments

Comments
 (0)