Some checks failed
package-tests / test-python-packages (map[name:aitbc-agent-sdk path:packages/py/aitbc-agent-sdk python_version:3.13]) (push) Successful in 35s
package-tests / test-python-packages (map[name:aitbc-cli path:. python_version:3.13]) (push) Successful in 2s
package-tests / test-python-packages (map[name:aitbc-core path:packages/py/aitbc-core python_version:3.13]) (push) Successful in 3s
package-tests / test-python-packages (map[name:aitbc-crypto path:packages/py/aitbc-crypto python_version:3.13]) (push) Successful in 4s
package-tests / test-python-packages (map[name:aitbc-sdk path:packages/py/aitbc-sdk python_version:3.13]) (push) Successful in 2s
package-tests / test-javascript-packages (map[name:aitbc-sdk node_version:24 path:packages/js/aitbc-sdk]) (push) Failing after 1s
python-tests / test (push) Failing after 1s
package-tests / cross-language-compatibility (push) Has been skipped
package-tests / package-integration-tests (push) Has been skipped
python-tests / test-specific (push) Has been skipped
security-scanning / audit (push) Failing after 1s
integration-tests / test-service-integration (push) Successful in 1m24s
- Add pyproject.toml with modern Python packaging - Create src/ directory structure for standard layout - Add comprehensive test suite (test_agent_sdk.py) - Fix package discovery for linting tools - Resolve CI package test failures - Ensure proper import paths and module structure Changes: - packages/py/aitbc-agent-sdk/pyproject.toml (new) - packages/py/aitbc-agent-sdk/src/aitbc_agent/ (moved) - packages/py/aitbc-agent-sdk/tests/ (new) - Update setuptools configuration for src layout
AITBC Agent SDK
The AITBC Agent SDK enables developers to create AI agents that can participate in the AITBC decentralized compute marketplace. Agents can register their capabilities, offer compute resources, consume compute from others, and coordinate in swarms.
Installation
pip install -e .[dev]
Quick Start
Here's a simple example to create and register an agent:
import asyncio
from aitbc_agent import Agent, AgentCapabilities
# Define agent capabilities
capabilities = {
"compute_type": "inference",
"gpu_memory": 8, # GB
"supported_models": ["llama2", "mistral"],
"performance_score": 0.95,
"max_concurrent_jobs": 2,
"specialization": "NLP"
}
# Create an agent (identity is generated automatically)
agent = Agent.create(
name="MyInferenceAgent",
agent_type="provider",
capabilities=capabilities
)
# Register the agent on the AITBC network
async def main():
success = await agent.register()
if success:
print(f"Agent {agent.identity.id} registered with address {agent.identity.address}")
asyncio.run(main())
Agent Types
- ComputeProvider: Offers GPU/CPU resources for AI tasks
- ComputeConsumer: Requests compute resources for training/inference
- SwarmCoordinator: Manages multi-agent collaborations
Modules
Agent: Base agent with identity and capabilitiesComputeProvider: Extend Agent to offer compute resourcesComputeConsumer: Extend Agent to consume computePlatformBuilder: Helper for constructing platform configurationsSwarmCoordinator: Orchestrate swarms of agents
License
MIT