🧩 Flow.AI.Core Integration
Starting with PromptStream.AI v0.8.0, the library now depends on Flow.AI.Core v0.2.0 for all shared models and interfaces.
This unifies the Flow ecosystem so that components like PromptStream.AI, TokenFlow.AI and ReasonFlow.AI can communicate through a common contract layer.
🔗 Shared Types
| Type | Namespace | Description |
|---|---|---|
PromptTemplate |
Flow.AI.Core.Models |
Defines reusable prompt templates. |
PromptInstance |
Flow.AI.Core.Models |
Represents a rendered prompt instance. |
PromptResponse |
Flow.AI.Core.Models |
Unified model response DTO. |
PromptMessage |
Flow.AI.Core.Models |
Standard chat message representation. |
TokenFlowSummary |
Flow.AI.Core.Models |
Token usage and cost summary. |
IModelClient |
Flow.AI.Core.Interfaces |
Model client abstraction. |
IPromptContextManager |
Flow.AI.Core.Interfaces |
Conversation state interface. |
⚙️ PromptStream.AI Specific Types
| Type | Namespace | Purpose |
|---|---|---|
PromptValidationResult |
PromptStream.AI.Models |
Validation and error tracking. |
PromptStreamService |
PromptStream.AI.Services |
Main orchestration service. |
PromptValidator |
PromptStream.AI.Validation |
Validation logic. |
🧠 Benefits
- 💬 Unified interfaces across all Flow components
- 🧱 Zero duplication of shared models
- 🔄 Simpler NuGet dependency tree
- 📦 Future-ready for Flow v1.0 SDK
PromptStream.AI v0.8.0 depends on Flow.AI.Core v0.2.0 or higher.