First running version
This commit is contained in:
22
reference_impl/agents/register.ts
Normal file
22
reference_impl/agents/register.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
/**
|
||||
* 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,
|
||||
};
|
||||
Reference in New Issue
Block a user