Class SheetizeAI
Class SheetizeAI
Sheetize AI 是一个基于 AI 的 .NET SDK,允许开发者和高级用户创建、编辑和分析电子表格。
public class SheetizeAI继承
继承成员
- object.GetType() ,
- object.MemberwiseClone() ,
- object.ToString() ,
- object.Equals(object?) ,
- object.Equals(object?, object?) ,
- object.ReferenceEquals(object?, object?) ,
- object.GetHashCode()
示例
[C#]
public static class SheetizeAIExample
{
private static string ApiKey = "";
private static string ApiUrl = "https://llm.professionalize.com/v1/chat/completions";
public async static Task ExampleBuildSpreadsheet()
{
Configuration.Model = Model.Recommended;
SheetizeAI sheetizeAI = new SheetizeAI(ApiKey, true, ApiUrl);
sheetizeAI.SetLicense("Sheetize.AI.lic");
await sheetizeAI.BuildSpreadsheet("C:\\Shift_Work_Calendar.xlsx", "C:\\Shift_Work_Calendar_Modified.xlsx", "Change the value of cell A1 to Testing" , null);
}
}方法
生成给定电子表格文件的概览文本
public async Task SpreadsheetSummary(string filePath, TextWriter writer, string password = null)
public async Task<string> SpreadsheetSummary(string filePath, string password = null)为给定电子表格文件生成 Excel 公式
public async Task<string> GetExcelFormula(string filePath, string question, string password = null)
public async Task GetExcelFormula(string filePath, string question, TextWriter writer, string password = null)回答关于给定电子表格文件的问题
public async Task SpreadsheetQuestion(string filePath, string question, TextWriter writer, string password = null)
public async Task<string> SpreadsheetQuestion(string filePath, string question, string password = null)根据需求创建新的电子表格文件
public async Task BuildSpreadsheet(string outputFilePath, string request, string password = null)修改电子表格文件的数据
public async Task BuildSpreadsheet(string filePath, string outputFilePath, string request, string password = null)命名空间: Sheetize.AI | 程序集: Sheetize.AI.dll