ScopesResource
object
Full CRUD access to Modus scopes.
mgmt.scopes.list() → page of scopes mgmt.scopes.get(scope_id) → scope (with variation fields) mgmt.scopes.create(name, ...) → scope mgmt.scopes.update(scope_id, ...) → scope mgmt.scopes.deploy(scope_id) → scope mgmt.scopes.delete(scope_id) → None mgmt.scopes.conversations(scope_id).list() → page of conversations mgmt.scopes.conversations(scope_id).get(tid) → conversation
conversations()
scope_id.
memories()
scope_id.
evaluations()
scope_id.
supervision()
scope_id.
list()
-
Parameters:
- page_size – Maximum number of items to return (default 25).
-
page_token – Token from a previous page’s
next_page_token; omit for the first page. - search – Case-insensitive substring filter on the scope name.
-
view – Variation view —
"active"(deployed) or"draft". - manager_id – Return only scopes supervised by this manager scope id.
get()
create()
-
Parameters:
guardrails – Runtime guardrail labels (for example
"no-pii"). When set, the scope is created with these labels under the organisation default sharing rules. Omit (None) to create with no guardrails. ACL fields cannot be set from the SDK.
update()
update_mask (a comma-separated list of field names) and leave its argument unset — the server sets each masked field to null and leaves fields not named in the mask untouched.
-
Parameters:
guardrails – Runtime guardrail labels to set on the scope. Fetches the current scope first and merges these labels into its access configuration (an extra
getrequest). Omit (None) to leave guardrails unchanged. Pass[]to clear all guardrails.
deploy()
- Parameters: scope_id – Scope to publish.
- Returns: The scope with its newly published configuration.
delete()
- Parameters: scope_id – Scope to remove.
request_ownership_transfer()
cancel_ownership_transfer()
accept_ownership_transfer()
restore()
patch_mcp_config()
get_variation()
AsyncScopesResource
object
conversations()
scope_id.
memories()
scope_id.
supervision()
scope_id.
list()
-
Parameters:
- page_size – Maximum number of items to return (default 25).
-
page_token – Token from a previous page’s
next_page_token; omit for the first page. - search – Case-insensitive substring filter on the scope name.
-
view – Variation view —
"active"(deployed) or"draft". - manager_id – Return only scopes supervised by this manager scope id.
get()
create()
-
Parameters:
guardrails – Runtime guardrail labels (for example
"no-pii"). When set, the scope is created with these labels under the organisation default sharing rules. Omit (None) to create with no guardrails. ACL fields cannot be set from the SDK.
update()
update_mask (a comma-separated list of field names) and leave its argument unset — the server sets each masked field to null and leaves fields not named in the mask untouched.
-
Parameters:
guardrails – Runtime guardrail labels to set on the scope. Fetches the current scope first and merges these labels into its access configuration (an extra
getrequest). Omit (None) to leave guardrails unchanged. Pass[]to clear all guardrails.
deploy()
deploy for argument details.
delete()
delete for argument details.
request_ownership_transfer()
cancel_ownership_transfer()
accept_ownership_transfer()
restore()
patch_mcp_config()
get_variation()
ScopeConversationsResource
object
list()
-
Parameters:
- page_size – Maximum number of items to return (default 25).
-
page_token – Token from a previous page’s
next_page_token; omit for the first page.
get()
- Parameters: thread_id – Conversation thread ID.
ScopeMemoriesResource
object
list()
-
Parameters:
- page_size – Items per page (default 25).
-
page_token – Token from a previous page’s
next_page_token. - user_id – Optional end-user scope when memories are scoped per user.
search()
-
Parameters:
request – Query text and optional
user_id/limit.
update()
-
Parameters:
- memory_id – Id from list or search.
-
update – Fields to change (
memoryand/ormetadata). - update_mask – Optional comma-separated field names to update.
delete()
ScopeEvaluationsResource
object
get_config()
update_config()
- Parameters: update – Fields to change (schedule, test cases, etc.).
- Returns: The updated evaluation configuration.
trigger_run()
- Returns: Response with the new run id.
list_runs()
-
Parameters:
- page_size – Items per page (default 25).
-
page_token – Token from a previous page’s
next_page_token.
- Returns: Page of evaluation runs.
get_run()
-
Parameters:
run_id – Id from
list_runsortrigger_run. - Returns: Run metadata and per-test-case results.
ScopeSupervisionResource
object