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.2.tar.gz (200.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.2-py3-none-any.whl (46.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pure_agent_loop-0.1.2.tar.gz
  • Upload date:
  • Size: 200.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.2.tar.gz
Algorithm Hash digest
SHA256 af31e02cda63602557748345b18fef163d88a8f21f28d2d29d69396d6da14b0b
MD5 c5966406cc975b253522b717205ef75d
BLAKE2b-256 80881d39c389d059f8e41a34f2eee19d783b2650bcb7b51a78fa92a608c04685

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pure_agent_loop-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0399f8eb439978c9eb47503144b1536010b7ee78240b474d5a23feecae26ce89
MD5 bd65bbe9c3fa28af5de80a975fabd114
BLAKE2b-256 deaa177105fcd707a4b5ae5f02cc2362c6fafc903bb9d0d748450a9cf1c3b3da

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