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.


Class: LogStream

Defined in: src/entities/log-streams.ts Represents a log stream instance with instance methods.

Constructors

Constructor

new LogStream(logStream: LogStreamType): LogStream;
Defined in: src/entities/log-streams.ts

Parameters

logStream
LogStreamType

Returns

LogStream

Properties

createdAt?

optional createdAt: string;
Defined in: src/entities/log-streams.ts

createdBy?

optional createdBy: null | string;
Defined in: src/entities/log-streams.ts

hasUserCreatedSessions?

optional hasUserCreatedSessions: boolean;
Defined in: src/entities/log-streams.ts

id

id: string;
Defined in: src/entities/log-streams.ts

name

name: string;
Defined in: src/entities/log-streams.ts

projectId

projectId: string;
Defined in: src/entities/log-streams.ts

updatedAt?

optional updatedAt: string;
Defined in: src/entities/log-streams.ts

Methods

enableMetrics()

enableMetrics(metrics: (
  | string
  | Metric
| LocalMetricConfig)[]): Promise<LocalMetricConfig[]>;
Defined in: src/entities/log-streams.ts Enables metrics directly on this log stream instance.

Parameters

metrics
( | string | Metric | LocalMetricConfig)[] List of metrics to enable on this log stream. Can include GalileoMetrics const object values, string names, Metric objects, or LocalMetricConfig objects with scorerFn for client-side scoring.

Returns

Promise<LocalMetricConfig[]> A promise that resolves to the list of local metric configurations that need client-side processing.