Skip to content

Add shared core entry point (core/run.py) #4

Closed

Description

@OkiriGabriel

Part of #1 (open-core architecture).

Goal

Provide a single programmatic entry point for running the marketing graph so both the CLI and a future hosted API share the same code path.

Scope

  • Add core/run.py with something like:
    • run_agent(message: str, *, verbose: bool = False) -> str
    • optional thread/history support for multi-turn chat
  • Refactor main.py to call core.run instead of invoking the graph directly
  • Keep CLI UX (Rich panels, banners) in main.py

Acceptance criteria

  • python main.py behavior unchanged
  • run_agent() callable from tests without Rich/console side effects
  • Graph construction stays lazy/cached as today

Future use

Hosted FastAPI/Next.js backend will call run_agent() per request.

Activity

  1. added
    enhancement
    on Jul 21, 2026
  2. OkiriGabriel commented on Jul 30, 2026

    @OkiriGabriel
    CollaboratorAuthor

    Fixed in PR #19 — core/run.py with run_agent(); main.py refactored.

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