Nexus Base Package Documentation
The nexusBase package supplies the common building blocks the Nexus packages reuse instead of re-implementing: the base application and CloudService types they extend, the GenaiCore.Llm provider and embedding types for talking to Azure, OpenAI, Bedrock, and Vertex AI, and shared helpers for app-start hooks, scheduled jobs, privileged server-side helpers, and errors. You don't use it directly; you get it as a dependency of the package you install (such as nexus or llmService). Depend on it when building a new Nexus package that needs the same primitives.
Key types in this package
| Type | What you use it for |
|---|---|
| NexusBase.App | Extend it to build a new Nexus application. |
| NexusBase.AppStartHook | Run setup and reconciliation logic when the app starts. |
| NexusBase.CloudService | Extend it to add a Helm-deployed service to a Nexus package. |
| NexusBase.CloudServiceConfig | Configure a Nexus CloudService. |
| NexusBase.CronManager | Register and manage the package's scheduled jobs. |
| GenaiCore.Llm.Client | Call an LLM provider (Azure, OpenAI, Bedrock, Vertex) from package code. |
Key files in this package
The package is structured in the following manner:
Text
.
└── nexusBase/
├── config
├── metadata
├── test
└── src/
├── app
└── llm| Folder name | Content |
|---|---|
config | Package configuration files. |
metadata | Seed roles and package metadata. |
test | Tests per runtime for the shared utilities. |
src/app | Base application type and the update manager. |
src/llm | GenaiCore.Llm provider, model, auth, and embedding types. |