Skip to main content

Installation

Install the ATP SDK using pip:

Quick Start with ToolKitClient

The ToolKitClient lets you register Python functions as tools and serve them via WebSocket.

Step 1: Create a ToolKit

Get your Toolkit API key from the ATP Dashboard.

Step 2: Register a Tool

Use the @register_tool decorator to expose a Python function as a tool:

Step 3: Start the Client

Start the WebSocket client to begin listening for tool requests:
The client will automatically reconnect if the connection is lost.

Complete Example

Here’s a complete example that registers a simple tool:

Tool with OAuth2 Authentication

Here’s an example of a tool that requires OAuth2 authentication (e.g., HubSpot):
The ATP platform will automatically inject the auth_token into your function when a user has authenticated.

Next Steps

ToolKitClient Reference

Learn about all ToolKitClient methods and options

LLMClient Integration

Connect LLMs to your toolkits

OAuth2 Guide

Set up OAuth2 authentication for your tools

Examples

Explore more examples and use cases