Profile

Profile-based chat session persistence for Python users

Classes

Class Description
Profile A named storage namespace for chat sessions.

Functions

Function Description
new_session_id() Generate a new RFC 4122 UUIDv4 session ID.

class Profile

Profile(self, name: str | None = None)

A named storage namespace for chat sessions.

Quick Reference

Properties

Name Type
database Database
name str
path Path

Methods

Method Description
delete() Delete a session from this profile.
sessions() List sessions in this profile.

Properties

database: Database

Underlying Database instance for this profile.

name: str

Profile name.

path: Path

Storage directory path (~/.talu/db/<name>/).

Methods

def delete(self, session_id: str)None

Delete a session from this profile.

Parameters
session_id

ID of the session to delete.

def sessions(
    self,
    search: str | None = None,
    limit: int = 50
)list[SessionRecord]

List sessions in this profile.

Parameters
search

Filter sessions by text content.

limit

Maximum number of sessions to return.


def new_session_id

talu.profile.new_session_id()str

Generate a new RFC 4122 UUIDv4 session ID.