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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pure_agent_loop-0.1.1.tar.gz
  • Upload date:
  • Size: 198.9 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.1.tar.gz
Algorithm Hash digest
SHA256 c91d42bd22b5e1315f9496dd03d8d07fe54fae51277301f8fb9ba0e20e528dc0
MD5 0d59174b8361ac6e4fe8ae99ecabb0b8
BLAKE2b-256 a7dd881e1185390a0157b47355febecdc84580345522fcf8681d2328738a5602

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pure_agent_loop-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e07ff055991b5d837a63255c1ea4a2f9efa510f16a2eff072175a1fa8c8c0d9a
MD5 f131ad52fa0789f173cf4e260d3b1e6c
BLAKE2b-256 76d29db390b1908b57909ff9af8848e9de02399e8646f345a93654aac0bc3d47

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