Skip to content

Execution Engine (core/engine.py) #5

Closed

Description

@maddes8cht

Priority: High
Dependencies: Issues #1-4
Description:
Implement the core orchestration loop that manages the workflow execution: Preparation → Loop → Finalization.
Requirements:
Load workflow configuration (JSON file)
Execute preparation agent (if defined) once
Loop through defined agents:
Inject current state into prompt
Execute agent via runner
Parse state update from output
Update master state
Check max_loops limit
Evaluate end_state_condition
Execute finalization agent (if defined) based on termination reason
Provide live logging/callbacks for UI integration
Acceptance Criteria:
Preparation agent runs exactly once at start
Loop agents execute in defined order
State is injected into each agent's prompt
State updates are parsed and applied
Loop terminates when is_complete == True
Loop terminates when max_loops is reached
Finalization agent runs based on configuration
Live logging works (stdout streaming)

Activity

  1. added
    enhancement
    on Jul 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions