Skip to main content

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

Metadata

Release files for pure-agent-loop 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pure-agent-loop 0.1.4
File Size Uploaded Provenance Actions
pure_agent_loop-0.1.4.tar.gz 202.5 kB Without provenance Details for pure_agent_loop-0.1.4.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pure-agent-loop 0.1.4
File Interpreter ABI Platform Actions
pure_agent_loop-0.1.4-py3-none-any.whl Python 3 none any Details for pure_agent_loop-0.1.4-py3-none-any.whl

Total release size: 249.9 kB

Release files / pure_agent_loop-0.1.4.tar.gz

Download URL pure_agent_loop-0.1.4.tar.gz
Size 202.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2912014d062340a782dc9a7495eb856882b5aa23e26bbbe2b28cb720e2a9bd2e
BLAKE2b-256 checksum
How to use checksums
ffe175425b7fb2bf84fe0fd17de487779fedcd92608cb2b86113ed418efc5ef9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Release files / pure_agent_loop-0.1.4-py3-none-any.whl

Download URL pure_agent_loop-0.1.4-py3-none-any.whl
Size 47.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c893d36ffdc05e6bc4099fe2b9aea2e2bd4573031e92a4bd18038f3c68f89431
BLAKE2b-256 checksum
How to use checksums
6daebdfa284eb423de6d540c9d560117969ac7ee61dc3eefaaf85b6593df2143
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.10

Security for pure-agent-loop 0.1.4

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page