agentle.agents.whatsapp.whatsapp_botΒΆ

Functions

Field()

!!! abstract "Usage Documentation"

PrivateAttr()

!!! abstract "Usage Documentation"

cast(typ, val)

Cast a value to a type.

dataclass([cls, init, repr, eq, order, ...])

Add dunder methods based on the fields defined in the class.

field(*[, default, default_factory, init, ...])

Return an object to identify dataclass fields.

run_sync()

Runs an async function or coroutine synchronously using a shared background event loop.

Classes

Agent(*[, uid, name, description, url, ...])

The main class of the Agentle framework that represents an intelligent agent.

Any(*args, **kwargs)

Special type indicating an unconstrained type.

Awaitable()

BaseModel()

Alias for pydantic.BaseModel.

Callable()

CallbackWithContext(callback[, context])

Container for callback function with optional context.

ChatId

alias of str

ConfigDict

Alias for pydantic.ConfigDict.

ConversationStore([message_limit, ...])

Data(*, key, pushName, status[, message, ...])

Dados principais do webhook WhatsApp.

EvolutionAPIProvider(config[, ...])

Evolution API implementation for WhatsApp messaging with enhanced resilience.

FilePart(*[, type])

Represents a file attachment part of a message.

GeneratedAssistantMessage(*[, role])

Represents a message generated by an assistant with parsed content.

MutableMapping()

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

MutableSequence()

All the operations on a read-write sequence.

PhoneNumber

alias of str

Sequence()

All the operations on a read-only sequence.

TextPart(*[, type])

Represents a plain text part of a message.

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

A callable tool with robust serialization support using dill.

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

Represents the result of a tool execution within a step.

ToolExecutionSuggestion(*[, type, id, args])

Represents a suggestion to execute a specific tool.

UserMessage(*[, role])

Represents a message from a user in the system.

WhatsAppAudioMessage(*, id[, type, ...])

Audio message model.

WhatsAppBot(*, agent, provider[, config])

WhatsApp bot that wraps an Agentle agent with enhanced message batching and spam protection.

WhatsAppBotConfig(*[, typing_indicator, ...])

Configuration for WhatsApp bot behavior with simplified constructors and better organization.

WhatsAppDocumentMessage(*, id[, type, ...])

Document message model.

WhatsAppImageMessage(*, id[, type, ...])

Image message model.

WhatsAppMediaMessage(*, id, type, ...[, ...])

Media message model.

WhatsAppMessage(*, id, type, from_number, ...)

Base WhatsApp message model.

WhatsAppProvider()

Abstract base class for WhatsApp API providers.

WhatsAppSession(*, session_id, phone_number, ...)

WhatsApp conversation session with improved message batching and spam protection.

WhatsAppTextMessage(*, id[, type, ...])

Text message model.

WhatsAppVideoMessage(*, id[, type, ...])

Video message model.

WhatsAppWebhookPayload(*[, event, instance, ...])

Webhook payload from WhatsApp.

datetime(year, month, day[, hour[, minute[, ...)

The year, month and day arguments are required.