> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Recommend Pattern LLM • AI Agents Framework

> recommend_pattern_llm: Use LLM to recommend the best workflow pattern with reasoning.

# recommend\_pattern\_llm

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**WorkflowAutoGenerator**](../classes/WorkflowAutoGenerator) class in the [**auto**](../modules/auto) module.

Use LLM to recommend the best workflow pattern with reasoning.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def recommend_pattern_llm(topic: str) -> PatternRecommendation
```

## Parameters

<ParamField query="topic" type="str" required={false}>
  The task description (uses self.topic if not provided)
</ParamField>

### Returns

<ResponseField name="Returns" type="PatternRecommendation">
  Pattern with reasoning and confidence score
</ResponseField>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai/praisonai/auto.py#L1090">
  `praisonai/auto.py` at line 1090
</Card>

***

## Related Documentation

<CardGroup cols={2}>
  <Card title="Models Overview" icon="microchip" href="/docs/models" />

  <Card title="LLM Configuration" icon="gear" href="/docs/configuration/llm-config" />

  <Card title="Model Router" icon="route" href="/docs/features/model-router" />

  <Card title="Model Failover" icon="shield" href="/docs/features/failover" />
</CardGroup>
