Skip to main content
The curated public surface re-exported from the top-level hexgate package. Each symbol links to the guide where it’s used in context.

Building agents

Sub-agents

See agent-level enforcement for how a policy governs which sub-agents an agent may reach.

Policy enforcement

Running agents

Loading & registering agents

Identity

Platform client

Built-in tools

Filesystem tools are importable from hexgate: read_file, write_file, edit_file, glob, grep, bash. The shell-backed ones run inside the workspace sandbox. They act on a Workspace, the abstract type the tools receive at runtime. The one you configure is LocalWorkspace from hexgate.runtime, described on the sandbox page.
web_search, fetch, and refund_order are no longer built in — they moved to examples/tools/ (websearch.py, fetch.py, refund.py). Import them from there. For a code-defined agent, pass the tool in create_agent(..., tools=[...]); for a YAML-loaded agent, satisfy a tool named in the YAML via load_agent(name, extra_tools={...}). A direct from hexgate import web_search raises an ImportError that points at the new location.