Skip to content

rshoemake-grid/cursor-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

813 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Agentic Workflow Engine - Phase 3 Complete! ๐ŸŽ‰

A complete, enterprise-ready agentic workflow platform with visual builder, real-time monitoring, intelligent agents with memory, tool-calling capabilities, and advanced execution features.

๐Ÿ” Sign-in and browsing

  • Without an account session, the app still supports the Marketplace (templates). Your saved workflows (GET /api/workflows) are empty until you sign in; the builder uses a local draft tab only.
  • Workflow assistant (chat) supports an optional iteration limit per message (UI default 20); see docs/API_REFERENCE.md.
  • Local dev login: Prefer REACT_APP_API_BASE_URL unset in frontend/.env.development so the UI talks to /api through the dev proxy. Optional DEV_BOOTSTRAP_USERNAME / DEV_BOOTSTRAP_PASSWORD in root .env create or reset a dev user on API startup โ€” see docs/CONFIGURATION_REFERENCE.md.

๐ŸŒŸ Overview

Build complex multi-agent workflows where AI agents collaborate sequentially to accomplish tasks. Perfect for:

  • Content creation pipelines (write, edit, review)
  • Research and analysis workflows
  • Data processing chains
  • Automated decision-making systems

โœจ Features

Phase 3 (Current) - LATEST!

  • ๐Ÿš€ WebSocket Streaming - Real-time execution monitoring
  • ๐Ÿง  Agent Memory - Short-term and long-term memory with vector storage
  • ๐Ÿ› ๏ธ Tool Calling - Agents can execute functions and use tools
  • ๐Ÿ“Š Enhanced Monitoring - Live progress updates and detailed logging
  • ๐Ÿ“ˆ Analytics Dashboard - Execution metrics with interactive charts (success rates, duration trends, status distribution)
  • ๐Ÿ“ฅ Log Management - Download execution logs (text/JSON), filter and paginate logs
  • ๐Ÿ›‘ Execution Control - Cancel running executions

Phase 2 (Complete)

  • โœจ Visual Workflow Builder - Drag-and-drop UI with React Flow
  • โœจ Conditional Branching - If/else logic with multiple condition types
  • โœจ Loop Support - For-each, while, and until loops
  • โœจ Parallel Execution - Independent nodes run simultaneously
  • โœจ Real-time Execution Viewer - Watch workflows execute live

Phase 1 (Complete)

  • โœ… Sequential Workflow Execution - Agents execute in dependency order
  • โœ… LLM-Powered Agents - Integrated with OpenAI (GPT-4, GPT-4o-mini, etc.)
  • โœ… Node-Based Workflows - Visual graph representation of agent pipelines
  • โœ… Input/Output Chaining - Data flows seamlessly between agents
  • โœ… Execution Tracking - Complete logs and state management
  • โœ… REST API - Full-featured API with OpenAPI documentation
  • โœ… Persistent Storage - SQLite database (PostgreSQL-ready)
  • โœ… Async Architecture - Non-blocking execution for scalability

๐Ÿš€ Quick Start

Prerequisites

  • Python 3.8+
  • Node.js 18+ and npm
  • OpenAI API key

One-Command Startup (Recommended)

# Setup (first time only)
pip install -r requirements.txt
cd frontend && npm install && cd ..
cp .env.example .env  # Then add your OpenAI API key

# Start both backend and frontend
./start.sh

Visit http://localhost:3000 to use the visual workflow builder!

Manual Startup

Terminal 1: Backend

python3 -m uvicorn backend.main:app --host 0.0.0.0 --port 8000

Backend runs at http://localhost:8000. (Running python main.py from the repo root only runs a PyCharm sample stub and does not start the API.)

Terminal 2: Frontend

cd frontend
npm start

Frontend runs at http://localhost:3000 (CRA dev server; API defaults to proxied /api).

Your First Visual Workflow

  1. Open http://localhost:3000
  2. Drag nodes from the left panel onto the canvas
  3. Connect nodes by dragging between the handles (circles)
  4. Configure nodes by clicking them (right panel)
  5. Save your workflow (top toolbar)
  6. Execute and watch it run!

CLI Examples (Phase 1 Style)

