IBeam.Ai
2.8.2
See the version list below for details.
dotnet add package IBeam.Ai --version 2.8.2
NuGet\Install-Package IBeam.Ai -Version 2.8.2
<PackageReference Include="IBeam.Ai" Version="2.8.2" />
<PackageVersion Include="IBeam.Ai" Version="2.8.2" />
<PackageReference Include="IBeam.Ai" />
paket add IBeam.Ai --version 2.8.2
#r "nuget: IBeam.Ai, 2.8.2"
#:package IBeam.Ai@2.8.2
#addin nuget:?package=IBeam.Ai&version=2.8.2
#tool nuget:?package=IBeam.Ai&version=2.8.2
IBeam.Ai
IBeam.Ai contains the core AI agent, tool, and MCP contracts shared by IBeam-backed applications.
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 (1)
Showing the top 1 NuGet packages that depend on IBeam.Ai:
| Package | Downloads |
|---|---|
|
IBeam.Ai.Services
Agent tool registry, authorization, and MCP service orchestration for IBeam-backed applications. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.9.1 | 45 | 7/23/2026 |
| 2.9.0 | 102 | 7/21/2026 |
| 2.8.2 | 90 | 7/21/2026 |
| 2.8.1 | 91 | 7/21/2026 |
| 2.8.0 | 91 | 7/21/2026 |
| 2.7.0 | 97 | 7/21/2026 |
| 2.6.0 | 114 | 7/20/2026 |
| 2.5.0 | 109 | 7/17/2026 |
| 2.4.2 | 110 | 7/16/2026 |
| 2.4.1 | 111 | 7/14/2026 |
| 2.4.0 | 123 | 6/24/2026 |
| 2.3.0 | 123 | 6/24/2026 |
| 2.2.0 | 131 | 6/23/2026 |
| 2.1.0 | 137 | 6/23/2026 |