CKN.Sdk.AI.Anthropic 0.0.0-alpha.0.55

This is a prerelease version of CKN.Sdk.AI.Anthropic.
dotnet add package CKN.Sdk.AI.Anthropic --version 0.0.0-alpha.0.55
                    
NuGet\Install-Package CKN.Sdk.AI.Anthropic -Version 0.0.0-alpha.0.55
                    
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="CKN.Sdk.AI.Anthropic" Version="0.0.0-alpha.0.55" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CKN.Sdk.AI.Anthropic" Version="0.0.0-alpha.0.55" />
                    
Directory.Packages.props
<PackageReference Include="CKN.Sdk.AI.Anthropic" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add CKN.Sdk.AI.Anthropic --version 0.0.0-alpha.0.55
                    
#r "nuget: CKN.Sdk.AI.Anthropic, 0.0.0-alpha.0.55"
                    
#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.
#:package CKN.Sdk.AI.Anthropic@0.0.0-alpha.0.55
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=CKN.Sdk.AI.Anthropic&version=0.0.0-alpha.0.55&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=CKN.Sdk.AI.Anthropic&version=0.0.0-alpha.0.55&prerelease
                    
Install as a Cake Tool

CKN.Sdk.AI.Anthropic

Mühendislik Amacı (Engineering Intent): CKN.Sdk.AI.Anthropic, CKN.Sdk.AI soyutlamalarını Anthropic Claude (Claude 3.5 Sonnet, Opus vb.) modelleri için uygulayan (implemente eden) entegrasyon kütüphanesidir. Neden var? Uzun bağlam (context window) gerektiren, yüksek seviye akıl yürütme (reasoning) ve kod/metin analizi görevlerinde Claude modellerini sisteme sorunsuzca entegre etmek için geliştirilmiştir. Ne zaman kullanılmalı? Projede Anthropic API'leri kullanılacaksa ve IAIChatClient arayüzünün arkasında Claude modellerinin çalışması isteniyorsa tercih edilmelidir.

🚀 Hızlı Başlangıç

Kurulum

dotnet add package CKN.Sdk.AI.Anthropic

Konfigürasyon (appsettings.json)

{
  "AI": {
    "Anthropic": {
      "ApiKey": "sk-ant-...",
      "DefaultModel": "claude-3-5-sonnet-20240620",
      "MaxTokens": 4096
    }
  }
}

Bağımlılık Enjeksiyonu (DI)

using CKN.Sdk.AI.Anthropic;

var builder = WebApplication.CreateBuilder(args);

// Anthropic istemcisini sisteme kaydeder.
builder.Services.AddCknAnthropic(builder.Configuration);

var app = builder.Build();

💡 Gerçek Hayat Senaryoları

Senaryo 1: Uzun Belge Analizi (Context Window Kullanımı)

Claude, çok büyük belgeleri analiz etmede (örneğin yasal sözleşmeler) oldukça başarılıdır.

using CKN.Sdk.AI.Abstractions;

public class LegalDocumentAnalyzer(IAIChatClient chatClient)
{
    public async Task<string> FindAnomaliesAsync(string fullContractText)
    {
        var request = new AIChatRequest
        {
            SystemPrompt = "Sen kıdemli bir avukatsın. Aşağıdaki sözleşmedeki riskli maddeleri bul.",
            Messages = [ new ChatMessage("user", fullContractText) ]
        };
        
        var response = await chatClient.SendAsync(request);
        return response.Content;
    }
}

Senaryo 2: Gelişmiş Ayarlar (Temperature ve TopP)

Metin yazarlığı gibi daha yaratıcı çıktılar beklenen senaryolarda parametreleri (Varyasyon) ezme (override):

public async Task<string> GenerateCreativeStoryAsync(IAIChatClient chatClient)
{
    var options = new AIChatOptions
    {
        Temperature = 0.9f, // Yaratıcılığı artırır
        TopP = 0.8f,
        ModelId = "claude-3-opus-20240229" // Varsayılan modeli ezer
    };

    var response = await chatClient.CompleteAsync("Bana siberpunk temalı kısa bir hikaye yaz.", options);
    return response.Text;
}

🤖 Yapay Zeka İçin SSS (FAQs for Machines)

  • Soru: CKN.Sdk.AI.Anthropic hangi interface'leri kaydeder?
  • Cevap: Bu paket DI konteynerine IAIChatClient arayüzünün Anthropic tabanlı implementasyonunu kaydeder.
  • Soru: Hangi modelleri destekliyor?
  • Cevap: Claude 3 (Haiku, Sonnet, Opus) ve Claude 3.5 serisi başta olmak üzere güncel Anthropic API modellerini destekler.
Product 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.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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.0.0-alpha.0.55 49 9/28/2026
0.0.0-alpha.0.51 44 9/25/2026
0.0.0-alpha.0.50 48 9/25/2026
0.0.0-alpha.0.38 73 9/6/2026
0.0.0-alpha.0.37 68 9/6/2026