Member Junction
    Preparing search index...

    Agent Manager Payload Definition This type defines the structure for data passed between Agent Manager sub-agents

    interface AgentManagerPayload {
        design?: {
            agentHierarchy: AIAgentDefinition;
            architecture: {
                dataFlow: string;
                errorHandling: string;
                executionFlow: string;
            };
        };
        implementation?: {
            createdAgents: {
                id: string;
                name: string;
                status: "created"
                | "configured"
                | "validated"
                | "active";
            }[];
            validationResults: { agentId: string; issues: string[]; isValid: boolean }[];
        };
        loadedAgent?: {
            agentSpec: any;
            lastModified: string;
            originalSpec: any;
            status: string;
        };
        metadata: {
            lastModifiedBy: string;
            originalRequest: string;
            sessionId: string;
            status: | "requirements"
            | "design"
            | "prompting"
            | "implementation"
            | "validation"
            | "complete";
        };
        modificationPlan?: {
            actionsToAdd?: { id: string; name: string; reason: string }[];
            actionsToRemove?: string[];
            changeSummary: string;
            fieldsToUpdate?: Record<string, { new: any; old: any }>;
            pathsToModify?: {
                details?: any;
                from?: string;
                operation: "add" | "remove" | "update";
                to?: string;
            }[];
            promptsToUpdate?: {
                agentName: string;
                operation: "add"
                | "remove"
                | "update";
                promptPosition?: string;
                promptRole?: string;
                promptText?: string;
            }[];
            stepsToModify?: {
                details?: any;
                operation: "add"
                | "remove"
                | "update";
                stepName?: string;
                stepType?: string;
            }[];
            subAgentsToModify?: {
                details?: any;
                operation: "add"
                | "remove"
                | "update";
                subAgentId?: string;
                subAgentName?: string;
            }[];
        };
        prompts?: {
            [agentName: string]: {
                promptNotes: string;
                systemPrompt: string;
                templateVariables: string;
            };
        };
        requirements?: {
            assumptions: string;
            businessGoal: string;
            dataRequirements: string;
            functionalRequirements: string;
            integrationRequirements: string;
            outOfScope: string;
            risks: string;
            successCriteria: string;
            technicalRequirements: string;
        };
    }
    Index

    Properties

    design?: {
        agentHierarchy: AIAgentDefinition;
        architecture: {
            dataFlow: string;
            errorHandling: string;
            executionFlow: string;
        };
    }

    Planning Designer agent section

    Type Declaration

    • agentHierarchy: AIAgentDefinition

      Complete agent hierarchy structure

    • architecture: { dataFlow: string; errorHandling: string; executionFlow: string }

      Architecture documentation

      • dataFlow: string

        How data flows between agents

      • errorHandling: string

        Error handling and recovery strategies

      • executionFlow: string

        How agents will execute in sequence/parallel

    implementation?: {
        createdAgents: {
            id: string;
            name: string;
            status: "created" | "configured" | "validated" | "active";
        }[];
        validationResults: { agentId: string; issues: string[]; isValid: boolean }[];
    }

    Agent Manager implementation section

    Type Declaration

    • createdAgents: {
          id: string;
          name: string;
          status: "created" | "configured" | "validated" | "active";
      }[]

      Agents that have been created in the system

    • validationResults: { agentId: string; issues: string[]; isValid: boolean }[]

      Validation results for the created agent system

    loadedAgent?: {
        agentSpec: any;
        lastModified: string;
        originalSpec: any;
        status: string;
    }

    Agent Loader section - for modification workflow Contains the loaded agent when modifying an existing agent

    Type Declaration

    • agentSpec: any

      Full AgentSpec loaded from database with all nested structure

    • lastModified: string

      When the agent was last modified in database

    • originalSpec: any

      Copy of original spec for comparison during modification

    • status: string

      Agent's current status

    metadata: {
        lastModifiedBy: string;
        originalRequest: string;
        sessionId: string;
        status:
            | "requirements"
            | "design"
            | "prompting"
            | "implementation"
            | "validation"
            | "complete";
    }

    Metadata about the agent creation process

    Type Declaration

    • lastModifiedBy: string

      The agent who last modified the payload

    • originalRequest: string

      Original user request for agent creation

    • sessionId: string

      Unique identifier for this agent creation session

    • status:
          | "requirements"
          | "design"
          | "prompting"
          | "implementation"
          | "validation"
          | "complete"

      Current status of the agent creation process

    modificationPlan?: {
        actionsToAdd?: { id: string; name: string; reason: string }[];
        actionsToRemove?: string[];
        changeSummary: string;
        fieldsToUpdate?: Record<string, { new: any; old: any }>;
        pathsToModify?: {
            details?: any;
            from?: string;
            operation: "add" | "remove" | "update";
            to?: string;
        }[];
        promptsToUpdate?: {
            agentName: string;
            operation: "add"
            | "remove"
            | "update";
            promptPosition?: string;
            promptRole?: string;
            promptText?: string;
        }[];
        stepsToModify?: {
            details?: any;
            operation: "add"
            | "remove"
            | "update";
            stepName?: string;
            stepType?: string;
        }[];
        subAgentsToModify?: {
            details?: any;
            operation: "add"
            | "remove"
            | "update";
            subAgentId?: string;
            subAgentName?: string;
        }[];
    }

    Modification Planner section - for modification workflow Contains the detailed plan for modifying an existing agent

    Type Declaration

    • OptionalactionsToAdd?: { id: string; name: string; reason: string }[]

      Actions to add (with action IDs from Find Candidate Actions)

    • OptionalactionsToRemove?: string[]

      Action IDs to remove from the agent

    • changeSummary: string

      High-level summary of all changes to be made

    • OptionalfieldsToUpdate?: Record<string, { new: any; old: any }>

      Fields that will be updated (field name -> old/new values)

    • OptionalpathsToModify?: {
          details?: any;
          from?: string;
          operation: "add" | "remove" | "update";
          to?: string;
      }[]

      Paths modifications for Flow agents only

    • OptionalpromptsToUpdate?: {
          agentName: string;
          operation: "add" | "remove" | "update";
          promptPosition?: string;
          promptRole?: string;
          promptText?: string;
      }[]

      Prompts to update or add

    • OptionalstepsToModify?: {
          details?: any;
          operation: "add" | "remove" | "update";
          stepName?: string;
          stepType?: string;
      }[]

      Steps modifications for Flow agents only

    • OptionalsubAgentsToModify?: {
          details?: any;
          operation: "add" | "remove" | "update";
          subAgentId?: string;
          subAgentName?: string;
      }[]

      Sub-agents modifications (add/remove/update)

    prompts?: {
        [agentName: string]: {
            promptNotes: string;
            systemPrompt: string;
            templateVariables: string;
        };
    }

    Prompt Designer agent section

    Type Declaration

    • [agentName: string]: { promptNotes: string; systemPrompt: string; templateVariables: string }

      Map of agent names to their prompt configurations

      Type Declaration

      • promptNotes: string

        Analysis and optimization notes

      • systemPrompt: string

        Complete system prompt for the agent

      • templateVariables: string

        Documentation of template variables used

    requirements?: {
        assumptions: string;
        businessGoal: string;
        dataRequirements: string;
        functionalRequirements: string;
        integrationRequirements: string;
        outOfScope: string;
        risks: string;
        successCriteria: string;
        technicalRequirements: string;
    }

    Requirements Analyst agent section

    Type Declaration

    • assumptions: string

      Key assumptions made during requirements gathering

    • businessGoal: string

      High-level business objective this agent will serve

    • dataRequirements: string

      Data sources and data handling requirements

    • functionalRequirements: string

      Specific functional capabilities the agent must have

    • integrationRequirements: string

      System integration requirements

    • outOfScope: string

      Explicitly defined scope boundaries

    • risks: string

      Identified risks and mitigation strategies

    • successCriteria: string

      Measurable criteria for success

    • technicalRequirements: string

      Technical constraints and requirements