---
title: "Agentic Patterns"
description: "Build the six architectural patterns of agentic AI (prompt chaining, routing, parallelization, tool use, evaluator-optimizer, orchestrator-worker) and the ReAct and planning strategies as Pixeltable tables and computed columns."
url: "https://www.pixeltable.com/notebooks/agentic-patterns"
updated: "2026-09-03"
---

# Agentic Patterns

Build the six architectural patterns of agentic AI (prompt chaining, routing, parallelization, tool use, evaluator-optimizer, orchestrator-worker) and the ReAct and planning strategies as Pixeltable tables and computed columns.

- **Type:** Notebook
- **Group:** Agents

## What it covers

- Pattern 1: Prompt Chaining
- Pattern 2: Routing
- Pattern 3: Parallelization
- Pattern 4: Tool Use
- Pattern 5: Evaluator-Optimizer
- Pattern 6: Orchestrator-Worker
- Strategy A: ReAct
- Strategy B: Planning

## What it uses

- **Install:** `pip install pixeltable openai`
- **Environment variables it names:** `OPENAI_API_KEY`
- **Pixeltable calls:** `openai.chat_completions()`, `openai.invoke_tools()`, `pxt.create_table()`, `@pxt.udf`, `pxt.tools()`, `pxt.udf()`, `add_computed_column()`, `insert()`

## A look at the code

```python
# Step 1: generate an outline
chain.add_computed_column(
    outline_response=openai.chat_completions(
        messages=[
            {
                'role': 'user',
                'content': 'Create a 3-point outline for a short article about: '
                + chain.topic,
            }
        ],
        model='gpt-4o-mini',
    )
)
chain.add_computed_column(
    outline=chain.outline_response.choices[0].message.content.astype(
        pxt.String
    )
)
```

## Open it

- **Open in Colab:** https://colab.research.google.com/github/pixeltable/pixeltable/blob/release/docs/release/howto/cookbooks/agents/agentic-patterns.ipynb
- **Docs page:** https://docs.pixeltable.com/howto/cookbooks/agents/agentic-patterns
- **Source on GitHub:** https://github.com/pixeltable/pixeltable/blob/release/docs/release/howto/cookbooks/agents/agentic-patterns.ipynb
