Skip to main content

An advanced LLM agent framework supporting ReAct and Tool Calling paradigms.

Project description

Autourgos LLM Agent Kit

Autourgos LLM Agent Kit is a powerful, lightweight framework for building advanced AI agents. It supports both ReAct (Reasoning + Acting) and Tool Calling paradigms, allowing developers to create intelligent agents that can reason through complex problems and execute tools effectively.

Features

  • ReAct Agent: Implements the reasoning-trace loop (Thought → Action → Observation) for complex problem-solving.
  • Parallel ReAct Agent: A powerful agent that combines the reasoning of ReAct with the speed of parallel tool execution. It overcomes the limitations of sequential execution by running multiple independent tools at once.
  • Tool Calling Agent: Optimized for sequential tool execution without explicit reasoning overhead.
  • Autourgos Core: A robust tool management system with the @tool decorator for easy function-to-tool conversion.
  • Memory Integration: Optional conversation memory support.
  • Customizable Prompts: Easily modify agent behavior with custom prompt templates.
  • Verbose Logging: Detailed colored terminal output for debugging and monitoring agent thought processes.

Installation

Install via pip:

pip install autourgos-llmagentkit

Quick Start

1. Define Tools

Use the @tool decorator from autourgos.core to turn Python functions into tools.

from autourgos.core import tool

@tool
def calculate(expression: str) -> str:
    """Evaluates a mathematical expression."""
    return str(eval(expression))

@tool
def search(query: str) -> str:
    """Searches for information about the query."""
    return f"Results for: {query}"

2. Create a ReAct Agent

The ReAct agent reasons about the user's request and decides which tools to call.

from autourgos.llmagentkit import Create_ReAct_Agent

# Initialize your LLM client (must implement generate_response method)
# llm = MyLLMClient(...)

agent = Create_ReAct_Agent(llm=llm, verbose=True)
agent.add_tools(calculate, search)

response = agent.invoke("What is the calculation for 25 * 4 and search for its significance?")
print(response)

3. Create a Tool Calling Agent

For more direct tasks where explicit reasoning steps are less critical.

from autourgos.llmagentkit import Create_ToolCalling_Agent

agent = Create_ToolCalling_Agent(llm=llm, verbose=True)
agent.add_tools(calculate)

response = agent.invoke("Calculate 100 / 5")
print(response)

4. Create a Parallel ReAct Agent

This agent thinks like a ReAct agent but executes independent tools simultaneously, offering the best of both worlds: transparent reasoning and high speed.

from autourgos.llmagentkit import Create_ParallelReAct_Agent

agent = Create_ParallelReAct_Agent(llm=llm, verbose=True)
agent.add_tools(calculate, search)

# The agent will call calculate("25 * 4") and search("...") in parallel
response = agent.invoke("Calculate 25 * 4 and search for its significance.")
print(response)

Project Structure

  • autourgos.llmagentkit: Core agent implementations (ReAct, Tool Calling, and Parallel ReAct).
  • autourgos.core: Tool management and decorators.

License

This project is licensed under a proprietary license. See the LICENSE file for details. Not for resale or commercial use without permission.

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

autourgos_llmagentkit-1.0.3.tar.gz (21.6 kB view details)

Uploaded Source

Built Distribution

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

autourgos_llmagentkit-1.0.3-py3-none-any.whl (29.1 kB view details)

Uploaded Python 3

File details

Details for the file autourgos_llmagentkit-1.0.3.tar.gz.

File metadata

  • Download URL: autourgos_llmagentkit-1.0.3.tar.gz
  • Upload date:
  • Size: 21.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for autourgos_llmagentkit-1.0.3.tar.gz
Algorithm Hash digest
SHA256 4cd08f4b57949ca7ceddcc865ffffd97ca2011d0495aa8ce8dc98518f5ab50aa
MD5 cf220689885d54aadca97963ccffa36a
BLAKE2b-256 23e771cdc767f76f90625d2d4ffca4352a73357ffe709f54f83d20150706c618

See more details on using hashes here.

File details

Details for the file autourgos_llmagentkit-1.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for autourgos_llmagentkit-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 963ab515800e283642f0314219715765cdaa74302cce6c8e43697049cb658078
MD5 32b06288fb626d60af2f86c9c1aa520e
BLAKE2b-256 380b2cdebb613e3ea254e9424efc4a26502502b214333594ce88b6ea175106e8

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