Kernel browser with AgentMailer
Create an isolated Kernel browser, inspect a web page, summarize it with an
OpenAI-compatible model, and optionally prepare an AgentMailer draft. The
browser session is deleted in a finally block and the email remains unsent.
Environment
Set CREATE_DRAFT_EXAMPLE=1, AGENTMAILER_RECIPIENT, and
AGENTMAILER_SUBJECT to create a reviewable draft.
Run
Use a dedicated test inbox. Web content is untrusted data; it cannot change the task, reveal credentials, or authorize email delivery.