agentle.agents.apis.apiΒΆ

Functions

Field()

!!! abstract "Usage Documentation"

cast(typ, val)

Cast a value to a type.

Classes

API(*, name[, description, headers, ...])

Represents a collection of related API endpoints with shared configuration.

Any(*args, **kwargs)

Special type indicating an unconstrained type.

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

Schema definition for array parameters.

BaseModel()

Alias for pydantic.BaseModel.

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

Represents a single HTTP API endpoint that can be called by an agent.

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

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

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.

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

Schema definition for object parameters.

Path(*args, **kwargs)

PurePath subclass that can make system calls.

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

Schema definition for primitive parameters.

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

Configuration for HTTP requests.

Sequence()

All the operations on a read-only sequence.

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

A callable tool that can be used by AI models to perform specific functions.