Skip to main content

The Simplest Agent framework.

Project description

CoreAgent

Simplest Agent Framework

| Documentation | Discord |


CoreAgent is a lightweight and intuitive framework designed to make building intelligent agents straightforward. Focusing on simplicity, CoreAgent allows you to quickly integrate language models with custom tools to create powerful and versatile applications.

Key Features

  • Simplicity First: Ease of use and minimal boilerplate.
  • Multi-Agent: Share the same tool instances states across multiple agents.
  • Built-in Tools: Lots of built-in tools to get you started fast!

Installation

To install CoreAgent, simply use pip:

pip install coreagent

Getting Started

Here's a basic example demonstrating how to use CoreAgent:

from coreagent import Agent
import urllib.request
import json

class IPTool:
  def get_my_ip(self) -> str:
    j = json.loads(urllib.request.urlopen("https://api.ipify.org/?format=json").read().decode())
    return j['ip']

s = Agent()
s.register_tool(IPTool())

s.chat("What's my IP address? ")

Registering Tools

CoreAgent makes it easy to integrate your own custom functionalities as tools. To register a tool, you simply need to:

  1. Define a Python class for your tool.
  2. Implement the methods you want to expose to the agent. Use docstrings to provide descriptions for your methods. These descriptions can be used by the agent to understand how to use the tool.
  3. Instantiate your tool class.
  4. Register the instance with the ChatSession using the register_tool() method.

Refer to the example above for a practical demonstration of tool registration.

Contributing

Contributions to CoreAgent are welcome! If you have ideas for improvements, bug fixes, or new features, please feel free to open an issue or submit a pull request.

License

Brought to you by Shanghai Glacies Technologies Co,. LTD.
GNU Lesser General Public License v3.0 https://www.gnu.org/licenses/lgpl-3.0.en.html

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

coreagent-0.1.0a0.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

coreagent-0.1.0a0-py2.py3-none-any.whl (17.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file coreagent-0.1.0a0.tar.gz.

File metadata

  • Download URL: coreagent-0.1.0a0.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for coreagent-0.1.0a0.tar.gz
Algorithm Hash digest
SHA256 5dce2159e7f0ff1239d7300079af8afd2bf3fd7d9e93df2026320cd343c28458
MD5 a332cd972529a41484573b2e7f58f14f
BLAKE2b-256 cfd7362841ab4f4bb8b7fd165f4d0370f1c8fd18ee3cf65fe62b9cba93bb61d3

See more details on using hashes here.

Provenance

The following attestation bundles were made for coreagent-0.1.0a0.tar.gz:

Publisher: workflow.yml on CoreAgent-Project/CoreAgent

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file coreagent-0.1.0a0-py2.py3-none-any.whl.

File metadata

  • Download URL: coreagent-0.1.0a0-py2.py3-none-any.whl
  • Upload date:
  • Size: 17.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for coreagent-0.1.0a0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 2e3024aef181ed50fde01a4a19cf38c246d42c7a8ca77f2bc20b190d50e0e606
MD5 cdaa7884d31efa2cb985f6c160d71c81
BLAKE2b-256 d9b65eb3cf7cec82f42832c87a8c275e3f0d349e4b68310582b32feac92ea341

See more details on using hashes here.

Provenance

The following attestation bundles were made for coreagent-0.1.0a0-py2.py3-none-any.whl:

Publisher: workflow.yml on CoreAgent-Project/CoreAgent

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page