You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// A2A agents: building management, finance, it agents
364
-
constagentUrls=[
365
-
envVars.a2aMiddlewareBuildingsManagementUrl,
366
-
envVars.a2aMiddlewareFinanceUrl,
367
-
envVars.a2aMiddlewareItUrl,
368
-
];
369
-
// AGUI orchestration/routing agent
370
-
constorchestrationAgent=newHttpAgent({
371
-
url: envVars.a2aMiddlewareOrchestratorUrl,
372
-
});
373
-
return{
374
-
a2a_chat: newA2AMiddlewareAgent({
375
-
description: "Middleware that connects to remote A2A agents",
376
-
agentUrls,
377
-
orchestrationAgent,
378
-
instructions: `
379
-
You are an HR agent. You are responsible for hiring employees and other typical HR tasks.
347
+
// {
348
+
// id: "a2a-basic",
349
+
// agents: async () => {
350
+
// const a2aClient = new A2AClient(envVars.a2aUrl);
351
+
// return {
352
+
// agentic_chat: new A2AAgent({
353
+
// description: "Direct A2A agent",
354
+
// a2aClient,
355
+
// debug: process.env.NODE_ENV !== "production",
356
+
// }),
357
+
// };
358
+
// },
359
+
// },
360
+
// {
361
+
// id: "a2a",
362
+
// agents: async () => {
363
+
// // A2A agents: building management, finance, it agents
364
+
// const agentUrls = [
365
+
// envVars.a2aMiddlewareBuildingsManagementUrl,
366
+
// envVars.a2aMiddlewareFinanceUrl,
367
+
// envVars.a2aMiddlewareItUrl,
368
+
// ];
369
+
// // AGUI orchestration/routing agent
370
+
// const orchestrationAgent = new HttpAgent({
371
+
// url: envVars.a2aMiddlewareOrchestratorUrl,
372
+
// });
373
+
// return {
374
+
// a2a_chat: new A2AMiddlewareAgent({
375
+
// description: "Middleware that connects to remote A2A agents",
376
+
// agentUrls,
377
+
// orchestrationAgent,
378
+
// instructions: `
379
+
// You are an HR agent. You are responsible for hiring employees and other typical HR tasks.
380
380
381
-
It's very important to contact all the departments necessary to complete the task.
382
-
For example, to hire an employee, you must contact all 3 departments: Finance, IT and Buildings Management. Help the Buildings Management department to find a table.
381
+
// It's very important to contact all the departments necessary to complete the task.
382
+
// For example, to hire an employee, you must contact all 3 departments: Finance, IT and Buildings Management. Help the Buildings Management department to find a table.
383
383
384
-
You can make tool calls on behalf of other agents.
385
-
DO NOT FORGET TO COMMUNICATE BACK TO THE RELEVANT AGENT IF MAKING A TOOL CALL ON BEHALF OF ANOTHER AGENT!!!
384
+
// You can make tool calls on behalf of other agents.
385
+
// DO NOT FORGET TO COMMUNICATE BACK TO THE RELEVANT AGENT IF MAKING A TOOL CALL ON BEHALF OF ANOTHER AGENT!!!
386
386
387
-
When choosing a seat with the buildings management agent, You MUST use the \`pickTable\` tool to have the user pick a seat.
388
-
The buildings management agent will then use the \`pickSeat\` tool to pick a seat.
389
-
`,
390
-
}),
391
-
};
392
-
},
393
-
},
387
+
// When choosing a seat with the buildings management agent, You MUST use the \`pickTable\` tool to have the user pick a seat.
388
+
// The buildings management agent will then use the \`pickSeat\` tool to pick a seat.
0 commit comments