Class: LlmSpan

Defined in: src/types/logging/span.types.ts:153

Extends

Constructors

Constructor

new LlmSpan(data: LlmSpanOptions): LlmSpan;
Defined in: src/types/logging/span.types.ts:164

Parameters

data
LlmSpanOptions

Returns

LlmSpan

Overrides

BaseSpan.constructor

Properties

createdAt

createdAt: Date;
Defined in: src/types/logging/step.types.ts:110

Inherited from

BaseSpan.createdAt

datasetInput?

optional datasetInput: string;
Defined in: src/types/logging/step.types.ts:117

Inherited from

BaseSpan.datasetInput

datasetMetadata?

optional datasetMetadata: Record<string, string> = {};
Defined in: src/types/logging/step.types.ts:119

Inherited from

BaseSpan.datasetMetadata

datasetOutput?

optional datasetOutput: string;
Defined in: src/types/logging/step.types.ts:118

Inherited from

BaseSpan.datasetOutput

externalId?

optional externalId: string;
Defined in: src/types/logging/step.types.ts:115

Inherited from

BaseSpan.externalId

finishReason?

optional finishReason: string;
Defined in: src/types/logging/span.types.ts:162

input

input: Message[];
Defined in: src/types/logging/span.types.ts:155

Overrides

BaseSpan.input

metrics

metrics: LlmMetrics;
Defined in: src/types/logging/span.types.ts:157

Overrides

BaseSpan.metrics

model?

optional model: string;
Defined in: src/types/logging/span.types.ts:160

name

name: string = "";
Defined in: src/types/logging/step.types.ts:109

Inherited from

BaseSpan.name

output

output: Message;
Defined in: src/types/logging/span.types.ts:156

Overrides

BaseSpan.output

statusCode?

optional statusCode: number;
Defined in: src/types/logging/step.types.ts:113

Inherited from

BaseSpan.statusCode

stepNumber?

optional stepNumber: number;
Defined in: src/types/logging/step.types.ts:116

Inherited from

BaseSpan.stepNumber

tags?

optional tags: string[];
Defined in: src/types/logging/step.types.ts:112

Inherited from

BaseSpan.tags

temperature?

optional temperature: number;
Defined in: src/types/logging/span.types.ts:161

tools?

optional tools: Record<string, any>[];
Defined in: src/types/logging/span.types.ts:159

type

type: StepType = StepType.llm;
Defined in: src/types/logging/span.types.ts:154

Overrides

BaseSpan.type

userMetadata

userMetadata: Record<string, string> = {};
Defined in: src/types/logging/step.types.ts:111

Inherited from

BaseSpan.userMetadata

Methods

toJSON()

toJSON(): Record<string, any>;
Defined in: src/types/logging/span.types.ts:179

Returns

Record<string, any>

Overrides

BaseSpan.toJSON

validateInputOutputSerializable()

validateInputOutputSerializable<T>(val: T): T;
Defined in: src/types/logging/step.types.ts:142

Type Parameters

T
T = | string | string[] | Document | Message | Record<string, string> | Message[] | Record<string, string>[] | Record<string, string>[] | Document[]

Parameters

val
T

Returns

T

Inherited from

BaseSpan.validateInputOutputSerializable