Sigmus.Agent
0.0.2
dotnet add package Sigmus.Agent --version 0.0.2
NuGet\Install-Package Sigmus.Agent -Version 0.0.2
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="Sigmus.Agent" Version="0.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Sigmus.Agent" Version="0.0.2" />
<PackageReference Include="Sigmus.Agent" />
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 Sigmus.Agent --version 0.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Sigmus.Agent, 0.0.2"
#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 Sigmus.Agent@0.0.2
#: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=Sigmus.Agent&version=0.0.2
#tool nuget:?package=Sigmus.Agent&version=0.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Sigmus.Agent
AI Agent 工作流编排模块,基于 SigmusGraph 构建 LLM 多步推理与 Agent 工作流。
功能
- Agent 循环 — 内置 ReAct 风格的思考-行动-观察循环
- 工具注册 —
ToolRegistry支持动态注册/注销工具,提供ToolRegistered/ToolUnregistered事件 - 多 LLM 支持 — 通过
Microsoft.Extensions.AI适配 OpenAI 兼容接口(Doubao、DeepSeek 等) - 会话管理 — 基于 SQLite 持久化 ChatHistory
- YAML 配置驱动 — Agent 流程通过 YAML 定义,与 SigmusGraph 工作流无缝集成
- Cron 调度 — 基于 Cronos 的定时任务支持
- AgentSubject — 多 Agent 实例管理容器
安装
dotnet add package Sigmus.Agent
快速开始
// 创建 Agent Runner(YAML 配置)
var agentRunner = AgentRunnerBuilder.FromYaml("agent.yaml")
.WithLlm(new OpenAIChatClient(apiKey, model))
.Build();
// 注册工具
agentRunner.ToolRegistry.Register("search", async (args) =>
{
var query = args["query"].ToString();
// 执行搜索...
return new ToolResult { Content = result };
});
// 启动
await agentRunner.Start();
依赖
Sigmus.GraphSigmus.CommonSigmus.DatabaseMicrosoft.Extensions.AIYamlDotNetCronos
许可证
MIT © Luufery
| 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
- Cronos (>= 0.8.4)
- Microsoft.Extensions.AI (>= 10.3.0)
- Sigmus.Common (>= 0.0.2)
- Sigmus.Database (>= 0.0.2)
- Sigmus.Graph (>= 0.0.2)
- YamlDotNet (>= 16.3.0)
NuGet packages (1)
Showing the top 1 NuGet packages that depend on Sigmus.Agent:
| Package | Downloads |
|---|---|
|
Sigmus.Subject
SigmusSubject - 上层集成模块,提供内置任务实现、Web API 集成和业务编排 |
GitHub repositories
This package is not used by any popular GitHub repositories.