项目概述
LLM Agent framework with Stateful Tools.
项目地址
https://github.com/CoreAgent-Project/CoreAgent
项目页面预览
关键指标
- Stars:27
- 主要语言:Python
- License:未声明
- 最近更新:2025-07-09T22:14:57Z
- 默认分支:main
本站高速下载(国内可用)
- 源码压缩包下载:点击下载(本站镜像)
- SHA256:ced60f1ebc2553aa9c44b56b40d9cd07fb460eff9f814b02b196d0a32e86729a
安装部署要点(README 精选)
Installation
To install CoreAgent, simply use pip:
pip install coreagent
````
## Getting Started
Try out simple `guard_and_theif.py` example with **OpenAI** official endpoint:
```shell
python ./examples/guard_and_theif.py \
-u "https://api.openai.com/v1/" \
-m "gpt-3.5-turbo" \
-k "...API KEY..." \
--verbose
With DeepSeek official endpoint:
python examples/toolgen.py \
-u "https://api.deepseek.com" \
-k "sk-..." \
-m deepseek-reasoner \
--verbose
Now, you can start integrating CoreAgent to your project:
from coreagent import Agent, set_default_config_from_args
import urllib.request
import json
# read common arguments (--api-base-url/-u, --api-key/-k, --model/-m, --verbose/-v, --guided/-g)
set_default_config_from_args()
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? ")
常用命令(从 README 提取)
pip install coreagent
python ./examples/guard_and_theif.py \
-u "https://api.openai.com/v1/" \
-m "gpt-3.5-turbo" \
-k "...API KEY..." \
--verbose
python examples/toolgen.py \
-u "https://api.deepseek.com" \
-k "sk-..." \
-m deepseek-reasoner \
--verbose
通用部署说明(适用于大多数项目)
- 下载源码并阅读 README
- 安装依赖(pip/npm/yarn 等)
- 配置环境变量(API Key、模型路径、数据库等)
- 启动服务并测试访问
- 上线建议:Nginx 反代 + HTTPS + 进程守护(systemd / pm2)
免责声明与版权说明
本文仅做开源项目整理与教程索引,源码版权归原作者所有,请遵循对应 License 合规使用。
© 版权声明
文章版权归作者所有,未经允许请勿转载。
THE END








暂无评论内容