@adonis-agora/agent
Version:
Governed, durable-backed AI agent (chat + tool-calling + governance) for AdonisJS — part of the Agora ecosystem.
28 lines • 1.63 kB
TypeScript
import type { ChannelAdapter } from '../types.js';
import { type EvolutionApiOptions } from './evolution_api.js';
export interface WhatsmiauOptions extends EvolutionApiOptions {
/**
* The Whatsmiau server, host only — `http://whatsmiau:8080`. The route prefix is added for you:
* `/v1` (self-hosted Whatsmiau serves Evolution's routes there). A url that already ends in a
* version (`https://api.whatsmiau.dev/v2`, the hosted service) is used as is.
*/
url: string;
/**
* Send proposals with reply buttons (`POST /v1/message/sendButtons/{instance}`). Default `true`:
* Whatsmiau runs on whatsmeow, whose buttons WhatsApp renders, so the buttons message carries no
* text instruction (the person can still answer by text); a 4xx from that endpoint falls back to
* the text-only message, instruction included.
*/
buttons?: boolean;
}
/**
* WhatsApp through [Whatsmiau](https://github.com/verbeux-ai/whatsmiau) — an Evolution-compatible
* server built on whatsmeow (verbeux-ai's fork). The same webhook, routes and options as
* `evolutionApi()`, with two differences: the route prefix (`/v1`) is added to `url`, and reply
* buttons are on by default — Whatsmiau's render on the phone, where Evolution's (Baileys) did not in
* our test (so the buttons card carries no text instruction; the text fallback does). Point the
* instance's webhook (`POST /v1/webhook/set/{instance}`, event
* `MESSAGES_UPSERT`) at the route, with the token.
*/
export declare function whatsmiau(options: WhatsmiauOptions): ChannelAdapter;
//# sourceMappingURL=whatsmiau.d.ts.map