graph LR
Initialization["Initialization"]
Orchestration["Orchestration"]
Agent_Pipeline["Agent Pipeline"]
Knowledge_Graph_Abstraction["Knowledge Graph Abstraction"]
Core_Services["Core Services"]
Initialization -- "Triggers" --> Orchestration
Orchestration -- "Invokes" --> Agent_Pipeline
Agent_Pipeline -- "Reads from / Writes to" --> Knowledge_Graph_Abstraction
Agent_Pipeline -- "Uses" --> Core_Services
Knowledge_Graph_Abstraction -- "Uses" --> Core_Services
click Agent_Pipeline href "https://github.com/CodeBoarding/GeneratedOnBoardings/blob/main/saga/Agent_Pipeline.md" "Details"
click Knowledge_Graph_Abstraction href "https://github.com/CodeBoarding/GeneratedOnBoardings/blob/main/saga/Knowledge_Graph_Abstraction.md" "Details"
Abstract Components Overview
Bootstraps the story world by processing initial user input to create and populate the foundational entities (e.g., characters, plot, world details) in the knowledge graph.
Related Classes/Methods:
saga.initialization.genesis
The central controller that manages the end-to-end content generation workflow, sequencing the calls to the Agent Pipeline for chapter creation, evaluation, and finalization.
Related Classes/Methods:
Agent Pipeline [Expand]
A suite of specialized AI agents that execute the core content creation tasks. It functions as an iterative pipeline to progressively plan, draft, evaluate, and revise a chapter until it meets quality standards.
Related Classes/Methods:
saga.agentssaga.orchestration.chapter_flow
Knowledge Graph Abstraction [Expand]
Provides a high-level API for all database interactions, acting as the long-term memory for the agents. It encapsulates data querying, persistence, and the logic for extracting and merging new knowledge into the Neo4j graph.
Related Classes/Methods:
saga.data_accesssaga.kg_maintainer
Provides essential, low-level services shared across the application. It abstracts all interactions with Large Language Models (LLMs) and manages the singleton database connection for efficient resource use.
Related Classes/Methods:
saga.core.llm_interfacesaga.core.db_manager