Ananke.Federation.Anthropic
0.8.1
dotnet add package Ananke.Federation.Anthropic --version 0.8.1
NuGet\Install-Package Ananke.Federation.Anthropic -Version 0.8.1
<PackageReference Include="Ananke.Federation.Anthropic" Version="0.8.1" />
<PackageVersion Include="Ananke.Federation.Anthropic" Version="0.8.1" />
<PackageReference Include="Ananke.Federation.Anthropic" />
paket add Ananke.Federation.Anthropic --version 0.8.1
#r "nuget: Ananke.Federation.Anthropic, 0.8.1"
#:package Ananke.Federation.Anthropic@0.8.1
#addin nuget:?package=Ananke.Federation.Anthropic&version=0.8.1
#tool nuget:?package=Ananke.Federation.Anthropic&version=0.8.1
Ananke.Federation.Anthropic
Claude Managed Agents adapter for Ananke Federation. Deploy Ananke workflow manifests to Anthropic Claude, monitor running managed agents, and route executions through Claude-hosted models.
⚠️ Preview — depends on Anthropic Beta API
ClaudeDeployerandClaudeManagedAgentsClientcall the Anthropic Managed Agents Beta endpoints (/v1/environments,/v1/agents) and send theanthropic-beta: agents-2025-05-14header on every request. The Beta API shape may change without notice. When the official Anthropic .NET SDK exposes typed managed-agents support,ClaudeManagedAgentsClientwill be removed and replaced with the SDK equivalent. Pin your dependency on this package to a specific minor version until the API is stable.
What this package provides
| Type | Purpose |
|---|---|
ClaudeDeployer |
IFederationDeployer — creates/updates/deletes Claude managed agents from a WorkflowManifest |
ClaudeWorkflowHost |
IWorkflowHost — manages cells as Claude managed agents; Start deploys, StopAsync tears down |
ClaudeRemoteCellMonitor |
IRemoteCellMonitor — polls health and metrics from Claude managed agent deployments |
ClaudeCredentialProvider |
IFederationCredentialProvider — resolves the Anthropic API key from config or ANTHROPIC_API_KEY env var |
ClaudeModelMapper |
IModelMapper — maps manifest model references to Claude model identifiers; Anthropic models pass through directly |
ClaudeToolSchemaTranslator |
Translates ToolDefinitions to Claude tool_use JSON fragments (custom tools and built-in tools) |
ClaudeSystemPromptCompiler |
ISystemPromptCompiler — compiles an XML-structured system prompt from a manifest for Claude |
ClaudeValidator |
IPlatformValidator — live credential and tool compatibility checks against the Anthropic API |
Authentication
This adapter authenticates with an API key. Pass it directly or rely on the
ANTHROPIC_API_KEY environment variable:
// From environment variable (recommended for CI/production)
var credentials = new ClaudeCredentialProvider();
// Or explicit key
var credentials = new ClaudeCredentialProvider(apiKey: "sk-ant-...");
Quick start
var credentials = new ClaudeCredentialProvider();
var registry = new InMemoryDeploymentRegistry();
var deployer = new ClaudeDeployer(credentials, registry);
DeploymentRecord record = await deployer.DeployAsync(manifest, toolKit, new DeployOptions
{
DeploymentId = "my-agent-v1",
Platform = "claude"
});
Tool translation
ClaudeToolSchemaTranslator handles both custom tools and Claude's built-in tools.
Use the Capabilities constants for discoverability:
var tool = ToolBuilder.Define("web_search")
.PlatformNative("claude", ClaudeToolSchemaTranslator.Capabilities.WebSearch)
.Build();
Well-known Claude built-in capabilities: web_search, code_execution,
computer_use, text_editor, bash. Any other string is passed through verbatim.
Model mapping
ClaudeModelMapper maps any Ananke model reference to its Claude equivalent.
Anthropic models pass through unchanged; OpenAI and Google models are mapped to
the nearest Claude equivalent (claude-sonnet-4, claude-haiku-3-5, etc.).
System prompt format
ClaudeSystemPromptCompiler emits XML-structured prompts following Anthropic's
recommended format for agentic workflows, including <tools>, <context>, and
<instructions> sections derived from the manifest.
Monitoring
ClaudeRemoteCellMonitor currently returns baseline health metrics. Anthropic
monitoring API integration for latency, token usage, and error rate trend data
will be added when the API becomes available.
Platform adapter status
| Method | Status | Notes |
|---|---|---|
ClaudeDeployer.ValidateAsync |
✅ Implemented | Live credential + tool compatibility checks |
ClaudeDeployer.DeployAsync |
✅ Preview | Calls Beta endpoints via ClaudeManagedAgentsClient; pinned to agents-2025-05-14 |
ClaudeDeployer.TeardownAsync |
✅ Preview | Deletes agents then environment via Beta endpoints |
ClaudeRemoteCellMonitor.GetHealthAsync |
⚠️ Stub | Returns safe defaults; Anthropic monitoring API pending |
ClaudeRemoteCellMonitor.GetMetricsAsync |
⚠️ Stub | Returns safe defaults; Anthropic monitoring API pending |
ClaudeWorkflowHost.StartAsync |
✅ Preview | Delegates to ClaudeDeployer.DeployAsync |
ClaudeWorkflowHost.StopAsync |
✅ Preview | Delegates to ClaudeDeployer.TeardownAsync |
Preview methods call ClaudeManagedAgentsClient which targets the Anthropic
Beta REST API directly (no SDK dependency). Once the official SDK stabilises this
surface, the internal client will be dropped and these methods will be promoted to
✅ Implemented.
| 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
- Ananke.Federation (>= 0.8.1)
- Ananke.Orchestration.Anthropic (>= 0.8.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.