Skip to content

Commit 2daeabe

Browse files
committed
wip: agent studio
1 parent bd26ac6 commit 2daeabe

File tree

14 files changed

+4079
-3
lines changed

14 files changed

+4079
-3
lines changed

front_end/panels/ai_chat/BUILD.gn

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ generate_css("css_files") {
1717

1818
devtools_module("ai_chat") {
1919
sources = [
20+
"core/AgentStorageManager.ts",
21+
"core/AgentStudioIntegration.ts",
22+
"core/AgentTestRunner.ts",
2023
"ui/AIChatPanel.ts",
2124
"ui/ChatView.ts",
2225
"ui/message/MessageList.ts",
@@ -140,6 +143,8 @@ devtools_module("ai_chat") {
140143
"tools/GetWebAppDataTool.ts",
141144
"tools/RemoveWebAppTool.ts",
142145
"tools/SaveResearchReportTool.ts",
146+
"tools/SearchCustomAgentsTool.ts",
147+
"tools/CallCustomAgentTool.ts",
143148
"tools/VisualIndicatorTool.ts",
144149
"agent_framework/ConfigurableAgentTool.ts",
145150
"agent_framework/AgentRunner.ts",
@@ -199,6 +204,11 @@ devtools_module("ai_chat") {
199204
"mcp/MCPMetaTools.ts",
200205
"ui/mcp/MCPConnectionsDialog.ts",
201206
"ui/mcp/MCPConnectorsCatalogDialog.ts",
207+
"ui/SchemaEditor.ts",
208+
"ui/AgentStudioView.ts",
209+
"ui/AgentStudioController.ts",
210+
"ui/AgentStudioBridge.ts",
211+
"ui/agent_studio/AgentStudioSPA.ts",
202212
]
203213

204214
deps = [
@@ -223,6 +233,9 @@ devtools_module("ai_chat") {
223233

224234
# List of source files also used to determine JS outputs for metadata
225235
_ai_chat_sources = [
236+
"core/AgentStorageManager.ts",
237+
"core/AgentStudioIntegration.ts",
238+
"core/AgentTestRunner.ts",
226239
"ui/AIChatPanel.ts",
227240
"ui/ChatView.ts",
228241
"ui/message/MessageList.ts",
@@ -272,6 +285,11 @@ _ai_chat_sources = [
272285
"ui/FileContentViewer.ts",
273286
"ui/mcp/MCPConnectionsDialog.ts",
274287
"ui/mcp/MCPConnectorsCatalogDialog.ts",
288+
"ui/SchemaEditor.ts",
289+
"ui/AgentStudioView.ts",
290+
"ui/AgentStudioController.ts",
291+
"ui/AgentStudioBridge.ts",
292+
"ui/agent_studio/AgentStudioSPA.ts",
275293
"ai_chat_impl.ts",
276294
"models/ChatTypes.ts",
277295
"core/Graph.ts",
@@ -341,6 +359,8 @@ _ai_chat_sources = [
341359
"tools/GetWebAppDataTool.ts",
342360
"tools/RemoveWebAppTool.ts",
343361
"tools/SaveResearchReportTool.ts",
362+
"tools/SearchCustomAgentsTool.ts",
363+
"tools/CallCustomAgentTool.ts",
344364
"tools/VisualIndicatorTool.ts",
345365
"agent_framework/ConfigurableAgentTool.ts",
346366
"agent_framework/AgentRunner.ts",

front_end/panels/ai_chat/agent_framework/implementation/ConfiguredAgents.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,12 @@ import { createScrollActionAgentConfig } from './agents/ScrollActionAgent.js';
3030
import { createWebTaskAgentConfig } from './agents/WebTaskAgent.js';
3131
import { createEcommerceProductInfoAgentConfig } from './agents/EcommerceProductInfoAgent.js';
3232
import { createSearchAgentConfig } from './agents/SearchAgent.js';
33+
import { AgentStudioIntegration } from '../../core/AgentStudioIntegration.js';
3334

3435
/**
3536
* Initialize all configured agents
3637
*/
37-
export function initializeConfiguredAgents(): void {
38+
export async function initializeConfiguredAgents(): Promise<void> {
3839
// Ensure MCP meta-tools are available regardless of mode; selection logic decides if they are surfaced
3940
registerMCPMetaTools();
4041
// Register core tools
@@ -135,4 +136,6 @@ export function initializeConfiguredAgents(): void {
135136
const ecommerceProductInfoAgent = new ConfigurableAgentTool(ecommerceProductInfoAgentConfig);
136137
ToolRegistry.registerToolFactory('ecommerce_product_info_fetcher_tool', () => ecommerceProductInfoAgent);
137138

139+
// Initialize custom agents from Agent Studio
140+
await AgentStudioIntegration.initialize();
138141
}

0 commit comments

Comments
 (0)