คลาส SheetizeAI
คลาส SheetizeAI
Sheetize AI คือ SDK .NET ที่ขับเคลื่อนด้วย AI ช่วยให้นักพัฒนาและผู้ใช้ระดับสูงสร้าง แก้ไข และวิเคราะห์สเปรดชีท
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)Namespace: Sheetize.AI | Assembly: Sheetize.AI.dll