Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

Building an AI Assistant in C# with Cross‑Language Plugins

说明与用途

使用 WeavePort 在 C# 中构建 AI 助手,集成现有的 Python/TypeScript 插件,无需重写代码,保持工作流控制和安全性。

问题

Developing a C# AI assistant while reusing existing Python/TypeScript libraries without rewriting them, while maintaining control over workflow, security, and lifecycle.

结果

WeavePort enables seamless integration of cross‑language plugins, preserving application control, security, and lifecycle management while avoiding code duplication.

工作流

  • 1. Identify a capability to replace (e.g., proposal scoring).
  • 2. Create a plugin in the target language (Python) exposing a function (strategy.evaluate).
  • 3. Register the plugin with WeavePort and bind it to a tenant/knowledge profile.
  • 4. In C# host, instantiate LocalPluginClient and call CallAsync with request data.
  • 5. Plugin receives request, calls host APIs (e.g., knowledge.read) via context.call_host.
  • 6. Plugin computes scores and returns a typed result.
  • 7. Host validates the result and commits it to application state.
  • 8. WeavePort manages worker lifecycle, timeouts, and cleanup automatically.

证据

WeavePort is an open‑source plugin runtime for .NET.

来源

Python plugins run in Python processes. TypeScript plugins run through Node.

The host decides which records that grant permits.

  • 记录日期: 2026-09-20T10:45:30.955Z