The Simplest Agent framework.
Project description
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:
- Define a Python class for your tool.
- 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.
- Instantiate your tool class.
- Register the instance with the
ChatSessionusing theregister_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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5dce2159e7f0ff1239d7300079af8afd2bf3fd7d9e93df2026320cd343c28458
|
|
| MD5 |
a332cd972529a41484573b2e7f58f14f
|
|
| BLAKE2b-256 |
cfd7362841ab4f4bb8b7fd165f4d0370f1c8fd18ee3cf65fe62b9cba93bb61d3
|
Provenance
The following attestation bundles were made for coreagent-0.1.0a0.tar.gz:
Publisher:
workflow.yml on CoreAgent-Project/CoreAgent
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
coreagent-0.1.0a0.tar.gz -
Subject digest:
5dce2159e7f0ff1239d7300079af8afd2bf3fd7d9e93df2026320cd343c28458 - Sigstore transparency entry: 185718680
- Sigstore integration time:
-
Permalink:
CoreAgent-Project/CoreAgent@0f42e8167716d7924366629e3ef043b5287b0e10 -
Branch / Tag:
refs/tags/v0.1.0-alpha - Owner: https://github.com/CoreAgent-Project
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@0f42e8167716d7924366629e3ef043b5287b0e10 -
Trigger Event:
push
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2e3024aef181ed50fde01a4a19cf38c246d42c7a8ca77f2bc20b190d50e0e606
|
|
| MD5 |
cdaa7884d31efa2cb985f6c160d71c81
|
|
| BLAKE2b-256 |
d9b65eb3cf7cec82f42832c87a8c275e3f0d349e4b68310582b32feac92ea341
|
Provenance
The following attestation bundles were made for coreagent-0.1.0a0-py2.py3-none-any.whl:
Publisher:
workflow.yml on CoreAgent-Project/CoreAgent
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
coreagent-0.1.0a0-py2.py3-none-any.whl -
Subject digest:
2e3024aef181ed50fde01a4a19cf38c246d42c7a8ca77f2bc20b190d50e0e606 - Sigstore transparency entry: 185718681
- Sigstore integration time:
-
Permalink:
CoreAgent-Project/CoreAgent@0f42e8167716d7924366629e3ef043b5287b0e10 -
Branch / Tag:
refs/tags/v0.1.0-alpha - Owner: https://github.com/CoreAgent-Project
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@0f42e8167716d7924366629e3ef043b5287b0e10 -
Trigger Event:
push
-
Statement type: