agentle.agents.whatsapp.whatsapp_bot

Functions

cast(typ, val)

Cast a value to a type.

run_sync(func[, timeout])

Runs a callable synchronously.

Classes

AgentProtocol(*args, **kwargs)

Any(*args, **kwargs)

Special type indicating an unconstrained type.

Callable()

Context(*[, context_id, message_history, ...])

Container for contextual information that guides an agent's behavior.

Data

Dados principais do webhook WhatsApp.

FilePart(*[, type])

Represents a file attachment part of a message.

InMemorySessionStore([cleanup_interval_seconds])

In-memory session storage implementation.

Message

Conteúdo da mensagem WhatsApp.

MutableSequence()

All the operations on a read-write sequence.

Sequence()

All the operations on a read-only sequence.

SessionManager(session_store[, ...])

Session manager that provides a high-level interface for session operations.

TextPart(*[, type])

Represents a plain text part of a message.

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.

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

Configuration for WhatsApp bot behavior.

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(*args, **kwargs)

Abstract base class for WhatsApp API providers.

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

WhatsApp conversation session.

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.