Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Web Security TippsIntroducing the new Confluence integration with Google Chat(22.09.2026 um 19:40 Uhr)
Web Security TippsQuick notes in Take notes for me(22.09.2026 um 21:31 Uhr)
Sichere ProgrammierungSecurity improvements for SSH(22.09.2026 um 16:11 Uhr)
Sichere ProgrammierungKI-Akzeptanz: Wie Rewe digital einfach nur den Chatbot umbenannte(22.09.2026 um 18:00 Uhr)
Sichere ProgrammierungClaude Opus 5.5: Keeping safety ahead of capabilities(22.09.2026 um 20:59 Uhr)
Sichere ProgrammierungYour Terraform Monolith Isn't Too Big. It's Tightly Coupled.(22.09.2026 um 21:00 Uhr)
Sichere ProgrammierungMy PR got merged into Mike — OSS Legal AI Platform 🎉(22.09.2026 um 21:34 Uhr)
Sichere ProgrammierungStop Writing JavaScript To Fix `100vh` On Mobile(22.09.2026 um 21:35 Uhr)
Sichere ProgrammierungNext.js proxy.ts Explained (with Cheat Sheet)(22.09.2026 um 21:36 Uhr)
Web Security TippsIntroducing the new Confluence integration with Google Chat(22.09.2026 um 19:40 Uhr)
Web Security TippsQuick notes in Take notes for me(22.09.2026 um 21:31 Uhr)
Sichere ProgrammierungSecurity improvements for SSH(22.09.2026 um 16:11 Uhr)
Sichere ProgrammierungKI-Akzeptanz: Wie Rewe digital einfach nur den Chatbot umbenannte(22.09.2026 um 18:00 Uhr)
Sichere ProgrammierungClaude Opus 5.5: Keeping safety ahead of capabilities(22.09.2026 um 20:59 Uhr)
Sichere ProgrammierungYour Terraform Monolith Isn't Too Big. It's Tightly Coupled.(22.09.2026 um 21:00 Uhr)
Sichere ProgrammierungMy PR got merged into Mike — OSS Legal AI Platform 🎉(22.09.2026 um 21:34 Uhr)
Sichere ProgrammierungStop Writing JavaScript To Fix `100vh` On Mobile(22.09.2026 um 21:35 Uhr)
Sichere ProgrammierungNext.js proxy.ts Explained (with Cheat Sheet)(22.09.2026 um 21:36 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

AWS Bedrock anthropic claude tool call integration with microsoft semantic kernel

As of April 2025, the official Microsoft Semantic Kernel connector for Amazon Microsoft.SemanticKernel.Connectors.Amazon does not natively support tool/function calls. Apparently, Semantic Kernel is shifting its approach towards an LLM…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!

As of April 2025, the official Microsoft Semantic Kernel connector for Amazon Microsoft.SemanticKernel.Connectors.Amazon does not natively support tool/function calls. Apparently, Semantic Kernel is shifting its approach towards an LLM abstraction layer based on Microsoft.Extensions.AI, aiming for a more unified and extensible architecture. Currently, only OpenAI and Ollama implementations are available within this new abstraction. It is anticipated that an implementation for AWS Bedrock Anthropic Claude based on Microsoft.Extensions.AI will become available in the future. Therefore, in the interim, I implemented a custom solution. The approach leverages the existing IChatClient interface, making the implementation relatively straightforward. Since function calls are supported by this interface, the solution involves implementing it on top of the AWS Bedrock Runtime SDK.






Implement IChatClient with AWS Bedrock Runtime



The IChatClient interface essentially contains two methods: one for standard chat responses and another for streamed responses. The implementation involves mapping these two methods to the IAmazonBedrockRuntime.ConverseAsync and ConverseStreamAsync methods, as demonstrated in the full implementation of the AnthropicChatClient here.






Setting up Function Calls with Semantic Kernel



Here's how to set up function calls with Semantic Kernel using our custom AnthropicChatClient:





  1. Set up kernel and functions

    This step configures the chat completion service with function invocation capabilities and registers it with the Semantic Kernel.


    // Set up chat completion service
    IChatClient chatClient = ...;
    IChatCompletionService chatService =
    chatClient
    .AsBuilder()
    .UseFunctionInvocation() // Enables function call functionality
    .Build()
    .AsChatCompletionService();

    // Register the Bedrock chat completion service
    var builder = Kernel.CreateBuilder();
    builder.Services.AddKeyedSingleton("bedrock", chatService);
    // Add plugins/functions
    builder.Plugins.AddFromType<MenuPlugin>();
    // ...
    var kernel = builder.Build();




  2. Use automatically tool calls

    This code demonstrates how to use the configured chat completion service to automatically invoke functions based on the user's input.


    // Set up bedrock
    var runtimeClient = new AmazonBedrockRuntimeClient(RegionEndpoint.APSoutheast2);
    IChatClient client = new AnthropicChatClient(runtimeClient, "anthropic.claude-3-5-sonnet-20241022-v2:0");

    // Configure the chat client as shown in step 1.
    IChatCompletionService chatCompletionService = client
    .AsBuilder()
    .UseFunctionInvocation()
    .Build()
    .AsChatCompletionService();

    var chatHistory = new ChatHistory();
    chatHistory.AddUserMessage("What is the special soup and its price?");

    var promptExecutionSettings = new PromptExecutionSettings
    {
    FunctionChoiceBehavior = FunctionChoiceBehavior.Auto(options: new()
    {
    RetainArgumentTypes = true
    }),
    ExtensionData = new Dictionary<string, object>
    {
    { "temperature", 0 },
    { "max_tokens_to_sample", 1024 } // Required parameter for Anthropic models
    }
    };

    var messageContent = await chatCompletionService
    .GetChatMessageContentAsync(chatHistory, promptExecutionSettings, kernel);
    Console.WriteLine(messageContent.Content);

    // Expected output : Today's special soup is Clam Chowder and it costs $9.99.





Complete sample code



Please feel free to reach out on twitter @roamingcode

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten AWS Bedrock anthropic claude tool call integration with microsoft semantic kernel

Thematisch verwandte Begriffe: Bedrock, anthropic, claude, tool · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-77259 | MCP Atlassian is a Model Context Protocol (MCP) server for Atlassian pro…
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick