client.scopes after new Modus(...).
Methods
chat()
Parameters
string | number
required
Scope numeric id or slug.
string
required
Message to send.
required
Returns
Promise<ChatResult>
Chat result with content and threadId.
chatStream()
Parameters
string | number
required
Scope numeric id or slug.
string
required
Message to send.
required
Returns
ChatStream
Chat stream.
conversations()
scopeId.
Parameters
string | number
required
Scope numeric id or slug.
Returns
ScopeConversationsResource
Conversations resource for the scope.
get()
Parameters
string | number
required
Scope numeric id or slug.
{ view: VariationView }
Returns
Promise<object>
Scope.
getContext()
Parameters
string | number
required
Scope numeric id or slug.
string
required
User intent or question to compose context for.
{ limit: number }
Returns
Promise<object>
Composed scope context.
list()
Parameters
Returns
Promise<Page<object>>
Page of scopes.