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.0.tar.gz (193.2 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.0-py3-none-any.whl (45.9 kB view details)

Uploaded Python 3

File details

Details for the file pure_agent_loop-0.1.0.tar.gz.

File metadata

  • Download URL: pure_agent_loop-0.1.0.tar.gz
  • Upload date:
  • Size: 193.2 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.0.tar.gz
Algorithm Hash digest
SHA256 b12adfe3dbbaa568960de402bf030db0996c24bbc91ce09664169a152dcb8a34
MD5 5b53089cddd55b6ea0f71f8b3ed5b978
BLAKE2b-256 d81411806c8b13451208b715673409fdc4118195e3d9f652b79e9bd706e693e1

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pure_agent_loop-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 182693662030e0fd919b5a4f4a1f42b42d3aa65b7cf470dd3cd2e56df7824f1b
MD5 e23d02193a517a6681bc9dd5d6bdbf07
BLAKE2b-256 84a92fc033b49175d36fdbdfb3137ce59a7f38ba3613cf80054eb18ab0a4c218

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