Reference
@chloejs/ core/ tools/ email
Starting an email conversation, for an agent on the email channel.
The tool for an agent on the email channel: beginning a conversation with somebody, whose reply comes back on that channel. Sending one email with no conversation is gmail.sendEmail or resend.sendEmail.
import * as email from "@chloejs/core/tools/email";
tools: { emailStartConversation: email.startConversation({ when: "..." }) }startConversationfunction
export function startConversation({ when, channel = "email", keep }: { when: string; channel?: string; keep?: string })A tool that emails somebody the agent's email channel allows, from an address
made for that conversation. Their reply comes back to the agent on that
channel. when says, in the agent's own words, when to use it, and keep
is a folder in its memory that gets a copy of every email it starts.