Enkaidu::SessionManager
Inherits Reference < Object
Manager a stack of sessions
Constructors
new(session : Session)
SourceInstance methods
ask_forked_session(query : String, keep_history = false, exclude_last_turn = false) : String | Nil
Push a session in current stack, make a query, and then extract the session outline
before popping the session. Return the extracted session as a JSON string,
or nil on error.
current
Sourcedeploy_injected_functions(session)
Sourceeach
Sourcegoto_session_stack(name : String)
Sourcehas_session_stack?(name : String)
Sourceinject_function(tool : LLM::LocalFunction)
Inject functions / tools that will be available in all sessions
new_session_stack(name : String, model_name : String | Nil, &)
Creates a new named session stack and switches to it