Skip to content

OpenAI Assistants

Install

pip install scopebound

Integration

from scopebound import ScopeboundSDK, ScopeboundSession

sb = ScopeboundSDK()

with ScopeboundSession(sb, role="invoice-processor") as session:
    tool_outputs = session.execute_tool_calls(
        run.required_action.submit_tool_outputs.tool_calls,
        handlers={"read_invoices": read_invoices_fn}
    )

ScopeboundSession enforces each tool call before dispatching to your handler. Denied calls are not dispatched.