AgentConnect
What is AgentConnect
AgentConnect is an open-source SDK implementation of the Agent Network Protocol (ANP).
The goal of Agent Network Protocol (ANP) is to become the HTTP of the Intelligent Agent Internet Era, building an open, secure, and efficient collaborative network for billions of intelligent agents.
Core Modules
Authentication
Agent identity authentication system based on DID-WBA (Decentralized Identifier - Web-Based Authentication):
- Identity Management: Create and manage agent DID documents
- Identity Verification: Provide end-to-end identity authentication and authorization
- Secure Communication: Ensure security and trustworthiness of inter-agent communication
ANP Crawler (Agent Discovery & Interaction)
Discovery and interaction tools for the agent network:
- Agent Discovery: Automatically discover and parse agent description documents
- Interface Parsing: Parse JSON-RPC interfaces and convert them to callable tools
- Protocol Interaction: Support communication with agents that comply with ANP protocol
Usage
Option 1: Install via pip
pip install agent-connect
Option 2: Source Installation (Recommended for Developers)
# 下载源码
git clone https://github.com/agent-network-protocol/AgentConnect.git
cd AgentConnect
# 使用UV配置环境
uv sync
# 运行示例
uv run python examples/python/did_wba_examples/create_did_document.py
Example Demonstration
DID-WBA Authentication Example
Location: examples/python/did_wba_examples/
Main Examples
-
Create DID Document (
create_did_document.py)
Demonstrate how to generate DID documents and key pairs for agents -
Authenticate and Verify (
authenticate_and_verify.py)
Demonstrate the complete DID-WBA authentication and verification process
Running Examples
# Create DID Document
uv run python examples/python/did_wba_examples/create_did_document.py
# Authentication Demonstration
uv run python examples/python/did_wba_examples/authenticate_and_verify.py
Detailed Documentation: DID-WBA Example
ANP Crawler Agent Interaction Example
Location: examples/python/anp_crawler_examples/
Main Examples
-
Simple Example (
simple_amap_example.py)
Quick Start: Connect to AMAP service and call the map search interface -
Complete Example (
amap_crawler_example.py)
Complete Demonstration: Agent discovery, interface parsing, and tool calling
Running Examples
# Quick Experience
uv run python examples/python/anp_crawler_examples/simple_amap_example.py
# Complete Function Demonstration
uv run python examples/python/anp_crawler_examples/amap_crawler_example.py
Detailed Documentation: ANP Crawler Example
Tool Recommendations
ANP Network Explorer Tool
Use the web interface to explore the agent network using natural language: ANP Network Explorer Tool
DID Document Generator Tool
Command line tool to quickly generate DID documents:
uv run python tools/did_generater/generate_did_doc.py <did> [--agent-description-url URL]
Contact Us
- Author:GaoWei Chang
- Email:chgaowei@gmail.com
- Website:https://agent-network-protocol.com/
- Discord:https://discord.gg/sFjBKTY7sB
- GitHub:https://github.com/agent-network-protocol/AgentNetworkProtocol
- WeChat:flow10240
License
This project is open-sourced under the MIT License. Detailed information please refer to LICENSE file.
Copyright (c) 2024 GaoWei Chang
Metadata
Release files for agent-connect 0.3.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| agent_connect-0.3.7.tar.gz | 19.2 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| agent_connect-0.3.7-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.3 MB
Release files / agent_connect-0.3.7.tar.gz
| Download URL | agent_connect-0.3.7.tar.gz |
|---|---|
| Size | 19.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
89e15ec612a9fc727d57f57e8fcba5569e36ac551f77f6e2d3e7862d2c06f597
|
|
BLAKE2b-256 checksum How to use checksums |
b206171a61ab9356f5d559277c878bfffe0a22503ebe2d905cef6cac6f4e7957
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.11
|
Release files / agent_connect-0.3.7-py3-none-any.whl
| Download URL | agent_connect-0.3.7-py3-none-any.whl |
|---|---|
| Size | 98.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f16f8a8c7ce44bb4e1b6e70d6b8dc315068f13c7e714ddce6b785ee23d0046bc
|
|
BLAKE2b-256 checksum How to use checksums |
f2799398485ebe354b38dfc9a3ae84a8a481e1ac7c1c5bac30830ce2f506c81a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.5.11
|