Optional
options: IBeakerSessionOptionsA reference to the Jupyter KernelConnection object for this session.
A reference to the Jupyter ServiceManager which contains all of the services for this session.
A reference to the underlying Jupyter SessionContext for this Beaker Session.
A promise that resolves once everything the session requires are also ready.
Returns the status of the Beaker kernel
Returns a promise that once resolved provides detailed information about the active context.
The code
contents of the cell.
(Optional) Any metadata to be associated with the cell.
(Optional) Any outputs that should be included/displayed.
Convenience method for adding a MarkdownCell to the notebook
The raw markdown encoded text that should be rendered upon execute
(Optional) Any metadata to be associated with the cell.
Convenience method for adding a QueryCell to the notebook
The contents of the query for the LLM as a plain string
(Optional) Any metadata to be associated with the cell.
Convenience method for adding a RawCell to the notebook
The raw contents to be included in the raw cell.
(Optional) Any metadata to be associated with the cell.
Returns a promise, that once resolved provides all Beaker contexts available in the session.
Executes a Beaker Action, handling all of the message
The usual IBeakerFuture response handlers can be applied to the returned future to do act upon the responses.
Name of the action to execute
Payload to pass along with the action
Optional
messageId: string(Optional) Id for request message. If not provided, will be generated automatically.
Interrupt the kernel activity, stopping execution in both the beaker LLM ReAct loop and the subkernel as needed. See
Populates the sessions notebook with the provided notebook json
The json representation of a notebook, as found inside an .ipynb file
Low-level method for reconnecting to the kernel.
Completely resets the session, clearing the notebook and history, and restarting the fresh kernel so it is in a fresh state.
Low-level method for sending a message to the Beaker kernel over the "shell" channel.
The message type, as passed in msg.header.msg_type
Any JSON-encodable payload to be included with the message
Optional
messageId: string(Optional) Pre-defined id for the message. One will be generated if not provided.
Optional
metadata: { [key: string]: any }
Main class for connecting to and working with a Beaker kernel.