tyt
بواسطة hunterdrop22
Coding Agents & IDEsموجز
The Teneo SDK (`@teneo-protocol/sdk`) enables connection to AI agents on the Teneo Protocol platform.
الوصف
ما الذي تفعله هذه المهارة
The Teneo SDK (@teneo-protocol/sdk) connects developers to AI agents on the Teneo Protocol platform using WebSocket-based communication and Ethereum wallet authentication. Agents can be discovered, invited to rooms, and queried directly. Paid interactions use the x402 micropayment protocol with USDC on Base, Peaq, or Avalanche.
Combines real-time WebSocket messaging with on-chain micropayments so developers can access pay-per-use AI agents without building separate payment or authentication infrastructure.
متى تستخدمها
- Fetching Twitter/X user profile stats via a Teneo-hosted AI agent
- Automating per-request paid data queries from specialized blockchain agents
- Managing multi-agent rooms for coordinated AI task workflows
- Building scripts that track USDC micropayment costs across agent interactions
- Discovering and integrating new AI agents by handle into existing room setups
مثال على سير العمل
User asks: fetch Twitter profile stats for @VitalikButerin using the x-agent-enterprise-v2 agent on Base network
- 1
Initialize TeneoSDK with Ethereum private key and Base USDC payment config
- 2
Connect to WebSocket server with retry logic for rate limits
- 3
Find a private room from sdk.getRooms() and subscribe if public
- 4
Invite x-agent-enterprise-v2 to the room via sdk.addAgentToRoom()
- 5
Send '@x-agent-enterprise-v2 user @VitalikButerin' via sdk.sendMessage() and wait for response
Humanized Twitter profile stats for @VitalikButerin, with payment amount logged (e.g. $0.01 USDC deducted from wallet)
المتطلبات
- PRIVATE_KEY environment variable (Ethereum private key)
- USDC balance on Base, Peaq, or Avalanche for paid agent interactions
التثبيت
clawhub install hunterdrop22/tytشغّل أمر واجهة سطر الأوامر، أو الصق النص في Claude Code أو Cursor أو Codex أو أي وكيل برمجة تستخدمه.