I Built an SDK for HexTelegram Development
说明与用途
开发者现在拥有 htsdk SDK,可快速为 HexTelegram 构建插件、代理和身份验证提供程序。
问题
Developers needed a way to build custom agents, plugins, and auth providers for HexTelegram without complex setup.
结果
Developers can now quickly build and deploy plugins and agents for HexTelegram using the htsdk, reducing setup time and simplifying integration.
工作流
- 1. Install the SDK via npm using the GitHub URL:
npm install github:HexZoNetwork/htsdk - 2. Import the SDK functions:
const { definePlugin, createAgent } = require('htsdk') - 3. Define a plugin using
definePluginand export it. - 4. Create a custom agent with
createAgentthat speaks the OpenAI-compatible protocol. - 5. Optionally define custom auth providers via
defineProviderinauth-providers.js. - 6. Use example plugins in
examples/to test functionality.
证据
htsdk is the public SDK for HexTelegram (HTG)
Install (no npm publish needed)
npm install github:HexZoNetwork/htsdk
const { definePlugin, createAgent } = require('htsdk')
- 记录日期: 2026-10-13T14:56:11.581Z