CrewAI integration for PowerSun.vip — TRON Energy & Bandwidth marketplace for AI agents
Project description
crewai-powersun
CrewAI integration for PowerSun.vip — the TRON Energy & Bandwidth marketplace for AI agents.
Install
pip install crewai-powersun
Quick Start
from crewai import Agent, Task, Crew
from crewai_powersun import PowerSunEstimateCostTool, PowerSunBuyEnergyTool
# Create an agent with PowerSun tools
energy_manager = Agent(
role="TRON Energy Manager",
goal="Minimize transaction costs by renting energy instead of burning TRX",
backstory="Expert in TRON network resource management",
tools=[
PowerSunEstimateCostTool(),
PowerSunBuyEnergyTool(api_key="ps_your_key"),
],
)
# Create a task
task = Task(
description="Estimate cost and buy 65000 energy for address TYourAddress for 1 hour",
agent=energy_manager,
)
crew = Crew(agents=[energy_manager], tasks=[task])
result = crew.kickoff()
Environment Variable
Set POWERSUN_API_KEY to avoid passing the key to each tool:
export POWERSUN_API_KEY=ps_your_key
Available Tools
| Tool | Auth | Description |
|---|---|---|
PowerSunMarketOverviewTool |
No | Market snapshot: prices, availability, stats |
PowerSunEstimateCostTool |
No | Calculate energy rental cost |
PowerSunBuyEnergyTool |
Yes | Purchase energy delegation |
PowerSunGetBalanceTool |
Yes | Account balance and deposit info |
PowerSunGetOrderStatusTool |
Yes | Order status with delegation progress |
Links
- Platform: powersun.vip
- MCP Server: powersun.vip/mcp
- API Docs: powersun.vip/api-docs
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
crewai_powersun-1.0.0.tar.gz
(3.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file crewai_powersun-1.0.0.tar.gz.
File metadata
- Download URL: crewai_powersun-1.0.0.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f7b9bf21f4f8ab1a5f126d53054ad5337b2c334cce582c0b6d11b965032a6ccc
|
|
| MD5 |
c9948002dd14920270acd1fb53c40f90
|
|
| BLAKE2b-256 |
ee2d5c631fc0d50a9c805ce1c3ddd275c09651b63851a443b8eb15055278d079
|
File details
Details for the file crewai_powersun-1.0.0-py3-none-any.whl.
File metadata
- Download URL: crewai_powersun-1.0.0-py3-none-any.whl
- Upload date:
- Size: 4.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e3051cf0c110ccbba9cd0a465c2ef1169616b13ae1e10d9311ecce89fde73801
|
|
| MD5 |
a0e7957d32074a534cebc5b8a52ab8e0
|
|
| BLAKE2b-256 |
b44d041896f5cfbae3d3604590cfe82f819fc07c23ba18088996cf9d5ab3c970
|