Skip to main content

recommend_pattern

Method
This is a method of the WorkflowAutoGenerator class in the auto module.
Recommend the best workflow pattern based on task characteristics.

Signature

def recommend_pattern(topic: str) -> str

Parameters

topic
str
The task description (uses self.topic if not provided)

Returns

Returns
str
Recommended pattern namePattern recommendations based on Anthropic’s best practices:
  • sequential: Clear step-by-step dependencies
  • parallel: Independent subtasks that can run concurrently
  • routing: Different input types need different handling
  • orchestrator-workers: Complex tasks needing dynamic decomposition
  • evaluator-optimizer: Tasks requiring iterative refinement