Skip to main content

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:

ToolPurpose
postbox_send_emailSend mail with optional require_human=True.
postbox_read_messageRead a full message plus pi_score, auth verdicts, and thread data.
postbox_list_messagesList recent message metadata for an agent.