yr.SessionService

Contents

yr.SessionService#

class yr.SessionService(session_id: str)[source]#

Bases: object

Session Service Interface.

Provides load_session() method to load Session object for current invocation from libruntime memory. Does not directly query DataSystem, but calls libruntime’s LoadCurrentSession via bridge, libruntime reads the currently active AgentSessionContext from activeSessionMap.

Construct SessionService.

Parameters:

session_id – Session ID of current invocation (passed from Context)

Methods

__init__

Construct SessionService.

load_session

Load Session object for current invocation.