Skip to main content

Official Python SDK for AgentBridge — connect AI agents to GitHub, Slack, Notion, Gmail and Google Drive through a single unified API.

Project description

AgentBridge Python SDK

Official Python SDK for AgentBridge — connect AI agents to GitHub, Slack, Notion, Gmail and Google Drive through a single unified API.

PyPI

Installation

pip install agentbridge-sdk

Quick Start

  1. Sign up at agentbridge.in
  2. Connect your providers (GitHub, Slack, etc.) from the dashboard
  3. Create an API key from API Keys
from agentbridge import AgentBridge

client = AgentBridge(api_key="ab_your_api_key_here")

# List your GitHub repos
repos = client.execute(provider="github", tool="list_repos")
print(repos["data"])

# Create a Slack message
client.execute(
    provider="slack",
    tool="send_message",
    params={"channel": "#general", "text": "Hello from AgentBridge!"},
)

# Search Notion pages
pages = client.execute(
    provider="notion",
    tool="search_pages",
    params={"query": "meeting notes"},
)

Configuration

client = AgentBridge(
    api_key="ab_your_api_key_here",       # required — get one at agentbridge.in/app/api-keys
    base_url="https://agentbridge.in",    # optional, defaults to this
)

API Reference

client.execute(provider, tool, params=None)

Execute a tool on a connected provider.

result = client.execute(
    provider="github",
    tool="create_issue",
    params={
        "owner": "octocat",
        "repo": "hello-world",
        "title": "Bug report",
        "body": "Something is broken",
    },
)

print(result["status"])  # "success"
print(result["data"])    # tool-specific response
Argument Type Required Description
provider str Yes Provider slug (github, slack, notion, gmail, google-drive)
tool str Yes Tool name (e.g. list_repos, create_issue)
params dict or None No Tool-specific parameters

client.get_providers()

List all available providers.

providers = client.get_providers()
# [{"id": "...", "name": "GitHub", "slug": "github", "active": True}, ...]

client.get_provider_tools(slug)

List available tools for a provider. Use this to discover tool names and their parameters.

tools = client.get_provider_tools("github")
# [{"name": "list_repos", "description": "...", "parameters": {...}}, ...]

Error Handling

from requests.exceptions import HTTPError

try:
    result = client.execute(provider="github", tool="list_repos")
except HTTPError as e:
    print(f"Request failed: {e.response.status_code} - {e.response.text}")

Providers

Provider Slug Example Tools
GitHub github list_repos, create_issue, create_pr, get_file
Slack slack send_message, list_channels
Notion notion search_pages, create_page
Gmail gmail send_email, list_messages
Google Drive google-drive list_files, upload_file

Use client.get_provider_tools("slug") to see all tools and parameters for each provider.

Requirements

  • Python >= 3.9
  • requests >= 2.20.0

Links

License

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

agentbridge_sdk-1.0.43.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

agentbridge_sdk-1.0.43-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file agentbridge_sdk-1.0.43.tar.gz.

File metadata

  • Download URL: agentbridge_sdk-1.0.43.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for agentbridge_sdk-1.0.43.tar.gz
Algorithm Hash digest
SHA256 4f2459d04063dda9cedb53805603ea620a392922f5849fabe47b09df201884b2
MD5 3db9b748953201305ba0ceb5f32a2564
BLAKE2b-256 f146b51fffb380a0be7e788f181a4cd45fc3fc4bde008bc50c0a94278e0c4377

See more details on using hashes here.

File details

Details for the file agentbridge_sdk-1.0.43-py3-none-any.whl.

File metadata

File hashes

Hashes for agentbridge_sdk-1.0.43-py3-none-any.whl
Algorithm Hash digest
SHA256 222621782a5989b72f500346228354b0e344c184afb899de927985f24b454422
MD5 d9c7a9e2819e2cb58b1e1e8c8158a14f
BLAKE2b-256 4e6f0090a2945ca0afcd1b9f563f0df0b13917b04998c8000966ac06cdab7107

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