agentle.agents.apis.api

Complete enhanced API module with comprehensive OpenAPI support.

Provides advanced features for managing collections of related endpoints with: - Full OpenAPI 3.0/3.1 and Swagger 2.0 support - Shared authentication across endpoints - Request/response interceptors - API-level rate limiting and circuit breaking - Batch request support - GraphQL support - And more…

Functions

Field()

!!! abstract "Usage Documentation"

cast(typ, val)

Cast a value to a type.

Classes

API()

Enhanced API collection with comprehensive features.

APIMetrics(*[, total_requests, ...])

Metrics for API usage.

Any(*args, **kwargs)

Special type indicating an unconstrained type.

ApiKeyLocation(*values)

Where to place API key.

ArraySchema(*[, type, min_items, max_items, ...])

Schema definition for array parameters.

AuthType(*values)

Types of authentication supported.

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

Configuration for API authentication.

BaseModel()

Alias for pydantic.BaseModel.

Coroutine()

Endpoint()

Enhanced HTTP API endpoint with comprehensive features.

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

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

HTTPMethod(*values)

HTTP methods supported by endpoints.

Mapping()

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

MutableMapping()

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

MutableSequence()

All the operations on a read-write sequence.

OAuth2GrantType(*values)

OAuth2 grant types.

ObjectSchema(*[, type, properties, ...])

Schema definition for object parameters.

ParameterLocation(*values)

Where to place parameters in the HTTP request.

Path(*args, **kwargs)

PurePath subclass that can make system calls.

PrimitiveSchema(*, type[, format, enum, ...])

Schema definition for primitive parameters.

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

Enhanced configuration for HTTP requests.

Sequence()

All the operations on a read-only sequence.

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

A callable tool with robust serialization support using dill.