name: m2test/hierarchical-workflow
type: graph
description: M2 smoke test hierarchical actor with planner and executor nodes
version: "1.0"
provider: openai
model: gpt-4
context_view: full
memory:
  enabled: true
  max_messages: 100
context:
  include_files:
    - README.md
  exclude_patterns:
    - "**/__pycache__/**"
route:
  nodes:
    - id: planner
      type: agent
      name: Planner
      description: Plans the next steps
      config:
        model: gpt-4
        prompt: You are a task planner
    - id: executor
      type: tool
      name: Executor
      description: Executes file operations
      config:
        tool_name: builtin/read_file
    - id: reviewer
      type: agent
      name: Reviewer
      description: Reviews output quality
      config:
        model: gpt-4
        prompt: You are a code reviewer
  edges:
    - from_node: planner
      to_node: executor
    - from_node: executor
      to_node: reviewer
  entry_node: planner
  exit_nodes:
    - reviewer
