Skip to main content

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

Metadata

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)

Source distribution for agenthub-py 0.1.1
File Size Uploaded Provenance Actions
agenthub_py-0.1.1.tar.gz 3.4 kB Without provenance Details for agenthub_py-0.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for agenthub-py 0.1.1
File Interpreter ABI Platform Actions
agenthub_py-0.1.1-py3-none-any.whl Python 3 none any Details for agenthub_py-0.1.1-py3-none-any.whl

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

Security for agenthub-py 0.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page