Skip to main content

轻量级 ReAct 模式 Agentic Loop 框架

Project description

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

Project details


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)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pure_agent_loop-0.1.4-py3-none-any.whl (47.4 kB view details)

Uploaded Python 3

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

Hashes for pure_agent_loop-0.1.4.tar.gz
Algorithm Hash digest
SHA256 2912014d062340a782dc9a7495eb856882b5aa23e26bbbe2b28cb720e2a9bd2e
MD5 893129b784ef4bda1bc153a2ea2f804b
BLAKE2b-256 ffe175425b7fb2bf84fe0fd17de487779fedcd92608cb2b86113ed418efc5ef9

See more details on using hashes here.

File details

Details for the file pure_agent_loop-0.1.4-py3-none-any.whl.

File metadata

File hashes

Hashes for pure_agent_loop-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c893d36ffdc05e6bc4099fe2b9aea2e2bd4573031e92a4bd18038f3c68f89431
MD5 2ba1631c8eed422774232d12ef26bbc7
BLAKE2b-256 6daebdfa284eb423de6d540c9d560117969ac7ee61dc3eefaaf85b6593df2143

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page