Skip to main content

Integrations

The integration layer connects agents to external models, tools, sandboxes, durable stores, and servers while keeping shared policy, persistence, and safety logic in the Rust runtime.

import asyncio
from ish import Agent, OpenAICompatibleModel, SQLiteLogger, filesystem_tools

async def main() -> None:
logger = SQLiteLogger(db_path="./data/traces.db")
await logger.initialize()
agent = Agent(
name="workspace_assistant",
model=OpenAICompatibleModel(model="gpt-4o-mini"),
instructions="Inspect workspace files and summarize changes.",
tools=filesystem_tools(root_dir="./workspace"),
persistence=logger,
)
try:
result = await agent.run("List files in the workspace.")
print(result.content)
finally:
agent.close()
await logger.close()

asyncio.run(main())
IntegrationPurposeLink
ModelsOpenAI-compatible, Anthropic, Gemini, mock/host adapters, and model.decideModel Providers
ProtocolsMCP, A2A, ACP, and AG-UI event streamingProtocol Stack
SandboxesLocal workspace sandboxes, kernel isolation, WASI, and path permissionsSandboxes
PersistenceSQLite WAL, execution logs, snapshots, and enterprise SQLPersistence
HTTP server and Control PlaneHost-native agent HTTP adapters and shared policy validationHTTP Server, Control Plane

Unified runtime integration​

Host SDKs provide ready-made sandbox tool descriptors that can be attached to an agent. The Rust API exposes the same sandbox capabilities for application code to wrap in its own tool function; constructing a sandbox by itself does not mount tools on an agent. The Rust example therefore passes a directory listing into the agent prompt directly. Persistence is configured separately and can be attached to a run or Rust runner configuration. See Sandbox setup and SQLite WAL for full setup details.