ScopesResource
object
Read access to Modus scopes.
client.scopes.list() → Page[Skill] client.scopes.get(scope_id) → Skill client.scopes.conversations(scope_id).list() → Page[ConversationListItem] client.scopes.conversations(scope_id).get(thread) → Conversation
To create, update, or deploy scopes use modus.management.ModusManagement.
conversations()
scope_id.
list()
-
Parameters:
- page_size – Items per page (default 25).
-
page_token – Opaque token from a previous page’s
next_page_token. - 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()
-
Parameters:
view – Variation view —
"active"(deployed) or"draft". - Raises: NotFoundError – if no scope with this ID/slug exists.
chat()
-
Parameters:
- scope_id – Scope ID or slug.
- message – The message to send.
-
model – Model to run this message with (required). One of the supported model IDs, e.g.
"claude-sonnet-5"or"gpt-5.5". - thread_id – Continue an existing conversation; omit to start a new one.
-
Returns:
ChatResult with the reply
contentand thethread_idto continue the conversation.
chat_stream()
-
Parameters:
- scope_id – Scope ID or slug.
- message – The message to send.
-
model – Model to run this message with (required). One of the supported model IDs, e.g.
"claude-sonnet-5"or"gpt-5.5". - thread_id – Continue an existing conversation; omit to start a new one.
-
version – Run a specific variation —
"published"or"draft".
-
Returns:
ChatStream you can iterate for text chunks; the final result carries the
thread_id.
get_context()
-
Parameters:
- scope_id – Scope id or slug.
- message – Natural-language query used to select context.
- limit – Optional cap on structured fallback items when no markdown summary exists.
AsyncScopesResource
object
Async read access to Modus scopes.
await client.scopes.list() → AsyncPage[Skill] await client.scopes.get(scope_id) → Skill await client.scopes.conversations(scope_id).list() → AsyncPage[ConversationListItem]
To create, update, or deploy scopes use modus.management.ModusManagement.
conversations()
scope_id.
list()
-
Parameters:
- page_size – Items per page (default 25).
-
page_token – Opaque token from a previous page’s
next_page_token. - 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()
get for argument details.
chat()
chat for argument details.
chat_stream()
chat_stream for argument details.
get_context()
-
Parameters:
- scope_id – Scope id or slug.
- message – Natural-language query used to select context.
- limit – Optional cap on structured fallback items when no markdown summary exists.