@memberjunction/ai-agent-manager-actions
Version:
Agent Management actions for creating and managing AI agents in MemberJunction
29 lines • 1.37 kB
TypeScript
import { ActionResultSimple, RunActionParams } from "@memberjunction/actions-base";
import { BaseAgentManagementAction } from "./base-agent-management.action";
/**
* Creates a new AI agent with specified configuration.
* This action is restricted to the Agent Manager agent only.
* Supports creating both top-level agents and sub-agents.
* Optionally creates and associates a system prompt if PromptText is provided.
*
* @example
* ```typescript
* const result = await runAction({
* ActionName: 'Create Agent',
* Params: [
* { Name: 'Name', Value: 'Customer Feedback Analyzer' },
* { Name: 'Description', Value: 'Analyzes customer feedback...' },
* { 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 feedback analyzer...' }, // Optional, creates prompt
* { Name: 'ParentID', Value: 'parent-agent-id' } // Optional, for sub-agents
* ]
* });
* // Returns AgentID and optionally PromptID in output params
* ```
*/
export declare class CreateAgentAction extends BaseAgentManagementAction {
protected InternalRunAction(params: RunActionParams): Promise<ActionResultSimple>;
}
export declare function LoadCreateAgentAction(): void;
//# sourceMappingURL=create-agent.action.d.ts.map