pure-agent-loop
轻量级 ReAct 模式 Agentic Loop 框架。
安装
pip install pure-agent-loop
快速开始
from pure_agent_loop import Agent, tool
@tool
def search(query: str) -> str:
"""搜索网页"""
return f"搜索结果: {query}"
agent = Agent(model="gpt-4o-mini", tools=[search])
result = agent.run("帮我搜索 Python 教程")
print(result.content)
许可证
MIT
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pure_agent_loop-0.1.4.tar.gz
(202.5 kB
view details)
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 pure_agent_loop-0.1.4.tar.gz.
File metadata
- Download URL: pure_agent_loop-0.1.4.tar.gz
- Upload date:
- Size: 202.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2912014d062340a782dc9a7495eb856882b5aa23e26bbbe2b28cb720e2a9bd2e
|
|
| MD5 |
893129b784ef4bda1bc153a2ea2f804b
|
|
| BLAKE2b-256 |
ffe175425b7fb2bf84fe0fd17de487779fedcd92608cb2b86113ed418efc5ef9
|
File details
Details for the file pure_agent_loop-0.1.4-py3-none-any.whl.
File metadata
- Download URL: pure_agent_loop-0.1.4-py3-none-any.whl
- Upload date:
- Size: 47.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c893d36ffdc05e6bc4099fe2b9aea2e2bd4573031e92a4bd18038f3c68f89431
|
|
| MD5 |
2ba1631c8eed422774232d12ef26bbc7
|
|
| BLAKE2b-256 |
6daebdfa284eb423de6d540c9d560117969ac7ee61dc3eefaaf85b6593df2143
|