proxy-base-agent
The proxy-base-agent is a Python library designed for managing and automating requests using proxy servers. This tool simplifies communication with APIs and enhances workflow efficiency. It is particularly useful for data retrieval and processing in complex network environments.
GitHub Stars
9
User Rating
Not Rated
Favorites
0
Views
47
Forks
0
Issues
0
A stateful agent with 100% reliable tool use.
Build custom agents on any LLM with guaranteed state consistency and 100% reliable tool use.
Powered by the Proxy Structuring Engine (PSE).
The Problem: Agents That Don't Work
Most LLM agents rely on fragile prompt engineering. This leads to unpredictable state management, hallucinated tool arguments, and frequent execution failures – making reliable automation nearly impossible.
The Proxy Base Agent (PBA) is the engineered solution. PBA uses the Proxy Structuring Engine (PSE) – our high-performance Hierarchical State Machine (HSM) engine – to enforce reliable, stateful execution for any LLM.
With the Proxy Base Agent, you define your agent's behavior through a defined state graph, and PSE guarantees the LLM adheres to it, step-by-step.
Key Capabilities
- Guaranteed Stateful Execution: Define agent workflows as explicit HSMs (e.g., Plan ➔ Act). PSE ensures the LLM follows the defined states and transitions precisely.
- 100% Reliable Tool Use: Eliminate runtime errors from malformed API calls or hallucinated function arguments. PSE guarantees tool calls match their required schema during generation.
- Dynamic Runtime Adaptation (MCP): Connect to external Model Context Protocol (MCP) servers on-the-fly. PBA instantly integrates new tools and capabilities with the same structural guarantees, no restarts needed.
- Model & Framework Agnostic: Run reliable agents locally using your preferred LLMs and backends (MLX, PyTorch supported).
- Modular & Extensible: Build specialized agents by adding custom tools, defining new states, or modifying the core HSM architecture.
How It Works: Reliability Through Structure
PBA's core is an HSM enforced by PSE at runtime:
- HSM Definition: Agent logic (states like Thinking, Tool Call) is defined as a
StateMachine. Each state uses a nested PSEStateMachineto enforce its specific output structure (e.g., fenced text, JSON schema). - PSE Runtime Enforcement: The
StructuringEngineensures the LLM generates only valid state transitions and structurally correct output within each state. Tool call arguments are guaranteed to match the required schema. - Dynamic Updates (MCP): Connecting to an MCP server rebuilds the relevant parts of the HSM and reconfigures PSE instantly, making new tools reliably available.
PBA doesn't just ask the LLM to be stateful and reliable; it engineers it through PSE's runtime HSM governance.
Installation
pip install proxy-base-agent
(See Installation Docs for full details, development setup, and framework extras)
Quickstart
Launch the interactive setup wizard to configure your LLM and run the agent:
python -m agent
Documentation
We've created detailed technical documentation for the Proxy Base Agent:
The Proxy Company Services
Leverage our foundational expertise to build complex, mission-critical agentic systems with PBA. We offer:
- Custom Agent Development: Tailored agents for your specific workflows.
- Advanced Integration: Connect PBA reliably to proprietary systems and APIs.
- Production Support: Architecture, performance tuning, and support contracts.
➡️ Explore Business Services & Schedule Consultation
License
Apache 2.0 (LICENSE). Depends on pse (Apache 2.0).
Citation
@software{Wind_Proxy_Base_Agent_2025,
author = {Wind, Jack},
title = {{Proxy Base Agent: Reliable AI Execution via Hierarchical State Machines}},
version = {1.0.0},
date = {2025-04-15},
url = {https://github.com/TheProxyCompany/proxy-base-agent},
publisher = {The Proxy Company},
note = {Leverages the Proxy Structuring Engine (PSE) for runtime guarantees}
}
0
Followers
0
Repositories
0
Gists
0
Total Contributions
Vinagent is a lightweight and flexible library designed for building smart agent assistants across various industries. It is useful for creating AI-powered customer service bots, data analysis assistants, or domain-specific automation agents. It provides a simple yet powerful foundation for developers.
MCP Playground is a Streamlit-based interface that allows users to interact with large language models while seamlessly integrating external Multi-Server Command Protocol (MCP) tools. It enables the deployment of multiple FastMCP servers managed via Docker Compose, creating a provider-agnostic client using LangChain and LangGraph.
Root Signals MCP is a server designed for AI assistants and automation tools, implementing the Model Context Protocol (MCP). It provides evaluators as tools for measuring and controlling LLM (Large Language Model) automations. Key features include integration with Hugging Face and comprehensive documentation.