LlamaIndex quickstart
Expose Ujex Inbox as LlamaIndex FunctionTool objects.
pip install 'ujex-postbox[llamaindex]'
from ujex_postbox import PostboxClient
from ujex_postbox.integrations.llamaindex import postbox_tools
client = PostboxClient(device_key="ap_live_...", agent_id="agent-hello")
tools = postbox_tools(client, agent_id="agent-hello")
# Pass tools to your LlamaIndex agent runner.
The adapter creates:
| Tool | Purpose |
|---|---|
postbox_send_email | Send mail with optional require_human=True. |
postbox_read_message | Read a full message plus pi_score, auth verdicts, and thread data. |
postbox_list_messages | List recent message metadata for an agent. |