📋 Document Metadata
Type: API Reference | Audience: Developers, Integrators | Complexity: Intermediate-Advanced
Cross-References: AGENTS.md | Comprehensive API Reference | Pipeline Architecture | Main Documentation
This directory contains comprehensive API documentation for the GNN (Generalized Notation Notation) codebase, providing programmatic interfaces for integrating GNN capabilities into applications, research workflows, and production systems.
Status: ✅ Production Ready
Version: 1.0
- README.md: Directory overview (this file)
- AGENTS.md: Technical documentation and agent scaffolding
- comprehensive_api_reference.md: Complete API reference documentation
- doc/README.md: Main documentation hub
- CROSS_REFERENCE_INDEX.md: Complete cross-reference index
- learning_paths.md: Learning pathways
- Pipeline Documentation: Pipeline execution and orchestration
- Development Guide: Development workflows and contribution guidelines
- MCP Integration: Model Context Protocol APIs
- Framework Integration: Framework-specific APIs
- Pipeline Documentation: Complete pipeline guide
- src/AGENTS.md: Implementation details
Files: 4 (README.md, AGENTS.md, comprehensive_api_reference.md, api_index.json) | Subdirectories: 0
-
comprehensive_api_reference.md: Complete API reference documentation- All programmatic interfaces for GNN integration
- Core Parsing API: GNN file parsing and validation
- Pipeline API: Pipeline execution and orchestration
- Framework Integration API: PyMDP, RxInfer, DisCoPy interfaces
- Visualization API: Programmatic visualization generation
- LLM Integration API: AI-enhanced model analysis
- MCP API: Model Context Protocol integration
- Performance API: Monitoring and optimization interfaces
-
api_index.json: Machine-readable API index- Generated map of modules, functions, and classes under
src/ - Created by
src/generate_api_index.py - AST-derived with file paths, module names, function signatures, class bases, and docstrings
- Excludes tests and output directories
- Generated map of modules, functions, and classes under
-
AGENTS.md: Technical documentation and agent scaffolding- Complete documentation structure
- Integration with pipeline
- Cross-references and navigation
-
README.md: Directory overview (this file)
- GNNParser: High-level GNN file parser with validation
- ParseConfig: Configuration options for parsing
- ValidationLevel: Strictness levels for validation
- GNNModel: Structured model representation
- Pipeline: Pipeline execution and orchestration
- PipelineConfig: Configuration management
- Step Execution: Individual step processing
- Result Aggregation: Result collection and reporting
- PyMDP Integration: Python Active Inference framework interfaces
- RxInfer Integration: Julia Bayesian inference interfaces
- DisCoPy Integration: Category theory and quantum computing interfaces
- JAX Integration: High-performance numerical computing interfaces
- Visualizer: Programmatic visualization generation
- Graph Generation: Network diagram creation
- Matrix Visualization: Heatmap and matrix displays
- Interactive Diagrams: Dynamic visualization interfaces
- LLMProcessor: AI-enhanced model analysis
- Provider Interfaces: Multi-provider LLM support
- Prompt Generation: Automated prompt creation
- Response Processing: LLM output interpretation
- MCP Tools: Model Context Protocol tool registration
- Tool Discovery: Automatic tool detection
- Protocol Compliance: Standard interface implementation
- Performance Monitoring: Operation timing and metrics
- Resource Tracking: Memory and CPU usage
- Optimization Interfaces: Performance tuning capabilities
The api_index.json file is automatically generated from the codebase:
# Generate API index
python src/generate_api_index.py- Source: All Python files under
src/directory - Exclusions: Tests and output directories are excluded
- Method: AST-based parsing for accurate extraction
- Content: File paths, module names, function signatures, class bases, and docstrings
This documentation is integrated with the 25-step GNN processing pipeline:
-
Core Processing (Steps 0-9): GNN parsing, validation, export
- Core Parsing API used throughout
- Validation interfaces for type checking
-
Simulation (Steps 10-16): Model execution and analysis
- Framework Integration APIs for code generation
- Execution interfaces for running simulations
-
Integration (Steps 17-24): System coordination and output
- MCP API for tool integration
- Performance API for monitoring
- Visualization API for output generation
See src/AGENTS.md for complete pipeline documentation.
from gnn import GNNParser, Pipeline, Visualizer
# Parse GNN model
parser = GNNParser()
model = parser.parse_file("examples/navigation_agent.md")
# Execute pipeline
pipeline = Pipeline(config="production")
results = pipeline.process(model, steps=[1, 4, 6, 9])
# Generate visualizations
viz = Visualizer()
diagrams = viz.create_all_visualizations(model, results)from gnn.render import PyMDPRenderer, RxInferRenderer
# Generate PyMDP code
pymdp_renderer = PyMDPRenderer()
pymdp_code = pymdp_renderer.render(model)
# Generate RxInfer code
rxinfer_renderer = RxInferRenderer()
rxinfer_code = rxinfer_renderer.render(model)- GNN Overview: Core GNN concepts
- GNN Quickstart: Getting started guide
- GNN Examples: Example models
- Development Guide: Development workflows
- Testing Guide: Testing strategies
- Contributing Guide: Contribution guidelines
- Pipeline Documentation: Complete pipeline guide
- Pipeline AGENTS: Implementation details
- Pipeline README: Pipeline overview
- Framework Integration Guide: Framework-specific documentation
- PyMDP Integration: PyMDP API details
- RxInfer Integration: RxInfer API details
All documentation in this module adheres to professional standards:
- Clarity: Concrete, technical writing with code examples
- Functionality: Describes actual API capabilities
- Completeness: Comprehensive coverage of all interfaces
- Consistency: Uniform structure and style with GNN documentation ecosystem
- API Reference: Cross-reference index entry
- Development Guide: Development workflows
- MCP Integration: Model Context Protocol documentation
- Main Index: Return to main documentation
Status: ✅ Production Ready
Compliance: Professional documentation standards
Maintenance: Regular updates with new API features and capabilities