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

  • Universal: Both coding, chatting, one Agent class handles them all!
  • Simplicity First: Ease of use and minimal boilerplate.
  • Sharable Tool States: 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.

Roadmap

  • Basic universal agent framework.
  • Remove guided_grammar restriction, allow general LLM usage (DeepSeek API, GPT3.5/4/4o API, Qwen API, etc. )
  • More intuitive simplified examples, alowing hands-on try-outs.
  • RAG-based memory module.

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

Star History

Star History Chart

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.1a0.tar.gz (15.8 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.1a0-py2.py3-none-any.whl (18.5 kB view details)

Uploaded Python 2Python 3

File details

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

File metadata

  • Download URL: coreagent-0.1.1a0.tar.gz
  • Upload date:
  • Size: 15.8 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.1a0.tar.gz
Algorithm Hash digest
SHA256 633b1c348cfc50c4025778700df7261343a441f888ffdde48ab677b0e63feaad
MD5 71bcd3a8b567e14abe17cb5b871d67a3
BLAKE2b-256 4b6038a9ea07dd5f213eb9d7f1154a9ec2c6a38ef4229bbb69f8b83518742775

See more details on using hashes here.

Provenance

The following attestation bundles were made for coreagent-0.1.1a0.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.1a0-py2.py3-none-any.whl.

File metadata

  • Download URL: coreagent-0.1.1a0-py2.py3-none-any.whl
  • Upload date:
  • Size: 18.5 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.1a0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d3373cfa75679958396328e63ef8414de3655892f14594d50f7eef86f9f6eff5
MD5 afb2596572e46a95317981e5c8856095
BLAKE2b-256 9a151b8370d87fd69529bf324b6b8be52ac88407e72d8714bfa97c7db03fc9b2

See more details on using hashes here.

Provenance

The following attestation bundles were made for coreagent-0.1.1a0-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