Tharga.Team.Support.Anthropic
4.6.0
dotnet add package Tharga.Team.Support.Anthropic --version 4.6.0
NuGet\Install-Package Tharga.Team.Support.Anthropic -Version 4.6.0
<PackageReference Include="Tharga.Team.Support.Anthropic" Version="4.6.0" />
<PackageVersion Include="Tharga.Team.Support.Anthropic" Version="4.6.0" />
<PackageReference Include="Tharga.Team.Support.Anthropic" />
paket add Tharga.Team.Support.Anthropic --version 4.6.0
#r "nuget: Tharga.Team.Support.Anthropic, 4.6.0"
#:package Tharga.Team.Support.Anthropic@4.6.0
#addin nuget:?package=Tharga.Team.Support.Anthropic&version=4.6.0
#tool nuget:?package=Tharga.Team.Support.Anthropic&version=4.6.0
Tharga.Team.Support.Anthropic
Lets each team's support assistant answer through the team's own Neurolito or Anthropic key, with the model chosen from what that provider offers the key.
Both speak the Anthropic Messages API, so this package reaches them with the official Anthropic SDK. It is a
package of its own for one reason: it is the only part of the toolkit that takes a vendor SDK, and a host that never
lets teams bring their own AI should not acquire it.
Use
builder.Services.AddThargaSupportCases();
builder.Services.AddThargaSupportAiConnections(); // each team chooses: the platform's model, its own provider, or off
builder.Services.AddThargaSupportAiProviders(); // adds Neurolito and Anthropic as providers a team can choose
// Keys are stored encrypted with Data Protection. Keep the key ring where every instance reads it:
builder.Services.AddDataProtection()
.SetApplicationName("MySite")
.PersistKeysToThargaMongo();
Then put <SupportAssistantConnectionView /> on a page for team administrators. It needs the assistant:manage team
scope, which administrators hold by default.
What a team gets
- Load models lists what the key may use, from
GET /v1/models. A refused key, a wrong address or an unreachable server is said in words on the form. - Test sends the chosen model one short message and shows the reply.
- Save checks once more that the provider offers the model for the key, then stores the key encrypted. It is never shown again; it can be replaced.
Options
builder.Services.AddThargaSupportAiProviders(o =>
{
o.NeurolitoBaseAddress = "https://neurolito.com"; // where a Neurolito connection starts; a team can change it
o.OfferAnthropic = true; // false keeps teams on Neurolito, the platform's model or off
o.AnthropicBaseAddress = "https://api.anthropic.com"; // where an Anthropic connection starts; a team can change it
o.MaxOutputTokens = 4096; // the ceiling for one answer
});
AddThargaSupportAiProviders was called AddThargaSupportAnthropic until 4.5; the old name still works and is marked
obsolete.
Full documentation: Support cases.
Links
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Anthropic (>= 13.3.0)
- Microsoft.Extensions.Http (>= 10.0.14)
- Tharga.Team.Support (>= 4.6.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.