Files
MCPletA2A/reference_impl/agents/register.ts
2026-03-30 17:39:13 +09:00

23 lines
907 B
TypeScript

/**
* Register reference implementation Agent classes with the platform Host.
* Import this module before calling MCPletHost.start() to make the agent
* classes available for instantiation from config.
*
* Usage in platform host entry point:
* import '../../reference_impl/agents/register.js';
* import { MCPletHost } from '../platform_impl/src/host/mcplet-host.js';
*/
import { InfoGatheringAgent } from './info-gathering/index.js';
import { PlanningAgent } from './planning/index.js';
import { DispatchAgent } from './dispatch/index.js';
// Lazy import of registerAgentClass to avoid circular dependency at module level
// In production, this registration is done in the host entry point.
export { InfoGatheringAgent, PlanningAgent, DispatchAgent };
export const AGENT_CLASSES: Record<string, new (...args: never[]) => unknown> = {
InfoGatheringAgent,
PlanningAgent,
DispatchAgent,
};