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
Always scope agent queries
Always scope agent queries
Filter by both
agent_id and workspace_id — never fetch agents globally.Return None for missing resources
Return None for missing resources
Missing workspace or agent records should return
None, not raise.Inject database sessions
Inject database sessions
Pass
AsyncSession via constructor — do not create sessions inside the context provider.Keep return values JSON-serialisable
Keep return values JSON-serialisable
Convert UUIDs and datetimes to strings before returning config dicts.
Related
Platform Auth Configuration
Authentication and authorisation setup
Platform Agents
Register and manage platform-hosted agents

