Traigent SDK Project Structure¶
This document outlines the current structure of the Traigent SDK project.
Root Directory¶
Traigent/
├── README.md # Main project documentation
├── LICENSE # AGPLv3 license text for open-source releases
├── pyproject.toml # Build, packaging, and tool config
├── uv.lock # Lockfile (uv)
├── traigent/ # Core SDK source code
├── tests/ # Test suite
├── examples/ # Usage examples and demo runners
├── docs/ # Documentation (this folder)
├── tools/ # Architecture analysis and dev utilities
├── scripts/ # Utility and automation scripts
├── plugins/ # Optional plugin packages
├── requirements/ # Dependency sets and guides
└── configs/ # Configuration, baselines, and runtime
├── auto_tune_config.yaml
├── env-templates/
├── baselines/ # Performance baselines
└── runtime/ # Runtime configs
Note: Use-cases, demos, playground, paper experiments, and non-essential tools have been moved out of this repository.
Key Directories Explained¶
/traigent/¶
Core SDK source code, including:
- api/ public decorators and functions
- config/ configuration and injection providers
- core/ orchestration and optimized function
- optimizers/ algorithms (grid/random/optuna/interactive)
- evaluators/ dataset and evaluation
- integrations/ framework adapters (OpenAI, Anthropic, LangChain, Bedrock, Azure, Gemini, Cohere, HuggingFace, LiteLLM, LlamaIndex, Mistral, PydanticAI, vector stores, and observability)
- cloud/ hybrid/backend auth and sync clients; remote cloud execution remains reserved for future service-backed runs
- storage/, utils/, visualization/, tvl/, etc.
/tests/¶
Unit, integration, e2e, security, and performance suites.
/docs/¶
Documentation content:
- getting-started/ quickstart and install
- user-guide/ how-to guides
- examples/ canonical example guides and navigation docs
- api-reference/ API docs
- architecture/ design docs
- guides/, operations/ practitioner docs
- feature_matrices/ feature and optimizer matrices
/examples/¶
Usage examples, datasets, and the browser gallery assets (examples/gallery/).
/tools/¶
Architecture analysis (tools/architecture/) and environment utilities.
CI workflow dependency via .github/workflows/architecture-analysis.yml.
/scripts/¶
Helper scripts (e.g., launchers, verification, utilities).
/plugins/¶
Optional plugin packages: analytics, tracing, OPAL, tuned-variables, UI.
/requirements/¶
Legacy dependency mirrors and supporting guides. pyproject.toml extras are
the canonical install surface for current package builds.
File Organization Principles¶
- Clean Root: Only essential project directories at root level
- Grouped Dependencies: All requirements files in dedicated directory
- Logical Grouping: Related functionality grouped together
- Clear Naming: Descriptive directory and file names
- Separation of Concerns: Demos and use-cases live in TraigentDemo repo
Notes¶
This structure provides a clean, scalable layout that makes the project easy to navigate for both users and contributors.