Skip to main content

PyPI version License: MIT Downloads LinkedIn

BaseAgent

BaseAgent is an abstract base class designed to support the development of various agent-based systems. It provides a structured approach to creating agents with initialization, execution, and cleanup phases.

Installation

To install BaseAgent, you can use pip directly from GitHub:

pip install git+https://github.com/chigwell/BaseAgent.git

Usage

BaseAgent is intended to be subclassed by other classes that implement specific agent behaviors. Here's an example of how to create a concrete agent:

from base_agent import BaseAgent

class MyAgent(BaseAgent):
    def initialize(self, config):
        print("Initializing with config:", config)

    def execute(self, task):
        print("Executing task:", task)
        return "Task Completed"

    def finalize(self):
        print("Cleaning up resources.")

# Example usage
if __name__ == "__main__":
    agent = MyAgent()
    agent.initialize(config={"setting": "value"})
    result = agent.execute(task="Example Task")
    print(result)
    agent.finalize()

This example demonstrates the basic structure of an agent that can be built using the BaseAgent framework.

Contributing

Contributions, issues, and feature requests are welcome! Feel free to check the issues page.

License

This project is licensed under the MIT License.

Metadata

Release files for base-agent 2025.5.180920

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for base-agent 2025.5.180920
File Size Uploaded Provenance Actions
base_agent-2025.5.180920.tar.gz 3.3 kB Without provenance Details for base_agent-2025.5.180920.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for base-agent 2025.5.180920
File Interpreter ABI Platform Actions
base_agent-2025.5.180920-py3-none-any.whl Python 3 none any Details for base_agent-2025.5.180920-py3-none-any.whl

Total release size: 7.3 kB

Release files / base_agent-2025.5.180920.tar.gz

Download URL base_agent-2025.5.180920.tar.gz
Size 3.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d4eb65f8e445edb0090626758f13064457722d5e5c20021bbd807e92b661a8fc
BLAKE2b-256 checksum
How to use checksums
6a6c27fd905821270dcaeac94250646cc2cc596e78b49de15b7e007afa65bac5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.11

Release files / base_agent-2025.5.180920-py3-none-any.whl

Download URL base_agent-2025.5.180920-py3-none-any.whl
Size 4.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1d7bec851b817072ef55e91f40c79712709a19b9a6febee0f5105061500cb3af
BLAKE2b-256 checksum
How to use checksums
c45df9fbd1458cdd62dbbfc4f4a08c223aeac4168a45373ac6b85b895675d1dd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.11

Security for base-agent 2025.5.180920

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.

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