chore: 理顺 Core/Web 命名空间,并显式列出 Core 编译文件。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
|
|
||||||
namespace MAF1.Agents;
|
namespace MAF1.Core.Agents;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 一次 Agent 执行的统一结果。网页编排器和进程外插件都用这套字段,方便画布把输出接到下一节点。
|
/// 一次 Agent 执行的统一结果。网页编排器和进程外插件都用这套字段,方便画布把输出接到下一节点。
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
|
using MAF1.Core.Agents;
|
||||||
using MAF1.Tools;
|
using MAF1.Tools;
|
||||||
using MAF1.Utils;
|
using MAF1.Utils;
|
||||||
using Microsoft.Agents.AI;
|
using Microsoft.Agents.AI;
|
||||||
|
|||||||
@@ -1,3 +1,4 @@
|
|||||||
|
using MAF1.Core.Agents;
|
||||||
using MAF1.Tools;
|
using MAF1.Tools;
|
||||||
using MAF1.Utils;
|
using MAF1.Utils;
|
||||||
using Microsoft.Agents.AI;
|
using Microsoft.Agents.AI;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using MAF1.Agents;
|
using MAF1.Core.Agents;
|
||||||
|
|
||||||
namespace MAF1.Decisions;
|
namespace MAF1.Decisions;
|
||||||
|
|
||||||
|
|||||||
@@ -4,9 +4,27 @@
|
|||||||
<TargetFramework>net10.0</TargetFramework>
|
<TargetFramework>net10.0</TargetFramework>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<RootNamespace>MAF1</RootNamespace>
|
<RootNamespace>MAF1.Core</RootNamespace>
|
||||||
|
<EnableDefaultCompileItems>false</EnableDefaultCompileItems>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Include="Agents\AgentStepResult.cs" />
|
||||||
|
<Compile Include="Agents\FileCity\CityExtraction.cs" />
|
||||||
|
<Compile Include="Agents\FileCity\FileCityAgent.cs" />
|
||||||
|
<Compile Include="Agents\Weather\WeatherAgent.cs" />
|
||||||
|
<Compile Include="Decisions\DecisionModels.cs" />
|
||||||
|
<Compile Include="PluginContract\PluginManifest.cs" />
|
||||||
|
<Compile Include="PluginContract\PluginStdio.cs" />
|
||||||
|
<Compile Include="Tools\FileTools.cs" />
|
||||||
|
<Compile Include="Tools\WeatherOptions.cs" />
|
||||||
|
<Compile Include="Tools\WeatherTools.cs" />
|
||||||
|
<Compile Include="Utils\AgentFactory.cs" />
|
||||||
|
<Compile Include="Utils\JsonText.cs" />
|
||||||
|
<Compile Include="Utils\LlmOptions.cs" />
|
||||||
|
<Compile Include="Utils\WindowsConsole.cs" />
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<PackageReference Include="Azure.AI.OpenAI" Version="2.1.0" />
|
<PackageReference Include="Azure.AI.OpenAI" Version="2.1.0" />
|
||||||
<PackageReference Include="Microsoft.Agents.AI.OpenAI" Version="1.19.0" />
|
<PackageReference Include="Microsoft.Agents.AI.OpenAI" Version="1.19.0" />
|
||||||
|
|||||||
@@ -61,7 +61,7 @@ public static class PluginStdio
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public static IConfiguration LoadHostConfiguration()
|
public static IConfiguration LoadHostConfiguration()
|
||||||
{
|
{
|
||||||
string contentRoot = Environment.GetEnvironmentVariable("MAF1_CONTENT_ROOT");
|
string? contentRoot = Environment.GetEnvironmentVariable("MAF1_CONTENT_ROOT");
|
||||||
if (string.IsNullOrWhiteSpace(contentRoot) || !Directory.Exists(contentRoot))
|
if (string.IsNullOrWhiteSpace(contentRoot) || !Directory.Exists(contentRoot))
|
||||||
{
|
{
|
||||||
contentRoot = AppContext.BaseDirectory;
|
contentRoot = AppContext.BaseDirectory;
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<TargetFramework>net10.0</TargetFramework>
|
<TargetFramework>net10.0</TargetFramework>
|
||||||
<ImplicitUsings>enable</ImplicitUsings>
|
<ImplicitUsings>enable</ImplicitUsings>
|
||||||
<Nullable>enable</Nullable>
|
<Nullable>enable</Nullable>
|
||||||
<RootNamespace>MAF1</RootNamespace>
|
<RootNamespace>MAF1.Web</RootNamespace>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
using MAF1.PluginContract;
|
using MAF1.PluginContract;
|
||||||
using MAF1.Web;
|
using MAF1.Web.Web;
|
||||||
|
|
||||||
namespace MAF1.Plugins;
|
namespace MAF1.Plugins;
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
using MAF1.PluginContract;
|
using MAF1.PluginContract;
|
||||||
|
|
||||||
namespace MAF1.Web;
|
namespace MAF1.Web.Web;
|
||||||
|
|
||||||
/// <summary>画布上一个端口的元数据,前端用来渲染圆点和检查器文案。</summary>
|
/// <summary>画布上一个端口的元数据,前端用来渲染圆点和检查器文案。</summary>
|
||||||
public sealed class PortInfo
|
public sealed class PortInfo
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ using MAF1.Agents.Weather;
|
|||||||
using MAF1.Plugins;
|
using MAF1.Plugins;
|
||||||
using MAF1.Tools;
|
using MAF1.Tools;
|
||||||
using MAF1.Utils;
|
using MAF1.Utils;
|
||||||
|
using MAF1.Web.Web;
|
||||||
using Microsoft.Agents.AI;
|
using Microsoft.Agents.AI;
|
||||||
using Microsoft.Extensions.Configuration;
|
using Microsoft.Extensions.Configuration;
|
||||||
|
|
||||||
|
|||||||
@@ -1,13 +1,13 @@
|
|||||||
using System.Text.Json;
|
using System.Text.Json;
|
||||||
using MAF1.Agents;
|
|
||||||
using MAF1.Agents.FileCity;
|
using MAF1.Agents.FileCity;
|
||||||
using MAF1.Agents.Weather;
|
using MAF1.Agents.Weather;
|
||||||
|
using MAF1.Core.Agents;
|
||||||
using MAF1.Decisions;
|
using MAF1.Decisions;
|
||||||
using MAF1.PluginContract;
|
using MAF1.PluginContract;
|
||||||
using MAF1.Plugins;
|
using MAF1.Plugins;
|
||||||
using Microsoft.Agents.AI;
|
using Microsoft.Agents.AI;
|
||||||
|
|
||||||
namespace MAF1.Web;
|
namespace MAF1.Web.Web;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 网页自己的图执行器(不是 Microsoft Agents AI Workflow)。
|
/// 网页自己的图执行器(不是 Microsoft Agents AI Workflow)。
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
using MAF1.Decisions;
|
|
||||||
using Microsoft.Agents.AI;
|
using Microsoft.Agents.AI;
|
||||||
using Microsoft.Agents.AI.Workflows;
|
using Microsoft.Agents.AI.Workflows;
|
||||||
using MAF1.Agents.FileCity;
|
using MAF1.Agents.FileCity;
|
||||||
|
using MAF1.Decisions;
|
||||||
|
|
||||||
namespace MAF1.Workflows;
|
namespace MAF1.Workflows;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user