schema_version: 1
workflow_id: example_agent_chain
vars:
  run_date: "{{ yesterday_utc }}"
steps:
  - id: first_agent
    command:
      - yy
      - pi
      - |
        %ralph-loop Do a small readonly investigation for {{ run_date }}.
        Finish with: AGENT_RESPONSE_ONE_LINE: <one sentence>
  - id: continue_agent
    command:
      - yy
      - pi
      - --resume
      - "{{ steps.first_agent.session_id }}"
      - |
        Continue the previous session and summarize next actions.
summary:
  command:
    - yy
    - pi
    - |
      Summarize workflow status. First session: {{ steps.first_agent.session_id }}
      First response: {{ steps.first_agent.response }}
