初始化一些参考的接口

This commit is contained in:
PeterZhong 2025-04-27 11:32:44 +08:00
parent a003820952
commit 3ec94c7fa1
7 changed files with 34 additions and 0 deletions

View File

@ -96,6 +96,19 @@
<CopyLocal>False</CopyLocal>
<Private>False</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<Folder Include="client\" />
<Folder Include="resource\" />
<Folder Include="server\" />
<Folder Include="ui\preference\" />
</ItemGroup>
<ItemGroup>
<Page Update="ui\Dockpane1.xaml">
<Generator>MSBuild:Compile</Generator>
<XamlRuntime>Wpf</XamlRuntime>
<SubType>Designer</SubType>
</Page>
</ItemGroup>
<Import Project="C:\Users\PeterZhong\AppData\Local\Programs\ArcGIS\Pro\bin\Esri.ProApp.SDK.Desktop.targets" Condition="Exists('C:\Users\PeterZhong\AppData\Local\Programs\ArcGIS\Pro\bin\Esri.ProApp.SDK.Desktop.targets') AND !Exists('Esri.ArcGISPro.Extensions.targets')" />
</Project>

14
host/llm/Llm.cs Normal file
View File

@ -0,0 +1,14 @@
using System.Collections.Generic;
namespace LinkToolAddin.host.llm;
public interface Llm
{
public string model { get; set; }
public string temperature { get; set; }
public string top_p { get; set; }
public string max_tokens { get; set; }
public IAsyncEnumerable<string> SendChatStreamAsync(string message);
public IAsyncEnumerable<string> SendApplicationStreamAsync(string message);
}

View File

@ -0,0 +1,7 @@
namespace LinkToolAddin.message;
public interface MessageListItem
{
string role { get; set; }
string content { get; set; }
}