Tools & Integration · Software component
Service Container
Software componentTools & IntegrationOrchestration & Toolsarc:ServiceContainer
A dependency-injection container that registers shared services (AI model services, database connections, HTTP clients) and injects them into capability functions under central configuration.
Responsibility. Supplies centrally configured shared dependencies to capability functions through injection.
Also known as: Kernel, Dependency injection container, Service registration
Relationships
hosts structural
is configured by structural
reads dependency
emits telemetry to dynamic
Design guidance
- SHOULD provide database connections, API clients and model services as injected dependencies rather than letting each function create its own.
- SHOULD keep credentials and connection strings in central configuration to simplify rotation and security auditing.
- SHOULD pool connections at the container rather than per plugin to prevent resource exhaustion under concurrency.
- SHOULD enable testing by allowing injected dependencies to be replaced with mocks.
Classification
- Patterns
- Dependency injectionService registrationCentralized connection poolingCentralized credential management
- Technologies
- Semantic KernelSpringASP.NET Core
- Quality attributes
- Reliability (ISO/IEC 25010 | NIST AI RMF: valid and reliable)Maintainability (ISO/IEC 25010)Security (ISO/IEC 25010 | NIST AI RMF: secure and resilient)
- Risks mitigated
- Connection/resource exhaustion from per-plugin clientsCredentials scattered across plugin code
Sources
- Ch2.5: T. Nguyen, "Semantic Kernel," in Mastering Agentic AI Systems: Guide for the NVIDIA NCP-AAI Exam, 1st ed. 2026, ch. 2.5. ISBN: 9798244538229.