AICentral.Dapr.Broadcast
0.20.5
dotnet add package AICentral.Dapr.Broadcast --version 0.20.5
NuGet\Install-Package AICentral.Dapr.Broadcast -Version 0.20.5
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AICentral.Dapr.Broadcast" Version="0.20.5" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AICentral.Dapr.Broadcast --version 0.20.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AICentral.Dapr.Broadcast, 0.20.5"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install AICentral.Dapr.Broadcast as a Cake Addin #addin nuget:?package=AICentral.Dapr.Broadcast&version=0.20.5 // Install AICentral.Dapr.Broadcast as a Cake Tool #tool nuget:?package=AICentral.Dapr.Broadcast&version=0.20.5
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
DAPR Broadcast for AI Central
Enables AI Central events to be broadcast via DAPR to any pub/sub component
Configuration
dotnet add package AICentral.Dapr.Broadcast
builder.Services.AddAICentral(
builder.Configuration,
additionalComponentAssemblies:
[
typeof(AICentral.Dapr.Broadcast.DaprBroadcaster).Assembly,
]);
{
"AICentral": {
"GenericSteps": [
{
"Type": "DaprBroadcaster",
"Name": "dapr-broadcaster",
"Properties": {
"DaprUri": "<dapr-listen-uri> e.g. https://localhost:62684/",
"DaprProtocol": "Http|Grpc",
"DaprToken": "Optional if you have a token",
"DaprPubSubComponentName": "PubSubComponentName",
"PubSubTopicName" : "PubSubTopicName"
}
}
]
}
}
How does it work?
For every request handled by AI Central we publish a message to your DAPR pub-sub component with this information:
{
"data": {
"callType": "Chat",
"client": "",
"completionTokens": null,
"deploymentName": "gpt-4o",
"duration": "00:00:00.5191121",
"estimatedCompletionTokens": 236,
"estimatedPromptTokens": 31,
"id": "17ae68fa-bb51-462b-9917-9a7339d5b3ff",
"internalEndpointName": "grfazopenai.openai.azure.com",
"modelName": "gpt-4o-2024-05-13",
"openAIHost": "endpoint1",
"prompt": "system:\\n text: You are a helpful assistant. You will replay with two or more paragraphs.\\n\\nuser:\\n text: What is Azure OpenAI?\\n",
"promptTokens": null,
"remoteIpAddress": "::1",
"response": "Response",
"startDate": "2024-09-30T10:45:20.919928+08:00",
"streamingResponse": true,
"success": true,
"totalTokens": 267
}
}
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net8.0
- AICentral.Core (>= 0.20.3)
- Dapr.Client (>= 1.14.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
0.20.5 | 97 | 9/30/2024 |
0.20.5-pullrequest0148-0004 | 79 | 9/30/2024 |
0.20.5-pullrequest0148-0002 | 59 | 9/30/2024 |