@agentforge/patterns 0.16.90 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.cts CHANGED
@@ -2617,14 +2617,12 @@ declare const MultiAgentStateConfig: {
2617
2617
  available?: boolean | undefined;
2618
2618
  currentWorkload?: number | undefined;
2619
2619
  }>>;
2620
- reducer: (left: Record<string, WorkerCapabilities>, right: Record<string, WorkerCapabilities>) => {
2621
- [x: string]: {
2622
- tools: string[];
2623
- skills: string[];
2624
- available: boolean;
2625
- currentWorkload: number;
2626
- };
2627
- };
2620
+ reducer: (_left: Record<string, WorkerCapabilities>, right: Record<string, WorkerCapabilities>) => Record<string, {
2621
+ tools: string[];
2622
+ skills: string[];
2623
+ available: boolean;
2624
+ currentWorkload: number;
2625
+ }>;
2628
2626
  default: () => {};
2629
2627
  description: string;
2630
2628
  };
@@ -3113,15 +3111,11 @@ interface RegisterWorkerInput {
3113
3111
  interface BuilderWorkerInput extends RegisterWorkerInput {
3114
3112
  model?: WorkerConfig['model'];
3115
3113
  }
3116
- interface MultiAgentSystemWithRegistry extends CompiledStateGraph<MultiAgentStateType, unknown> {
3117
- _workerRegistry?: Record<string, WorkerCapabilities>;
3118
- _originalInvoke?: (input: Partial<MultiAgentStateType>, config?: RunnableConfig) => ReturnType<MultiAgentSystemWithRegistry['invoke']>;
3119
- _originalStream?: (input: Partial<MultiAgentStateType>, config?: RunnableConfig) => ReturnType<MultiAgentSystemWithRegistry['stream']>;
3120
- }
3114
+ type MultiAgentSystemWithRegistry = CompiledStateGraph<MultiAgentStateType, unknown>;
3121
3115
 
3122
3116
  declare class MultiAgentSystemBuilder {
3123
3117
  private config;
3124
- private additionalWorkers;
3118
+ private lifecycle;
3125
3119
  private compiled;
3126
3120
  constructor(config: Omit<MultiAgentSystemConfig, 'workers'> & {
3127
3121
  workers?: WorkerConfig[];
@@ -3130,6 +3124,12 @@ declare class MultiAgentSystemBuilder {
3130
3124
  build(): MultiAgentSystemWithRegistry;
3131
3125
  }
3132
3126
 
3127
+ type WorkerLifecycleErrorReason = 'empty-topology' | 'invalid-identity' | 'duplicate-identity' | 'unknown-worker' | 'invalid-tool' | 'unsupported-system';
3128
+ declare class WorkerLifecycleError extends Error {
3129
+ readonly reason: WorkerLifecycleErrorReason;
3130
+ constructor(reason: WorkerLifecycleErrorReason, message: string);
3131
+ }
3132
+
3133
3133
  /**
3134
3134
  * Multi-Agent System Factory
3135
3135
  *
@@ -3226,13 +3226,13 @@ declare function createMultiAgentSystem(config: MultiAgentSystemConfig): MultiAg
3226
3226
  /**
3227
3227
  * Register workers with a compiled multi-agent system
3228
3228
  *
3229
- * **Important**: This function only registers worker *capabilities* in the state.
3230
- * It does NOT add worker nodes to the graph (which is impossible after compilation).
3229
+ * **Important**: This function only updates routing skills for known Workers.
3230
+ * It does NOT add Worker nodes or change executable tools after compilation.
3231
3231
  *
3232
3232
  * This means:
3233
- * - Workers must already exist as nodes in the compiled graph
3234
- * - This function only updates their capabilities in the state
3235
- * - For true dynamic worker registration, use `MultiAgentSystemBuilder` instead
3233
+ * - Workers must already exist in the compiled Worker topology
3234
+ * - Supplied tools, when present, must match the compiled executable tool set
3235
+ * - Use `MultiAgentSystemBuilder` to admit Workers before compilation
3236
3236
  *
3237
3237
  * **Recommended**: Use `MultiAgentSystemBuilder` for a cleaner approach:
3238
3238
  * ```typescript
@@ -3251,6 +3251,28 @@ declare function createMultiAgentSystem(config: MultiAgentSystemConfig): MultiAg
3251
3251
  * @deprecated Use `MultiAgentSystemBuilder` instead for proper worker registration
3252
3252
  */
3253
3253
  declare function registerWorkers(system: MultiAgentSystemWithRegistry, workers: RegisterWorkerInput[]): void;
3254
+ /**
3255
+ * Construct detached Worker registry records for initial state data.
3256
+ *
3257
+ * This helper applies Worker lifecycle normalization without admitting Workers,
3258
+ * creating graph topology, or associating the result with a compiled system.
3259
+ * Empty input is therefore valid. Use the factory or builder when Workers must
3260
+ * be admitted into an executable Multi-Agent System.
3261
+ *
3262
+ * @deprecated Prefer the factory or builder for Worker admission. This helper
3263
+ * remains available for callers that only need compatible registry data.
3264
+ * @param workers - Worker identities and combined capability/status records
3265
+ * @returns An immutable, detached Worker registry
3266
+ */
3267
+ declare function createWorkersRegistry(workers: readonly {
3268
+ id: string;
3269
+ capabilities: WorkerCapabilities;
3270
+ }[]): Readonly<Record<string, {
3271
+ tools: string[];
3272
+ skills: string[];
3273
+ available: boolean;
3274
+ currentWorkload: number;
3275
+ }>>;
3254
3276
 
3255
3277
  /**
3256
3278
  * Generate a cache key for a tool call based on tool name and arguments
@@ -3340,4 +3362,4 @@ declare function calculateDeduplicationSavings(duplicatesSkipped: number, toolsE
3340
3362
  */
3341
3363
  declare function buildDeduplicationMetrics(toolsExecuted: number, duplicatesSkipped: number, totalObservations: number): DeduplicationMetrics;
3342
3364
 
3343
- export { type AgentMessage, AgentMessageSchema, type AgentRole, AgentRoleSchema, type AggregatorConfig, type CompletedStep, CompletedStepSchema, DEFAULT_AGGREGATOR_SYSTEM_PROMPT, DEFAULT_GENERATOR_SYSTEM_PROMPT, DEFAULT_PLANNER_SYSTEM_PROMPT, DEFAULT_REACT_SYSTEM_PROMPT, DEFAULT_REFLECTOR_SYSTEM_PROMPT, DEFAULT_REPLANNER_SYSTEM_PROMPT, DEFAULT_REVISER_SYSTEM_PROMPT, DEFAULT_SUPERVISOR_SYSTEM_PROMPT, type DeduplicationMetrics, type ExecutionStatus, ExecutionStatusSchema, type ExecutorConfig, GENERATION_PROMPT_TEMPLATE, type GeneratorConfig, type HandoffRequest, HandoffRequestSchema, type Message, MessageSchema, type MessageType, MessageTypeSchema, type MultiAgentNode, type MultiAgentRoute, type MultiAgentRouter, MultiAgentState, MultiAgentStateConfig, type MultiAgentStateType, type MultiAgentStatus, MultiAgentStatusSchema, MultiAgentSystemBuilder, type MultiAgentSystemConfig, PLANNING_PROMPT_TEMPLATE, type Plan, type PlanExecuteAgentConfig, type PlanExecuteNode, type PlanExecuteRoute, type PlanExecuteRouter, PlanExecuteState, PlanExecuteStateConfig, type PlanExecuteStateType, PlanSchema, type PlanStep, PlanStepSchema, type PlannerConfig, QUALITY_CRITERIA_TEMPLATE, type QualityCriteria, QualityCriteriaSchema, REFLECTION_ENTRY_TEMPLATE, REFLECTION_HISTORY_TEMPLATE, REFLECTION_PROMPT_TEMPLATE, REPLANNING_PROMPT_TEMPLATE, REVISION_ENTRY_TEMPLATE, REVISION_PROMPT_TEMPLATE, ReActAgentBuilder, type ReActAgentConfig, type ReActAgentOptions, type ReActBuilderOptions, ReActState, type ReActStateType, type Reflection, type ReflectionAgentConfig, type ReflectionConfig, ReflectionConfigSchema, type ReflectionNode, type ReflectionRoute, type ReflectionRouter, ReflectionSchema, ReflectionState, ReflectionStateConfig, type ReflectionStateType, type ReflectionStatus, ReflectionStatusSchema, type ReflectorConfig, type ReplanDecision, ReplanDecisionSchema, type ReplannerConfig, type ReviserConfig, type Revision, RevisionSchema, type RoutingDecision, RoutingDecisionSchema, type RoutingStrategy, type RoutingStrategyImpl, RoutingStrategySchema, type ScratchpadEntry, ScratchpadEntrySchema, type StopConditionFn, type SupervisorConfig, type TaskAssignment, TaskAssignmentSchema, type TaskResult, TaskResultSchema, type Thought, ThoughtSchema, type ToolCall, ToolCallSchema, type ToolResult, ToolResultSchema, type WorkerCapabilities, WorkerCapabilitiesSchema, type WorkerConfig, buildDeduplicationMetrics, calculateDeduplicationSavings, createAggregatorNode, createExecutorNode, createFinisherNode$1 as createFinisherNode, createGeneratorNode, createMultiAgentSystem, createPatternLogger, createPlanExecuteAgent, createPlannerNode, createReActAgent, createReActAgentBuilder, createReflectionAgent, createFinisherNode as createReflectionFinisherNode, createReflectorNode, createReplannerNode, createReviserNode, createSupervisorNode, createWorkerNode, generateToolCallCacheKey, getRoutingStrategy, llmBasedRouting, loadBalancedRouting, registerWorkers, roundRobinRouting, ruleBasedRouting, skillBasedRouting };
3365
+ export { type AgentMessage, AgentMessageSchema, type AgentRole, AgentRoleSchema, type AggregatorConfig, type CompletedStep, CompletedStepSchema, DEFAULT_AGGREGATOR_SYSTEM_PROMPT, DEFAULT_GENERATOR_SYSTEM_PROMPT, DEFAULT_PLANNER_SYSTEM_PROMPT, DEFAULT_REACT_SYSTEM_PROMPT, DEFAULT_REFLECTOR_SYSTEM_PROMPT, DEFAULT_REPLANNER_SYSTEM_PROMPT, DEFAULT_REVISER_SYSTEM_PROMPT, DEFAULT_SUPERVISOR_SYSTEM_PROMPT, type DeduplicationMetrics, type ExecutionStatus, ExecutionStatusSchema, type ExecutorConfig, GENERATION_PROMPT_TEMPLATE, type GeneratorConfig, type HandoffRequest, HandoffRequestSchema, type Message, MessageSchema, type MessageType, MessageTypeSchema, type MultiAgentNode, type MultiAgentRoute, type MultiAgentRouter, MultiAgentState, MultiAgentStateConfig, type MultiAgentStateType, type MultiAgentStatus, MultiAgentStatusSchema, MultiAgentSystemBuilder, type MultiAgentSystemConfig, PLANNING_PROMPT_TEMPLATE, type Plan, type PlanExecuteAgentConfig, type PlanExecuteNode, type PlanExecuteRoute, type PlanExecuteRouter, PlanExecuteState, PlanExecuteStateConfig, type PlanExecuteStateType, PlanSchema, type PlanStep, PlanStepSchema, type PlannerConfig, QUALITY_CRITERIA_TEMPLATE, type QualityCriteria, QualityCriteriaSchema, REFLECTION_ENTRY_TEMPLATE, REFLECTION_HISTORY_TEMPLATE, REFLECTION_PROMPT_TEMPLATE, REPLANNING_PROMPT_TEMPLATE, REVISION_ENTRY_TEMPLATE, REVISION_PROMPT_TEMPLATE, ReActAgentBuilder, type ReActAgentConfig, type ReActAgentOptions, type ReActBuilderOptions, ReActState, type ReActStateType, type Reflection, type ReflectionAgentConfig, type ReflectionConfig, ReflectionConfigSchema, type ReflectionNode, type ReflectionRoute, type ReflectionRouter, ReflectionSchema, ReflectionState, ReflectionStateConfig, type ReflectionStateType, type ReflectionStatus, ReflectionStatusSchema, type ReflectorConfig, type ReplanDecision, ReplanDecisionSchema, type ReplannerConfig, type ReviserConfig, type Revision, RevisionSchema, type RoutingDecision, RoutingDecisionSchema, type RoutingStrategy, type RoutingStrategyImpl, RoutingStrategySchema, type ScratchpadEntry, ScratchpadEntrySchema, type StopConditionFn, type SupervisorConfig, type TaskAssignment, TaskAssignmentSchema, type TaskResult, TaskResultSchema, type Thought, ThoughtSchema, type ToolCall, ToolCallSchema, type ToolResult, ToolResultSchema, type WorkerCapabilities, WorkerCapabilitiesSchema, type WorkerConfig, WorkerLifecycleError, type WorkerLifecycleErrorReason, buildDeduplicationMetrics, calculateDeduplicationSavings, createAggregatorNode, createExecutorNode, createFinisherNode$1 as createFinisherNode, createGeneratorNode, createMultiAgentSystem, createPatternLogger, createPlanExecuteAgent, createPlannerNode, createReActAgent, createReActAgentBuilder, createReflectionAgent, createFinisherNode as createReflectionFinisherNode, createReflectorNode, createReplannerNode, createReviserNode, createSupervisorNode, createWorkerNode, createWorkersRegistry, generateToolCallCacheKey, getRoutingStrategy, llmBasedRouting, loadBalancedRouting, registerWorkers, roundRobinRouting, ruleBasedRouting, skillBasedRouting };
package/dist/index.d.ts CHANGED
@@ -2617,14 +2617,12 @@ declare const MultiAgentStateConfig: {
2617
2617
  available?: boolean | undefined;
2618
2618
  currentWorkload?: number | undefined;
2619
2619
  }>>;
2620
- reducer: (left: Record<string, WorkerCapabilities>, right: Record<string, WorkerCapabilities>) => {
2621
- [x: string]: {
2622
- tools: string[];
2623
- skills: string[];
2624
- available: boolean;
2625
- currentWorkload: number;
2626
- };
2627
- };
2620
+ reducer: (_left: Record<string, WorkerCapabilities>, right: Record<string, WorkerCapabilities>) => Record<string, {
2621
+ tools: string[];
2622
+ skills: string[];
2623
+ available: boolean;
2624
+ currentWorkload: number;
2625
+ }>;
2628
2626
  default: () => {};
2629
2627
  description: string;
2630
2628
  };
@@ -3113,15 +3111,11 @@ interface RegisterWorkerInput {
3113
3111
  interface BuilderWorkerInput extends RegisterWorkerInput {
3114
3112
  model?: WorkerConfig['model'];
3115
3113
  }
3116
- interface MultiAgentSystemWithRegistry extends CompiledStateGraph<MultiAgentStateType, unknown> {
3117
- _workerRegistry?: Record<string, WorkerCapabilities>;
3118
- _originalInvoke?: (input: Partial<MultiAgentStateType>, config?: RunnableConfig) => ReturnType<MultiAgentSystemWithRegistry['invoke']>;
3119
- _originalStream?: (input: Partial<MultiAgentStateType>, config?: RunnableConfig) => ReturnType<MultiAgentSystemWithRegistry['stream']>;
3120
- }
3114
+ type MultiAgentSystemWithRegistry = CompiledStateGraph<MultiAgentStateType, unknown>;
3121
3115
 
3122
3116
  declare class MultiAgentSystemBuilder {
3123
3117
  private config;
3124
- private additionalWorkers;
3118
+ private lifecycle;
3125
3119
  private compiled;
3126
3120
  constructor(config: Omit<MultiAgentSystemConfig, 'workers'> & {
3127
3121
  workers?: WorkerConfig[];
@@ -3130,6 +3124,12 @@ declare class MultiAgentSystemBuilder {
3130
3124
  build(): MultiAgentSystemWithRegistry;
3131
3125
  }
3132
3126
 
3127
+ type WorkerLifecycleErrorReason = 'empty-topology' | 'invalid-identity' | 'duplicate-identity' | 'unknown-worker' | 'invalid-tool' | 'unsupported-system';
3128
+ declare class WorkerLifecycleError extends Error {
3129
+ readonly reason: WorkerLifecycleErrorReason;
3130
+ constructor(reason: WorkerLifecycleErrorReason, message: string);
3131
+ }
3132
+
3133
3133
  /**
3134
3134
  * Multi-Agent System Factory
3135
3135
  *
@@ -3226,13 +3226,13 @@ declare function createMultiAgentSystem(config: MultiAgentSystemConfig): MultiAg
3226
3226
  /**
3227
3227
  * Register workers with a compiled multi-agent system
3228
3228
  *
3229
- * **Important**: This function only registers worker *capabilities* in the state.
3230
- * It does NOT add worker nodes to the graph (which is impossible after compilation).
3229
+ * **Important**: This function only updates routing skills for known Workers.
3230
+ * It does NOT add Worker nodes or change executable tools after compilation.
3231
3231
  *
3232
3232
  * This means:
3233
- * - Workers must already exist as nodes in the compiled graph
3234
- * - This function only updates their capabilities in the state
3235
- * - For true dynamic worker registration, use `MultiAgentSystemBuilder` instead
3233
+ * - Workers must already exist in the compiled Worker topology
3234
+ * - Supplied tools, when present, must match the compiled executable tool set
3235
+ * - Use `MultiAgentSystemBuilder` to admit Workers before compilation
3236
3236
  *
3237
3237
  * **Recommended**: Use `MultiAgentSystemBuilder` for a cleaner approach:
3238
3238
  * ```typescript
@@ -3251,6 +3251,28 @@ declare function createMultiAgentSystem(config: MultiAgentSystemConfig): MultiAg
3251
3251
  * @deprecated Use `MultiAgentSystemBuilder` instead for proper worker registration
3252
3252
  */
3253
3253
  declare function registerWorkers(system: MultiAgentSystemWithRegistry, workers: RegisterWorkerInput[]): void;
3254
+ /**
3255
+ * Construct detached Worker registry records for initial state data.
3256
+ *
3257
+ * This helper applies Worker lifecycle normalization without admitting Workers,
3258
+ * creating graph topology, or associating the result with a compiled system.
3259
+ * Empty input is therefore valid. Use the factory or builder when Workers must
3260
+ * be admitted into an executable Multi-Agent System.
3261
+ *
3262
+ * @deprecated Prefer the factory or builder for Worker admission. This helper
3263
+ * remains available for callers that only need compatible registry data.
3264
+ * @param workers - Worker identities and combined capability/status records
3265
+ * @returns An immutable, detached Worker registry
3266
+ */
3267
+ declare function createWorkersRegistry(workers: readonly {
3268
+ id: string;
3269
+ capabilities: WorkerCapabilities;
3270
+ }[]): Readonly<Record<string, {
3271
+ tools: string[];
3272
+ skills: string[];
3273
+ available: boolean;
3274
+ currentWorkload: number;
3275
+ }>>;
3254
3276
 
3255
3277
  /**
3256
3278
  * Generate a cache key for a tool call based on tool name and arguments
@@ -3340,4 +3362,4 @@ declare function calculateDeduplicationSavings(duplicatesSkipped: number, toolsE
3340
3362
  */
3341
3363
  declare function buildDeduplicationMetrics(toolsExecuted: number, duplicatesSkipped: number, totalObservations: number): DeduplicationMetrics;
3342
3364
 
3343
- export { type AgentMessage, AgentMessageSchema, type AgentRole, AgentRoleSchema, type AggregatorConfig, type CompletedStep, CompletedStepSchema, DEFAULT_AGGREGATOR_SYSTEM_PROMPT, DEFAULT_GENERATOR_SYSTEM_PROMPT, DEFAULT_PLANNER_SYSTEM_PROMPT, DEFAULT_REACT_SYSTEM_PROMPT, DEFAULT_REFLECTOR_SYSTEM_PROMPT, DEFAULT_REPLANNER_SYSTEM_PROMPT, DEFAULT_REVISER_SYSTEM_PROMPT, DEFAULT_SUPERVISOR_SYSTEM_PROMPT, type DeduplicationMetrics, type ExecutionStatus, ExecutionStatusSchema, type ExecutorConfig, GENERATION_PROMPT_TEMPLATE, type GeneratorConfig, type HandoffRequest, HandoffRequestSchema, type Message, MessageSchema, type MessageType, MessageTypeSchema, type MultiAgentNode, type MultiAgentRoute, type MultiAgentRouter, MultiAgentState, MultiAgentStateConfig, type MultiAgentStateType, type MultiAgentStatus, MultiAgentStatusSchema, MultiAgentSystemBuilder, type MultiAgentSystemConfig, PLANNING_PROMPT_TEMPLATE, type Plan, type PlanExecuteAgentConfig, type PlanExecuteNode, type PlanExecuteRoute, type PlanExecuteRouter, PlanExecuteState, PlanExecuteStateConfig, type PlanExecuteStateType, PlanSchema, type PlanStep, PlanStepSchema, type PlannerConfig, QUALITY_CRITERIA_TEMPLATE, type QualityCriteria, QualityCriteriaSchema, REFLECTION_ENTRY_TEMPLATE, REFLECTION_HISTORY_TEMPLATE, REFLECTION_PROMPT_TEMPLATE, REPLANNING_PROMPT_TEMPLATE, REVISION_ENTRY_TEMPLATE, REVISION_PROMPT_TEMPLATE, ReActAgentBuilder, type ReActAgentConfig, type ReActAgentOptions, type ReActBuilderOptions, ReActState, type ReActStateType, type Reflection, type ReflectionAgentConfig, type ReflectionConfig, ReflectionConfigSchema, type ReflectionNode, type ReflectionRoute, type ReflectionRouter, ReflectionSchema, ReflectionState, ReflectionStateConfig, type ReflectionStateType, type ReflectionStatus, ReflectionStatusSchema, type ReflectorConfig, type ReplanDecision, ReplanDecisionSchema, type ReplannerConfig, type ReviserConfig, type Revision, RevisionSchema, type RoutingDecision, RoutingDecisionSchema, type RoutingStrategy, type RoutingStrategyImpl, RoutingStrategySchema, type ScratchpadEntry, ScratchpadEntrySchema, type StopConditionFn, type SupervisorConfig, type TaskAssignment, TaskAssignmentSchema, type TaskResult, TaskResultSchema, type Thought, ThoughtSchema, type ToolCall, ToolCallSchema, type ToolResult, ToolResultSchema, type WorkerCapabilities, WorkerCapabilitiesSchema, type WorkerConfig, buildDeduplicationMetrics, calculateDeduplicationSavings, createAggregatorNode, createExecutorNode, createFinisherNode$1 as createFinisherNode, createGeneratorNode, createMultiAgentSystem, createPatternLogger, createPlanExecuteAgent, createPlannerNode, createReActAgent, createReActAgentBuilder, createReflectionAgent, createFinisherNode as createReflectionFinisherNode, createReflectorNode, createReplannerNode, createReviserNode, createSupervisorNode, createWorkerNode, generateToolCallCacheKey, getRoutingStrategy, llmBasedRouting, loadBalancedRouting, registerWorkers, roundRobinRouting, ruleBasedRouting, skillBasedRouting };
3365
+ export { type AgentMessage, AgentMessageSchema, type AgentRole, AgentRoleSchema, type AggregatorConfig, type CompletedStep, CompletedStepSchema, DEFAULT_AGGREGATOR_SYSTEM_PROMPT, DEFAULT_GENERATOR_SYSTEM_PROMPT, DEFAULT_PLANNER_SYSTEM_PROMPT, DEFAULT_REACT_SYSTEM_PROMPT, DEFAULT_REFLECTOR_SYSTEM_PROMPT, DEFAULT_REPLANNER_SYSTEM_PROMPT, DEFAULT_REVISER_SYSTEM_PROMPT, DEFAULT_SUPERVISOR_SYSTEM_PROMPT, type DeduplicationMetrics, type ExecutionStatus, ExecutionStatusSchema, type ExecutorConfig, GENERATION_PROMPT_TEMPLATE, type GeneratorConfig, type HandoffRequest, HandoffRequestSchema, type Message, MessageSchema, type MessageType, MessageTypeSchema, type MultiAgentNode, type MultiAgentRoute, type MultiAgentRouter, MultiAgentState, MultiAgentStateConfig, type MultiAgentStateType, type MultiAgentStatus, MultiAgentStatusSchema, MultiAgentSystemBuilder, type MultiAgentSystemConfig, PLANNING_PROMPT_TEMPLATE, type Plan, type PlanExecuteAgentConfig, type PlanExecuteNode, type PlanExecuteRoute, type PlanExecuteRouter, PlanExecuteState, PlanExecuteStateConfig, type PlanExecuteStateType, PlanSchema, type PlanStep, PlanStepSchema, type PlannerConfig, QUALITY_CRITERIA_TEMPLATE, type QualityCriteria, QualityCriteriaSchema, REFLECTION_ENTRY_TEMPLATE, REFLECTION_HISTORY_TEMPLATE, REFLECTION_PROMPT_TEMPLATE, REPLANNING_PROMPT_TEMPLATE, REVISION_ENTRY_TEMPLATE, REVISION_PROMPT_TEMPLATE, ReActAgentBuilder, type ReActAgentConfig, type ReActAgentOptions, type ReActBuilderOptions, ReActState, type ReActStateType, type Reflection, type ReflectionAgentConfig, type ReflectionConfig, ReflectionConfigSchema, type ReflectionNode, type ReflectionRoute, type ReflectionRouter, ReflectionSchema, ReflectionState, ReflectionStateConfig, type ReflectionStateType, type ReflectionStatus, ReflectionStatusSchema, type ReflectorConfig, type ReplanDecision, ReplanDecisionSchema, type ReplannerConfig, type ReviserConfig, type Revision, RevisionSchema, type RoutingDecision, RoutingDecisionSchema, type RoutingStrategy, type RoutingStrategyImpl, RoutingStrategySchema, type ScratchpadEntry, ScratchpadEntrySchema, type StopConditionFn, type SupervisorConfig, type TaskAssignment, TaskAssignmentSchema, type TaskResult, TaskResultSchema, type Thought, ThoughtSchema, type ToolCall, ToolCallSchema, type ToolResult, ToolResultSchema, type WorkerCapabilities, WorkerCapabilitiesSchema, type WorkerConfig, WorkerLifecycleError, type WorkerLifecycleErrorReason, buildDeduplicationMetrics, calculateDeduplicationSavings, createAggregatorNode, createExecutorNode, createFinisherNode$1 as createFinisherNode, createGeneratorNode, createMultiAgentSystem, createPatternLogger, createPlanExecuteAgent, createPlannerNode, createReActAgent, createReActAgentBuilder, createReflectionAgent, createFinisherNode as createReflectionFinisherNode, createReflectorNode, createReplannerNode, createReviserNode, createSupervisorNode, createWorkerNode, createWorkersRegistry, generateToolCallCacheKey, getRoutingStrategy, llmBasedRouting, loadBalancedRouting, registerWorkers, roundRobinRouting, ruleBasedRouting, skillBasedRouting };