# Simple 2-agent workflow
python examples/simple_workflow.py

# 3-agent research pipeline
python examples/research_workflow.py

# Conditional branching (NEW!)
python examples/conditional_workflow.py

# Loop-based batch processing (NEW!)
python examples/loop_workflow.py

๐Ÿ“š Documentation

Quick Links

Interactive Docs

๐ŸŽฏ Example Workflows

Phase 3 Examples (LATEST!)

Complete Phase 3 Demo

python examples/phase3_demo.py

Demonstrates WebSocket streaming, memory, and tool calling

Phase 2 Examples

Conditional Branching

python examples/conditional_workflow.py

Analyzes sentiment โ†’ Routes to positive/negative responder

Loop Processing

python examples/loop_workflow.py

Processes multiple topics โ†’ Combines results

Phase 1 Examples

Simple Story Writer (2 agents)

python examples/simple_workflow.py

Writer โ†’ Editor โ†’ Polished Story

Research Assistant (3 agents)

python examples/research_workflow.py

Researcher โ†’ Analyzer โ†’ Summarizer โ†’ Final Report

๐Ÿ—๏ธ Project Structure

cursor-test/
โ”œโ”€โ”€ main.py                    # Application entry point
โ”œโ”€โ”€ requirements.txt           # Dependencies
โ”œโ”€โ”€ verify_setup.py           # Setup verification
โ”œโ”€โ”€ test_api.py               # API tests
โ”‚
โ”œโ”€โ”€ frontend/                  # Create React App UI (React 18, styled-components, Redux)
โ”‚   โ””โ”€โ”€ README.md             # Frontend stack, proxy, styling, build output
โ”‚
โ”œโ”€โ”€ backend/
โ”‚   โ”œโ”€โ”€ models/               # Pydantic schemas & types
โ”‚   โ”œโ”€โ”€ database/             # SQLAlchemy ORM & connection
โ”‚   โ”œโ”€โ”€ engine/               # Workflow execution engine
โ”‚   โ”œโ”€โ”€ agents/               # Agent implementations
โ”‚   โ””โ”€โ”€ api/                  # FastAPI routes
โ”‚
โ””โ”€โ”€ examples/
    โ”œโ”€โ”€ simple_workflow.py    # 2-agent example
    โ””โ”€โ”€ research_workflow.py  # 3-agent example

๐Ÿ”ง Testing

# Test API connectivity (server must be running)
python test_api.py

# Manual API testing
curl http://localhost:8000/health

๐Ÿ“– API Overview

Workflows

  • POST /api/workflows - Create a workflow
  • GET /api/workflows - List all workflows
  • GET /api/workflows/{id} - Get workflow details
  • DELETE /api/workflows/{id} - Delete a workflow

Execution

  • POST /api/workflows/{id}/execute - Execute a workflow
  • GET /api/executions/{id} - Get execution details

๐ŸŽจ Workflow Concepts

A workflow consists of Nodes (agents) connected by Edges:

[Start] โ†’ [Agent 1] โ†’ [Agent 2] โ†’ [Agent 3] โ†’ [End]
           โ†“           โ†“           โ†“
        Research    Analysis    Summary

Each agent:

  • Receives input from previous agents or workflow variables
  • Processes with an LLM (configurable model, temperature, prompts)
  • Produces output for the next agent

๐Ÿ”ฎ Roadmap

  • โœ… Phase 1: Core engine, sequential execution, REST API
  • โœ… Phase 2: Visual builder, conditionals, loops, parallel execution
  • โœ… Phase 3: WebSockets, agent memory, tool calling
  • ๐Ÿ“‹ Phase 4: Templates, collaboration, advanced debugging
  • ๐Ÿ“‹ Phase 5: Enterprise (SSO, RBAC, audit logs, governance)

๐Ÿค Contributing

This is Phase 1 of a multi-phase project. The architecture is designed for extensibility:

  • Add new agent types by extending BaseAgent
  • Support new LLM providers in the agent layer
  • Implement custom node types via the registry pattern

๐Ÿ“ License

MIT License - See LICENSE file for details

๐Ÿ™ Acknowledgments

Built with:


Ready to build? Start with: python verify_setup.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors