unifiedagentprotocol
The Unified Agent Protocol (UAP) is an open interoperability layer for defining, registering, executing, and orchestrating AI agents and tools across diverse ecosystems. It standardizes how agents and tools are described and translated between platforms like LangChain, OpenWebUI, OpenAPI, and MCP — enabling portable, composable, and vendor-neutral
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (12.5%) to scientific vocabulary
Keywords
Scientific Fields
Repository
The Unified Agent Protocol (UAP) is an open interoperability layer for defining, registering, executing, and orchestrating AI agents and tools across diverse ecosystems. It standardizes how agents and tools are described and translated between platforms like LangChain, OpenWebUI, OpenAPI, and MCP — enabling portable, composable, and vendor-neutral
Basic Info
Statistics
- Stars: 10
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 1
Topics
Metadata Files
README.md
Unified Agent Protocol (UAP) – Core SDK Specification
Version: 1.0.0
Maintained by: WhoMeta Labs part of WhoMeta Inc.
License: Apache 2.0
Language: Python 3.10+
Repository: Private/internal (planned public release Q3 2025)
✨ Introduction
The Unified Agent Protocol (UAP) is a foundational interoperability layer designed to standardize the definition, registration, execution, and orchestration of AI agents and tools across diverse ecosystems.
UAP is not a runtime or a competing protocol like A2A or MCP – instead, it acts as a universal adapter, enabling seamless translation between heterogeneous agent formats, toolkits, and interface protocols.
The uap-core SDK is the reference Python implementation of this protocol, designed for SDK-level integration, automatic conversions, and full schema introspection.
🚀 Getting Started
Installation
Install UAP from PyPI using pip:
```bash
Basic installation
pip install unified-agent-protocol
With development tools
pip install unified-agent-protocol[dev]
With all optional dependencies
pip install unified-agent-protocol[all] ```
Quick Start
1. Define a Simple Tool
```python from unifiedagentprotocol.models.tool import Tool, ToolParam
Create a weather tool
weathertool = Tool( name="getweather", description="Get current weather for a city", parameters=[ ToolParam( name="city", type="string", description="Target city name", required=True ) ] )
print(weathertool.modeldump_json(indent=2)) ```
2. Create an Agent
```python from unifiedagentprotocol.models.agent import Agent
Create an agent with tools
weatheragent = Agent( name="WeatherBot", description="Provides weather information", version="1.0.0", tools=[weathertool] )
Export to different formats
print("A2A Format:", weatheragent.toa2a()) print("MCP Format:", weatheragent.tomcp()) print("OpenAPI Spec:", weatheragent.toopenapi()) ```
3. Parse Existing Tools
```python from unifiedagentprotocol.parser.openwebui import parseopenwebuitool from unifiedagentprotocol.parser.langchain import parselangchaintool
Parse OpenWebUI tool definition
openwebuijson = { "name": "calculator", "description": "Basic calculator", # ... more fields } uaptool = parseopenwebuitool(openwebui_json)
Parse LangChain tool
from langchain.tools import DuckDuckGoSearchRun langchaintool = DuckDuckGoSearchRun() uaptool = parselangchaintool(langchain_tool) ```
4. CLI Usage
```bash
Convert OpenWebUI tools to MCP format
uap --input openwebuitools.json --format mcp > mcptools.json
Convert Swagger spec to UAP format
uap --input petstore.yaml --format uap > uap_tools.json
Show help
uap --help ```
Requirements
- Python 3.10+
- Core dependencies:
pydantic,typer,requests,jsonschema - Optional:
aiohttp(async support),orjson(performance),mkdocs(docs)
💡 Motivation
As the AI agent ecosystem evolves, developers face increasing friction when integrating tools across platforms like OpenWebUI, LangChain, Azure OpenAI Agents, OpenAPI-based agents, or proprietary agent chains.
Common challenges include:
- ❌ Fragmented agent and tool definition formats
- ❌ Missing bridges between proprietary agent runtimes
- ❌ Lack of universal abstraction for tool metadata, input types, and execution capabilities
- ❌ Friction when reusing agent definitions across platforms (e.g., MCP ↔ A2A ↔ OpenAPI)
UAP solves this by introducing a common schema + protocol that allows agents and tools to be described once – and deployed, registered, or bridged anywhere.
📦 Key Features (Milestone 1)
- 🧠 Unified JSON model: All agent, tool, trigger, and role definitions follow a strongly typed Pydantic schema.
- 🔌 Multi-source parsers:
parse_openwebui(json): Import tools from OpenWebUI format.parse_langchain(tool): Extract tool metadata from LangChain definitions.parse_openapi(spec): Map OpenAPI endpoints to UAP tools.
- 📤 Export bridges:
to_a2a(agent): Generate A2A-compatible payload.to_mcp(agent): Convert to Model Context Protocol (MCP) schema.to_openapi(tool): Derive standard OpenAPI spec from UAP tool.
- 🖥️ CLI (
uap bind):- Run transformations via command-line:
uap bind --input tools.json --format mcp
- Run transformations via command-line:
- 🛠️ Development-first SDK:
- Works offline, no server required.
- Fully typed Python models (intellisense, validation).
- Optional integration with LangChain, FastAPI, and asyncio runtimes.
🧩 Core Concepts
| Concept | Description |
|----------------|-----------------------------------------------------------------------------|
| Tool | Describes an executable unit with input/output schemas and runtime hints. |
| Agent | A logical actor using one or more tools to fulfill a task or objective. |
| Trigger | Defines when and how agents/tools should activate (event, cron, intent). |
| Role | Describes access & behavioral context (e.g., "analyst", "investigator"). |
| OutputSchema | Optional structure for results / downstream usage. |
| UIConfig | Describes how this entity is represented in GUIs (forms, widgets, prompts).|
All objects are implemented as subclasses of pydantic.BaseModel and support:
- ✅ Full JSON validation
- ✅
.dict()/.json()/.from_json()compatibility - ✅ Versioning fields
- ✅ Extension-safe typing (e.g.,
extra = "allow")
🔄 Ecosystem Bridges
| Target Protocol | Bridge | Status | Description |
|-----------------|--------|--------|-------------|
| A2A (Agent-to-Agent) | to_a2a() | ✅ | Convert UAP agent into valid A2A descriptor |
| MCP (Model Context Protocol) | to_mcp() | ✅ | Map UAP agent/tool into MCP-compliant schema |
| OpenAPI 3 | to_openapi() | ✅ | Export UAP tool(s) as OpenAPI endpoints |
These bridges allow inter-protocol operability – for example, developers can register a LangChain tool on OpenWebUI and then expose it in an A2A runtime via UAP translation.
📚 Example Use Case
```bash
Convert OpenWebUI tools into MCP-ready format
uap bind --input toolsopenwebui.json --format mcp > mcppayload.json ```
🤝 Contributing
Contributions, issues and feature requests are very welcome!
- Fork the repository
- Create your feature branch (
git checkout -b feat/awesome-feature) - Commit your changes (
git commit -m 'feat: add awesome feature') - Push to the branch (
git push origin feat/awesome-feature) - Open a pull request
For full guidelines, please read the CONTRIBUTE guide.
⚖️ License
This project is licensed under the Apache License 2.0 – see the LICENSE file for details.
📑 Changelog
All notable changes will be documented in CHANGELOG.md.
Owner
- Name: WhoMeta Inc
- Login: WhoMeta-Inc
- Kind: organization
- Location: United States of America
- Repositories: 1
- Profile: https://github.com/WhoMeta-Inc
Citation (CITATION.cff)
cff-version: 1.2.0
message: "If you use this software, please cite it as follows:"
title: "United Agent Protocol"
version: 0.1.0
authors:
- family-names: Klein
given-names: Timo
affiliation: WhoMeta Inc.
date-released: 2025-06-20
repository-code: https://github.com/whometa/united-agent-protocol
url: https://whometa.io/uap
license: MIT
keywords:
- agent protocol
- interoperability
- unified interface
- tool standard
- open agent spec
GitHub Events
Total
- Watch event: 7
- Push event: 3
- Create event: 2
Last Year
- Watch event: 7
- Push event: 3
- Create event: 2
Packages
- Total packages: 1
-
Total downloads:
- pypi 176 last-month
- Total dependent packages: 0
- Total dependent repositories: 0
- Total versions: 2
- Total maintainers: 1
pypi.org: unified-agent-protocol
Unified Agent Protocol Core SDK - Universal interoperability layer for AI agents and tools
- Homepage: https://github.com/WhoMeta-Inc/unifiedagentprotocol
- Documentation: https://unified-agent-protocol.readthedocs.io/
- License: Apache-2.0
-
Latest release: 1.0.1
published 8 months ago
Rankings
Maintainers (1)
Dependencies
- actions/checkout v4 composite
- actions/download-artifact v4 composite
- actions/setup-python v5 composite
- actions/upload-artifact v4 composite
- pypa/gh-action-pypi-publish release/v1 composite
- jsonschema >=4.21
- pydantic >=1.10
- pytest *
- requests >=2.31
- typer >=0.9
- jsonschema >=4.21
- pydantic >=1.10
- requests >=2.31
- typer >=0.9
