Metadata-Version: 2.4
Name: custom_agents
Version: 0.3.0
Summary: CustomAgents - 灵活、可扩展的多智能体框架
Home-page: https://github.com/tuling/custom_agents
Author: huangjh
Author-email: huangjh <646624437@qq.com>
License: MIT License
        
        Copyright (c) 2024 Tuling
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
        
Project-URL: Homepage, https://github.com/huangjh/my-agents
Project-URL: Repository, https://github.com/huangjh/my-agents
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: author
Dynamic: home-page
Dynamic: license-file
Dynamic: requires-python
Dynamic: summary

# custom_agents

灵活、可扩展的多智能体框架，基于OpenAI原生API构建，提供简洁高效的智能体开发体验。

## 功能特性

- 多种智能体实现：SimpleAgent、ReActAgent、ReflectionAgent、PlanAndSolveAgent、ToolAwareSimpleAgent
- 强大的工具系统：支持自定义工具、工具链、异步执行
- 核心组件：LLM集成、配置管理、消息系统
- 可扩展的架构：模块化设计，易于扩展和定制

## 安装

```bash
# 从本地安装
pip install -e .

# 或从PyPI安装（当发布后）
pip install custom_agents
```

## 快速开始

```python
from custom_agents import SimpleAgent, Config

# 配置LLM
config = Config(api_key="your-api-key")

# 创建智能体
agent = SimpleAgent(config=config)

# 运行智能体
response = agent.run("解释什么是机器学习")
print(response)
```

## 工具使用

```python
from custom_agents import ToolAwareSimpleAgent, Config, SearchTool, global_registry

# 注册工具
global_registry.register_tool(SearchTool())

# 创建配置
config = Config(api_key="your-api-key")

# 创建支持工具的智能体
agent = ToolAwareSimpleAgent(config=config)

# 运行智能体（会使用搜索工具）
response = agent.run("2023年世界足球先生是谁？")
print(response)
```

## 版本信息

- 版本：0.1.0
- 作者：huangjh
- 邮箱：646624437@qq.com

## 许可证

MIT License
