Skip to main content
The HTTP module provides pre-configured utilities for making HTTP requests in tools and agents. Built on top of axios, it comes with sensible defaults, automatic error handling, and full TypeScript support.

Features

  • 🌐 Pre-configured axios instance with 30s timeout
  • 🛡️ Automatic error handling with enhanced error messages
  • 🎯 Helper functions for common HTTP methods (GET, POST, PUT, PATCH, DELETE)
  • 📦 Zero configuration - works out of the box
  • 🔒 Type-safe - Full TypeScript support with exported types
  • Available in all agents - No need to install additional dependencies

Quick Start

Helper Functions

The SDK provides convenient helper functions that automatically extract data from responses:

Using the HTTP Instance

For more control, use the pre-configured http instance directly:

Error Handling

All HTTP utilities provide enhanced error messages:

Complete Example: Weather Tool

Next Steps

Connectors

Use built-in connectors

Tools

Learn more about tools