IBeam.Ai
2.11.0
See the version list below for details.
dotnet add package IBeam.Ai --version 2.11.0
NuGet\Install-Package IBeam.Ai -Version 2.11.0
<PackageReference Include="IBeam.Ai" Version="2.11.0" />
<PackageVersion Include="IBeam.Ai" Version="2.11.0" />
<PackageReference Include="IBeam.Ai" />
paket add IBeam.Ai --version 2.11.0
#r "nuget: IBeam.Ai, 2.11.0"
#:package IBeam.Ai@2.11.0
#addin nuget:?package=IBeam.Ai&version=2.11.0
#tool nuget:?package=IBeam.Ai&version=2.11.0
IBeam.Ai
IBeam.Ai contains the core AI agent, tool, and MCP contracts shared by IBeam-backed applications, plus the vendor-neutral outbound completion contracts under IBeam.Ai.Completions.
Outbound Completions (IBeam.Ai.Completions)
Two halves live in this package family:
- Inbound MCP hosting (external agents calling into an IBeam app) — the contracts below, registered via
AddIBeamAiServices. - Outbound model invocation (an IBeam app calling a model) —
IAiCompletionService, registered viaAddIBeamAiCompletions(configuration)fromIBeam.Ai.Servicesplus a provider adapter such asIBeam.Ai.Anthropic.
Consumers declare providers and named profiles under IBeam:Ai in configuration (model, effort, max tokens, credit bucket) and inject IAiCompletionService. Switching a feature between models or effort levels is a configuration edit, not a code change. Failure is modelled, not thrown: results carry AiCompletionStatus (Ok, NotConfigured, Refused, Unavailable, Malformed, Filtered, Denied) so a missing API key, a refusal, and a rate limit can each be handled differently. Profiles with a CreditBucketKey are credit-metered through ILicenseCreditGate when it is registered: reserve the estimate, settle actual token usage, release on failure.
dotnet add package IBeam.Ai
When To Use This
- You need agent tool definitions in shared code.
- You are building MCP tools without taking an ASP.NET Core dependency.
- You want a common
AgentToolContextfor user, tenant, API credential, and agent identity data. - You are implementing your own MCP orchestration or access policy.
Most host applications should reference IBeam.Ai.Api, which brings the service and core packages transitively.
What This Package Contains
| Area | Type(s) | Purpose |
|---|---|---|
| Tool definition | AgentToolDefinition, AgentToolHandler |
Describes a callable agent tool and its handler. |
| Tool context | AgentToolContext, IAgentToolContextFactory |
Carries principal, services, agent key, tenant ID, and API credential ID. |
| Tool catalog | IAgentToolCatalog |
Exposes registered tools. |
| Access policy | IAgentToolAccessPolicy, AgentToolAccessResult |
Allows hosts to decide whether a tool can run. |
| MCP service contract | IAgentMcpService |
Handles MCP JSON-RPC payloads. |
| MCP models | McpJsonRpcResponse, McpToolDefinition, McpToolCallResult, error codes |
Shared protocol models. |
| Schema helpers | AgentToolSchemas |
Convenience methods for JSON input schemas. |
Architecture Fit
API <-- DTO/model object --> Service <-- Entity --> Repository
Agent tools are another API surface. A tool handler should call a service. It should not bypass the service layer to call repositories or embed business permissions directly.
Code Example
var tool = new AgentToolDefinition(
name: "hubbsly.work.list_cards",
description: "List work cards visible to the current agent.",
inputSchema: AgentToolSchemas.EmptyObject(),
handler: async (context, arguments, ct) =>
{
var service = context.Services.GetRequiredService<IWorkItemService>();
return await service.ListAsync(ct);
},
moduleKey: "work",
requiredScopes: [ "api-scope:work" ]);
Access Control
The core package only defines the policy contract. The default service package policy checks authenticated claims for required scopes/roles/permissions. Applications can replace IAgentToolAccessPolicy to call IBeam AccessControl, Licensing, Identity, or a custom authorization system.
Data Storage
This package does not create tables, repositories, containers, or buckets.
Extended Docs And Agent Guidance
- AI prompt:
.agent/prompt.md - Root implementation guide:
../.agent/implementation-guide.md - AI enablement kit:
../IBeam.AI.Enablement/README.md - Agent/API migration prompt:
../IBeam.AI.Enablement/examples/consuming-api-migration-prompt.md - Service operation permissions:
../docs/service-operation-permissions.md
Agents should keep tool handlers thin and route real work through operation-tagged services.
Version Notes
- Targets
net10.0. - Package version is assigned by the repository release workflow.
| 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
- No dependencies.
NuGet packages (3)
Showing the top 3 NuGet packages that depend on IBeam.Ai:
| Package | Downloads |
|---|---|
|
IBeam.Identity.Api
IBeam modular framework components for .NET APIs and services. |
|
|
IBeam.Ai.Services
Agent tool registry, authorization, and MCP service orchestration for IBeam-backed applications. |
|
|
IBeam.Ai.Anthropic
Anthropic (Claude) provider adapter for IBeam.Ai completion profiles. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.12.3 | 0 | 9/18/2026 |
| 2.12.2 | 155 | 9/11/2026 |
| 2.12.1 | 123 | 9/11/2026 |
| 2.12.0 | 122 | 9/10/2026 |
| 2.11.0 | 197 | 8/30/2026 |
| 2.10.1 | 172 | 8/23/2026 |
| 2.10.0 | 138 | 8/23/2026 |
| 2.9.45 | 192 | 8/10/2026 |
| 2.9.44 | 171 | 8/3/2026 |
| 2.9.43 | 130 | 7/29/2026 |
| 2.9.1 | 143 | 7/23/2026 |
| 2.9.0 | 143 | 7/21/2026 |
| 2.8.2 | 128 | 7/21/2026 |
| 2.8.1 | 131 | 7/21/2026 |
| 2.8.0 | 126 | 7/21/2026 |
| 2.7.0 | 126 | 7/21/2026 |
| 2.6.0 | 133 | 7/20/2026 |
| 2.5.0 | 127 | 7/17/2026 |
| 2.4.2 | 130 | 7/16/2026 |
| 2.4.1 | 133 | 7/14/2026 |