AbpAgnoSharp 1.0.0
dotnet add package AbpAgnoSharp --version 1.0.0
NuGet\Install-Package AbpAgnoSharp -Version 1.0.0
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AbpAgnoSharp" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AbpAgnoSharp" Version="1.0.0" />
<PackageReference Include="AbpAgnoSharp" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AbpAgnoSharp --version 1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: AbpAgnoSharp, 1.0.0"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package AbpAgnoSharp@1.0.0
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AbpAgnoSharp&version=1.0.0
#tool nuget:?package=AbpAgnoSharp&version=1.0.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
AbpAgnoSharp
AbpAgnoSharp 是一个用于对接 Agno AgentOS 服务的 ABP Framework 集成库。
功能特性
完整的 Agno AgentOS API 支持
- Agent API - 代理管理
- Team API - 团队管理
- Workflow API - 工作流管理
- Knowledge API - 知识库管理
- Traces API - 追踪管理
- Memory API - 记忆管理
- Database API - 数据库管理
基于 WebApiClientCore 的 HTTP 客户端
自动认证处理
支持 JSON 序列化/反序列化(Snake Case)
依赖注入支持
安装
通过 NuGet 安装
dotnet add package AbpAgnoSharp
或通过 Package Manager Console:
Install-Package AbpAgnoSharp
通过项目引用安装
在您的 ABP 项目中添加项目引用:
<ProjectReference Include="..\AbpAgnoSharp\AbpAgnoSharp.csproj" />
配置
在 appsettings.json 中配置 Agno 服务:
{
"AI": {
"Agno": {
"ApiKey": "your-api-key",
"BaseUrl": "http://localhost:7777",
"EnableLogging": false
}
}
}
使用示例
1. 在模块中注册
[DependsOn(typeof(AbpAgnoSharpModule))]
public class YourModule : AbpModule
{
// ...
}
2. 注入并使用 Client
public class YourService : ITransientDependency
{
private readonly AgentClient _agentClient;
public YourService(AgentClient agentClient)
{
_agentClient = agentClient;
}
public async Task GetAgentsAsync()
{
var response = await _agentClient.GetAgents();
// 处理响应
}
}
3. 直接使用 API 接口
public class YourService : ITransientDependency
{
private readonly IAgentApi _agentApi;
public YourService(IAgentApi agentApi)
{
_agentApi = agentApi;
}
public async Task GetAgentsAsync()
{
var response = await _agentApi.GetAgents();
// 处理响应
}
}
API 客户端
项目提供了以下客户端类:
AgentClient- 代理操作TeamClient- 团队操作WorkflowClient- 工作流操作KnowledgeClient- 知识库操作TracesClient- 追踪操作MemoryClient- 记忆操作DatabaseClient- 数据库操作
依赖项
- Volo.Abp (10.0.1)
- WebApiClientCore (2.1.5)
- WebApiClientCore.Extensions.OAuths (2.1.5)
许可证
本项目采用 MIT 许可证。
贡献
欢迎提交 Issue 和 Pull Request!
相关链接
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Volo.Abp (>= 10.0.1)
- WebApiClientCore (>= 2.1.5)
- WebApiClientCore.Extensions.OAuths (>= 2.1.5)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 78 | 1/7/2026 |