I Built an SDK for HexTelegram Development
Описание и применение
Разработчики получили SDK htsdk, позволяющий быстро создавать плагины, агенты и провайдеры аутентификации для 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