@memberjunction/ai-agent-manager-actions
Version:
Agent Management actions for creating and managing AI agents in MemberJunction
30 lines • 1.17 kB
TypeScript
import { ActionResultSimple, RunActionParams } from "@memberjunction/actions-base";
import { BaseAgentManagementAction } from "./base-agent-management.action";
/**
* Updates an existing AI agent's configuration.
* This action is restricted to the Agent Manager agent only.
* Optionally updates the agent's prompt text if provided.
*
* @example
* ```typescript
* const result = await runAction({
* ActionName: 'Update Agent',
* Params: [
* { Name: 'AgentID', Value: 'agent-id-to-update' },
* { Name: 'Name', Value: 'New Agent Name' }, // Optional
* { Name: 'Description', Value: 'New description' }, // Optional
* { Name: 'Status', Value: 'Inactive' }, // Optional
* { Name: 'PromptText', Value: 'Updated prompt text...' } // Optional, updates prompt
* ]
* });
* ```
*/
export declare class UpdateAgentAction extends BaseAgentManagementAction {
protected InternalRunAction(params: RunActionParams): Promise<ActionResultSimple>;
/**
* Updates or creates an agent's prompt
*/
private updateAgentPrompt;
}
export declare function LoadUpdateAgentAction(): void;
//# sourceMappingURL=update-agent.action.d.ts.map