A framework is only as good as its developer experience. Hazina comes with CLI tools and development utilities that make building, testing, and debugging faster.
Solution Files
Hazina provides multiple solution files for different needs:
| Solution | Purpose | Projects |
|---|---|---|
Hazina.QuickStart.sln |
Getting started | Core + demos |
Hazina.AI.sln |
AI features only | FluentAPI + RAG + tools |
Hazina.sln |
Full framework | Everything |
Demo Applications
Each major feature has a runnable demo:
# Configuration showcase
dotnet run --project apps/Demos/Hazina.Demo.ConfigurationShowcase
# RAG demo
dotnet run --project apps/Demos/Hazina.Demo.RAG
# Plugin demo
dotnet run --project apps/Demos/Hazina.Demo.Plugins
# Orchestration demo (web terminal)
dotnet run --project apps/Demos/Hazina.Demo.AgenticOrchestration
Code Generation
Generate boilerplate from the command line:
# Generate a new entity with controller
dotnet hazina generate entity Product --base SoftDelete --controller
# Generate a new social provider
dotnet hazina generate provider Instagram
# Generate a new agent tool
dotnet hazina generate tool SearchCustomers
Testing Utilities
// In-memory database for fast tests
var services = new HazinaTestServices()
.WithInMemoryDatabase()
.WithMockLLM(responses: new[] { "Mocked AI response" })
.Build();
// Test an API endpoint
var client = services.CreateClient();
var response = await client.GetAsync("/api/products");
Debug Dashboard
In development mode, Hazina exposes a debug dashboard at /hazina/debug:
- View all registered entities and their configurations
- See recent AI calls with full request/response
- Browse the document store
- Execute plugins manually
- View health check status
Hot Reload
YAML entity definitions support hot reload – change a YAML file and the API updates without restarting. Perfect for rapid prototyping.
In the final post, we’ll tie everything together with architecture best practices and a complete application example.
Terug naar overzicht