agentle.agents.apis.endpoint

Complete enhanced API endpoint integration for Agentle framework.

This module provides comprehensive HTTP API endpoint support with: - Multiple authentication methods - Advanced retry strategies - Circuit breaker pattern - Rate limiting - Response caching - File uploads (multipart/form-data) - Streaming responses - Request/response hooks - SSL/Proxy configuration - and more…

Functions

Field()

!!! abstract "Usage Documentation"

Classes

Any(*args, **kwargs)

Special type indicating an unconstrained type.

AsyncIterator()

AuthenticationBase()

Base class for authentication handlers.

AuthenticationConfig(*[, type, ...])

Configuration for API authentication.

BaseModel()

Alias for pydantic.BaseModel.

CircuitBreaker(config)

Circuit breaker implementation for resilient API calls.

Endpoint()

Enhanced HTTP API endpoint with comprehensive features.

EndpointParameter(*, name, description[, ...])

Represents a parameter for an API endpoint with proper object support.

FileUpload(*, filename, content[, mime_type])

Represents a file to be uploaded.

HTTPMethod(*values)

HTTP methods supported by endpoints.

MutableMapping()

A MutableMapping is a generic container for associating key/value pairs.

NoAuthentication()

No authentication.

ParameterLocation(*values)

Where to place parameters in the HTTP request.

RateLimiter(config)

Rate limiter for API calls.

RequestConfig(*[, timeout, connect_timeout, ...])

Enhanced configuration for HTTP requests.

ResponseCache(config)

Simple in-memory response cache.

RetryStrategy(*values)

Retry strategies.

Sequence()

All the operations on a read-only sequence.

Tool(*[, type, description, ignore_errors, ...])

A callable tool with robust serialization support using dill.

Exceptions

CircuitBreakerError

Raised when circuit breaker is open.