Creator Agent

Ed Donner

AutoGen RoutedAgent that receives an agent template and returns only Python code for a new Agent class with a unique system message and business vertical.

AutoGen Core · AutoGen AgentChat · OpenAI gpt-4o-mini

Overview

Layers 2–4 on the Mental Model. The Creator is a RoutedAgent that delegates to an AutoGen AgentChat assistant. It must emit raw Python for a class named Agent inheriting RoutedAgent, register it, then ask the new worker for an idea and return that content to world.py.

Behavior

  • Orchestrator-Worker. Creator owns spawn + first idea request; workers only answer. See Building effective agents.
  • Code-only replies. No markdown fences; the host can import the result into agentN.py.
  • Shape constraints. __init__(name) and RoutedAgent inheritance are required; instructions push different sectors and goals (avoid environmental themes).
  • High temperature. Model client uses gpt-4o-mini at temperature 1.0 for variety.

Creator flow

Filename message in; registered worker idea out. Diagram key: ✦ AI agent · second line = Anthropic workflow · purple = actor · white = service.

---
config:
  theme: default
  themeVariables:
    background: "#ffffff"
    fontSize: "14px"
---
flowchart TB
    world[world.py message]
    template[agent.py template]
    creator["✦ Creator
Orchestrator-Worker"] delegate[AssistantAgent] module[agentN.py] registerNode[Register with runtime] worker["✦ New Worker Agent"] idea[Idea content] world -->|agentN.py| creator template --> creator --> delegate --> module --> registerNode --> worker creator -->|Give me an idea| worker --> idea idea --> world classDef agent fill:#e8f0ee,stroke:#0f3d36,stroke-width:2px,color:#0d0d0d classDef service fill:#fafaf8,stroke:#c8c8c2,stroke-width:1px,color:#0d0d0d classDef actor fill:#f3eef8,stroke:#6b4f9a,stroke-width:2px,color:#0d0d0d class creator,worker agent class world,template,delegate,module,registerNode,idea service

Defined in 5_autogen/creator.py. Message type: messages.Message.

Defined in 5_autogen/creator.py. Layers and workflows on Mental Model. Part of AutoGen Creator World (Project tab).