Skip to main content
Grant access to one agent, team, or workflow by id, or use a wildcard scope deliberately. The smoke shows list filtering across all three resource families without invoking a model.
per_resource_scopes.py

Run the Example

1

Set up your virtual environment

2

Install dependencies

3

Export your OpenAI API key

4

Run the example

Save the code above as per_resource_scopes.py, then run:
Full source: cookbook/05_agent_os/07_security/per_resource_scopes.py