AgentHub Python SDK
A lightweight Python framework for building and running AI agents in simulation environments.
Installation
pip install agenthub-py
Quick Start
from agenthub import AgentRunner
from typing import Any, Dict, List
class MyAgent(AgentRunner):
def run(self, input_data: Dict[str, Any] | List[Dict[str, Any]]) -> Dict[str, Any]:
# Preprocess your input_data here and generate the agent response
response = self.generate_agent_result(input_data)
# Return the result in the desired format
result = {"status": "success", "data": response}
return result
# Create and use your agent
agent = MyAgent()
response = agent.run({"message": "Hello, Agent!"})
print(response)
Requirements
- Python 3.8 or higher
License
MIT
Links
Release files for agenthub-py 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| agenthub_py-0.1.1.tar.gz | 3.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agenthub_py-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.5 kB
Release files / agenthub_py-0.1.1.tar.gz
| Download URL | agenthub_py-0.1.1.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2b590030d6f3e9363f8f3bb78d03a52d2850a9205b5ebfc60dfa2804cb7aef85
|
|
BLAKE2b-256 checksum How to use checksums |
ca4d35b0e30a3f27144c91dc0e477371e91094bb2e698debd1b8944642f85878
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.5
|
Release files / agenthub_py-0.1.1-py3-none-any.whl
| Download URL | agenthub_py-0.1.1-py3-none-any.whl |
|---|---|
| Size | 3.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
78f81b7ef61fd422fff7cf36c95cec47b8bbf7573cb9ce2ba1f2b67c452f04a8
|
|
BLAKE2b-256 checksum How to use checksums |
f6094ff1a3e82d482c4a2767189dce84c34806ca244da253657cf8de759f6dd4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.12.5
|