Skip to main content
Workspace context lets platform-hosted agents load settings and instructions scoped to a workspace.
The user opens a workspace thread; the agent loads scoped instructions from platform context.

Quick Start

1

Simple Usage

Implement WorkspaceContextProtocol with workspace-level instructions:
2

With Configuration

Merge workspace and agent settings before starting the agent:

How It Works


Configuration Options

Expected keys in the agent config dict: system_prompt, model, tools, max_concurrent_tasks.

Best Practices

Filter by both agent_id and workspace_id — never fetch agents globally.
Missing workspace or agent records should return None, not raise.
Pass AsyncSession via constructor — do not create sessions inside the context provider.
Convert UUIDs and datetimes to strings before returning config dicts.

Platform Auth Configuration

Authentication and authorisation setup

Platform Agents

Register and manage platform-hosted agents