core/http
v1.2.0High-performance HTTP client for agent workflows with automatic retries and rate limiting.
850weekly downloads
Published 1 year ago
MIT License
spm install core/httpReadme
core/http
High-performance HTTP client tailored for AI agent workflows.
Features
- Automatic Retries: Seamlessly handles transient network failures.
- Rate Limiting: Built-in token bucket rate limiting to respect API constraints.
- Agent Integration: Native support for tool-calling interfaces.
Installation
spm install core/http
Usage
import { HttpClient } from "core/http";
const client = new HttpClient({
retries: 3,
timeout: 5000
});
const response = await client.get("https://api.example.com/data");
console.log(response.data);
License
MIT