@memberjunction/ai-agent-manager-actions
Version:
Agent Management actions for creating and managing AI agents in MemberJunction
28 lines • 1.24 kB
TypeScript
import { ActionResultSimple, RunActionParams } from "@memberjunction/actions-base";
import { CreateAgentAction } from "./create-agent.action";
/**
* Creates a new agent as a child of another agent.
* This action is restricted to the Agent Manager agent only.
* Extends CreateAgentAction but makes ParentID required.
*
* @example
* ```typescript
* const result = await runAction({
* ActionName: 'Create Sub Agent',
* Params: [
* { Name: 'ParentAgentID', Value: 'parent-agent-id' }, // Required
* { Name: 'Name', Value: 'Data Collector Agent' },
* { Name: 'Description', Value: 'Collects data from various sources' },
* { Name: 'Type', Value: 'Loop' }, // Optional, use Type OR TypeID
* { Name: 'TypeID', Value: 'loop-agent-type-id' }, // Optional, use Type OR TypeID
* { Name: 'PromptText', Value: 'You are a data collector...' } // Optional
* ]
* });
* // Returns AgentID and optionally PromptID in output params
* ```
*/
export declare class CreateSubAgentAction extends CreateAgentAction {
protected InternalRunAction(params: RunActionParams): Promise<ActionResultSimple>;
}
export declare function LoadCreateSubAgentAction(): void;
//# sourceMappingURL=create-sub-agent.action.d.ts.map