Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.galileo.ai/llms.txt

Use this file to discover all available pages before exploring further.


Function: init()

function init(options: GetLoggerOptions & object): Promise<void>;
Defined in: src/singleton.ts Gets or creates a logger and optionally initializes a session. Note: When startNewSession is true and an existing session is found via externalId, it is returned as-is. All other session options (sessionName, previousSessionId, metadata) are ignored in that case - they only apply when creating a new session. To update an existing session, use an explicit update method.

Parameters

options

GetLoggerOptions & object = {} Configuration options to initialize the logger

Returns

Promise<void> A promise that resolves when initialization is complete