@promptbook/google
Version:
Promptbook: Turn your company's scattered knowledge into AI ready books
19 lines (18 loc) • 653 B
TypeScript
/**
* Client-side safe wrapper for sending emails.
*
* This function proxies requests to the Agents Server API endpoint for email queuing,
* making it safe to use in browser environments.
*
* @param args Email payload containing recipients, subject, and body
* @param agentsServerUrl The base URL of the agents server (defaults to current origin)
* @returns Result string from the server-side send_email tool
*
* @private internal utility for USE EMAIL commitment
*/
export declare function sendEmailViaBrowser(args: {
to: string[];
cc?: string[];
subject: string;
body: string;
}, agentsServerUrl?: string): Promise<string>;