INNER CODE UNIT · TypeScript

executeRunAgent

Kong/volcano-agent-sdk · src/patterns.ts:129

export async function executeRunAgent(
  subAgent: AgentBuilder,
  parentStepIndex?: number,
  parentTotalSteps?: number,
  parentContext?: StepResult[]
): Promise<StepResult[]> {
  // Suppress progress header/footer but keep step progress for explicit composition
  interface AgentBuilderInternal {
    __isSubAgent?: boolean;
    __isExplicitSubAgent?: boolean;
    __parentStepIndex?: number;
    __parentTotalSteps?: number;
    __parentContext?: any[];
  }
  
  const subAgentInternal = subAgent as unknown as AgentBuilderInternal;
  subAgentInternal.__isSubAgent = true;
  subAgentInternal.__isExplicitSubAgent = true;

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…