Python API reference

Every public name of the package, by each module's __all__, from its docstring and signature.

stalwart_agents

stalwart-agents: declare an agent in one file -- its tools, its rules, its users -- check it, and run it.

stalwart_agents.client

stalwart_agents.client: the client for the Stalwart API.

stalwart_agents.langchain

stalwart_agents.langchain: Stalwart's routing, tool check and sagas inside LangChain and LangGraph agents.

stalwart_agents.gateway

stalwart_agents.gateway: every tool call an agent makes, checked on its way to the tool.

stalwart_agents.compute

A plan's compute step, run on the customer's host.

stalwart_agents.sandbox

The sandbox a compute step's function runs in, on the customer's host: the launcher (launch), the seccomp profile beside it, and the image it starts.

stalwart_agents.local_app

stalwart_agents.local_app: Your own app's side -- a program on the owner's machine that the bot works with (stalwart_agents.own_apps), with nothing passing through Stalwart.

stalwart_agents.guardrails

A deterministic guardrail for the tool calls any LLM agent makes.