Semantic Kernel connectors for Anthropic generation platforms. Contains generation services.
Total Downloads
30.7K
30,724
Published
Oct 29, 2024
2y ago
Get Started
dotnet add package Lost.SemanticKernel.Connectors.Anthropic --version 1.25.0-alpha3
| Product | Versions |
|---|---|
| .NET | |
| .NET Standard |
README
Computer Tool Use
Example
var chatHistory = new ChatHistory();
chatHistory.AddUserMessage("Get mouse coordinates, and tell me x+y as a single number, e.g. '1234'");
var sut = new AnthropicChatCompletionService("claude-3-5-sonnet-20241022", API_KEY, new(beta: ComputerUse_2024_10_22.Beta));
var kernel = new Kernel();
kernel.Plugins.Add(ComputerUse_2024_10_22.ComputerPlugin(new NoOpComputer() // plug your own
{
CursorPosition = (120, 121),
}));
var response = await sut.GetChatMessageContentAsync(chatHistory, kernel: kernel,
executionSettings: new AnthropicPromptExecutionSettings()
{
MaxTokens = AnthropicPromptExecutionSettings.DefaultTextMaxTokens,
// invoke functions automatically
FunctionChoiceBehavior = FunctionChoiceBehavior.Auto(),
});
Debug.Assert(response.Content?.EndsWith("241", StringComparison.InvariantCulture));
Semantic Kernel Overview
- Learn more at the documentation site.
- Join the Discord community.
- Follow the team on Semantic Kernel blog.
- Check out the GitHub repository for the latest updates.
Downloads by Version
Similar & Alternative Packages
Hand-picked matching NuGet libraries based on tags & ecosystem
Depended On By
Find packages that declare this package as a dependency. NuGet does not provide a reverse-dependency endpoint, so candidates are checked on demand.
Adoption Assessment
Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.
This version is marked prerelease. Validate its API and upgrade path before production use.Compatibility metadata lists 2 target frameworks; confirm the exact target used by your application.
Related Guides & Workflows
Learn how to evaluate, integrate, or audit this package in your .NET project.