Skip to main content

Interface: Run

Implemented by

Properties

abortSignal

Optional abortSignal: AbortSignal

An AbortSignal that can be used to cancel any ongoing asynchronous operations tied to the run.

Defined in

packages/modelfusion/src/core/Run.ts:28


errorHandler

Optional errorHandler: ErrorHandler

Defined in

packages/modelfusion/src/core/Run.ts:36


functionObserver

Optional functionObserver: FunctionObserver

Optional field that represents the run as a function observer. When it is defined, the run will be notified of all function events.

Defined in

packages/modelfusion/src/core/Run.ts:34


runId

Optional runId: string

Unique identifier for a specific run. Primarily utilized for efficient referencing and tracking within logs.

Defined in

packages/modelfusion/src/core/Run.ts:9


sessionId

Optional sessionId: string

Unique identifier for a session. A session can contain multiple runs. For example, in a chatbot where each message is processed as a separate run, all those runs could be part of a single session. Useful for tracking and logging.

Defined in

packages/modelfusion/src/core/Run.ts:16


userId

Optional userId: string

The user ID of the individual who initiates the call. Useful for logging and can be configured to be forwarded to the model provider (like OpenAI).

Defined in

packages/modelfusion/src/core/Run.ts:22