agentle.agents.whatsapp.whatsapp_bot

Functions

Field()

!!! abstract "Usage Documentation"

PrivateAttr()

!!! abstract "Usage Documentation"

cast(typ, val)

Cast a value to a type.

run_sync(func[, timeout])

Runs an async function 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.

BaseModel()

Alias for pydantic.BaseModel.

Callable()

ConfigDict

Alias for pydantic.ConfigDict.

ConversationStore([message_limit, ...])

Data

Dados principais do webhook WhatsApp.

FilePart(*[, type])

Represents a file attachment part of a message.

GeneratedAssistantMessage(*[, role])

Represents a message generated by an assistant with parsed content.

Message

Conteúdo da mensagem WhatsApp.

MutableMapping()

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

MutableSequence()

All the operations on a read-write sequence.

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 that can be used by AI models to perform specific functions.

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.