Brain Docs

Reference

Rust SDKInstallationHTTP clientWire client
create_spacelist_spacesdelete_spacecreate_sessionlist_sessionsdelete_session
ErrorsRetriesPagination
Brain/Docs
✦ ASKBrain on GitHubDashboard
Rust SDKSpaces and sessionslist_sessions

list_sessions

The sessions in the caller's space, with their titles and memory counts.

PURPOSE

The sessions in the caller's space. Bounded by limit; it does not page.

GET/v1/sessionsBearer API keystable
async fn list_sessions(&self, query: &ListSessionsQuery) -> Result<ListSessionsResult, BrainHttpError>
Handshake credentialstable
async fn list_sessions(&self, request: &SessionListRequest) -> Result<SessionListResponse>

Parameters

ParameterTypeRequired
limitintegeroptional

Cap on returned sessions.

Returns

FieldTypePresence
space_idstringalways

The space listed.

sessionsSessionSummary[]always

Each with sessionId, both timestamps, an optional title, and memoryCount.

You do not choose your space on the HTTP tier

The space comes from the credential. These verbs act on the caller's space. Addressing another space per request is a wire-tier capability — see act_as. Per-end-user isolation is a storage-key prefix inside one space, not a key per user; see Namespaces.

See also
create_sessionmemory_list

Was this page helpful?

create_session

Create a session inside the caller's space, with an id you choose.

delete_session

Remove a session and its memories — tombstoned by default, zeroed with hard.

On this page

ParametersReturns
Suggest an editOpen in Playground