AI SDK Gateway Provider 完全指南:用统一网关接入多厂商大模型
2026/9/12 21:33:01
在工作流开发中,涉及到多个项目的操作与配置。以下是详细步骤:
-实现ApplicationInterface类:
using System; using System.IO; using System.Windows.Controls; using System.Activities; namespace LeadResponse { public static class ApplicationInterface { public static FollowUpLead _app { get; set; } public static void AddAssignment(LeadGenerator.Assignment a) { if (_app != null) _app.lstLeads.Dispatcher.BeginInvoke (new Action(() => _app.AddAssignment(a))); } public static void UpdateAssignment(LeadGenerator.Assignment a) { if (_app != null) _app.lstL