How aethergases/aeko-sdk works
Aeko is an embeddable Python library for GHG inventory analysis and ESG conversation, not a standalone service. Its two public entry points feed a shared agent graph: chat routes questions through specialists and reviews the answer; report analysis produces a structured improvement plan and extracted inventory. Configuration builds and caches agents, while shared logging and event tracking capture run metrics. The README documents the main chat sequence; unsampled report internals and some graph routing details are represented only where the README or source index supports them.
Main entry points: messenger.py Chat Entry · inventory.py Inventory Entry · nodes.py Graph Nodes · agents.py Agent Factory
Components 23
Public API
- SDK Facade
aeko/__init__.py - Configuration
aeko/config/aeko.py - Chat Entry
aeko/config/messenger.py - Inventory Entry
aeko/config/inventory.py - Domain Models
aeko/config/dto.py - Text Parsing
aeko/config/_text.py - SDK Errors
aeko/config/exceptions.py
Agent Engine
- Agent Runtime
aeko/engine/runtime.py - Agent Factory
aeko/engine/agents/agents.py - Model Setup
aeko/engine/agents/llms.py - Graph Builder
aeko/engine/graph/builder.py - Graph Nodes
aeko/engine/graph/nodes.py - Graph State
aeko/engine/graph/state.py - Content Normalizer
aeko/engine/_content.py
Agent Prompts
- Prompt Builder
aeko/engine/prompts/builder.py - Chat Agents
aeko/engine/prompts/router.py - Analysis Agents
aeko/engine/prompts/continuous_improvement_coordinator.py
Shared Runtime
- Run Context
aeko/shared/context.py - Event Tracking
aeko/shared/event_tracking.py - Logging
aeko/shared/logger.py
Side Features
- Conversation Summary
aeko/side_content/summary.py - Summary Prompt
aeko/side_content/prompt.py
Other components
- Embedding Caller
Connections 35
- Embedding Caller → SDK Facade: uses SDK
README.md - SDK Facade → Configuration: configures
aeko/__init__.py - Embedding Caller → Chat Entry: sends message
README.md - Embedding Caller → Inventory Entry: submits inventory
README.md - Chat Entry → Agent Runtime: runs chat
aeko/config/messenger.py - Inventory Entry → Agent Runtime: runs report
aeko/config/inventory.py - Chat Entry → Domain Models: uses session models
aeko/config/messenger.py - Inventory Entry → Domain Models: builds response
aeko/config/inventory.py - Chat Entry → Text Parsing: strips markers
aeko/config/messenger.py - Inventory Entry → Text Parsing: parses sections
aeko/config/inventory.py - Inventory Entry → SDK Errors: raises malformed output
aeko/config/inventory.py - Configuration → Agent Runtime: configures runtime
aeko/config/aeko.py - Agent Runtime → Agent Factory: creates agents
aeko/engine/runtime.py - Agent Factory → Model Setup: creates models
aeko/engine/agents/agents.py - Agent Factory → Prompt Builder: builds prompts
aeko/engine/agents/agents.py - Agent Factory → Chat Agents: registers chat specs
aeko/engine/agents/agents.py - Agent Factory → Analysis Agents: registers report spec
aeko/engine/agents/agents.py - Chat Entry → Graph Builder: enters chat graph
README.md - Inventory Entry → Graph Builder: enters report graph
aeko/config/inventory.py - Graph Builder → Graph Nodes: registers nodes
aeko/engine/graph/builder.py - Graph Nodes → Graph State: reads and updates
aeko/engine/graph/nodes.py - Graph Nodes → Content Normalizer: normalizes output
aeko/engine/graph/nodes.py - Graph Nodes → Text Parsing: reads handoff markers
aeko/config/_text.py - Graph Nodes → Chat Agents: routes chat
README.md - Graph Nodes → Analysis Agents: runs report specialist
aeko/engine/graph/nodes.py - Prompt Builder → Chat Agents: builds specifications
aeko/engine/prompts/__init__.py - Prompt Builder → Analysis Agents: builds specifications
aeko/engine/prompts/continuous_improvement_coordinator.py - Chat Entry → Conversation Summary: may summarize
aeko/config/messenger.py - Conversation Summary → Summary Prompt: uses prompt
aeko/side_content/summary.py - Conversation Summary → Agent Factory: builds summarizer agent
aeko/side_content/summary.py - Agent Runtime → Run Context: binds run context
- Run Context → Event Tracking: scopes run metrics
aeko/shared/event_tracking.py - Event Tracking → Logging: records agent calls
aeko/shared/logger.py - Chat Entry → Event Tracking: returns run metrics
aeko/config/messenger.py - Inventory Entry → Event Tracking: returns run metrics
aeko/config/inventory.py