OpenAI Agents SDK + Lumbox
Hand the OpenAI Agents SDK an inbox: OTPs and email as function tools.
PythonThe OpenAI Agents SDK runs agents that call Python functions as tools. Lumbox's lumbox_tools() returns exactly that — typed functions with docstrings — so you wrap them with function_tool and your agent gets a real inbox, OTP extraction and email send/receive.
$ pip install lumbox openai-agents
from agents import Agent, function_tool
from lumbox import lumbox_tools
fns = lumbox_tools(api_key="ak_...")
tools = [function_tool(fn) for fn in fns.values()]
agent = Agent(
name="Inbox agent",
instructions="Use your inbox to receive OTPs and verify signups.",
tools=tools,
)How it works
- 1Install lumbox and openai-agents.
- 2Get the typed functions with lumbox_tools(api_key).
- 3Wrap each with function_tool from the Agents SDK.
- 4Pass them to your Agent so it can create inboxes and read OTPs.
FAQ
How do I give an OpenAI Agents SDK agent an email inbox?
Install lumbox, call lumbox_tools(api_key='ak_...'), and wrap each returned function with function_tool from the Agents SDK. The agent can then create an inbox, wait for an OTP and send or read email.