Skip to main content

Class: LlmSpan

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

Extends

Constructors

Constructor

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

Parameters

data
LlmSpanOptions

Returns

LlmSpan

Overrides

BaseSpan.constructor

Properties

createdAt

Defined in: src/types/logging/step.types.ts

Inherited from

BaseSpan.createdAt

datasetInput?

Defined in: src/types/logging/step.types.ts

Inherited from

BaseSpan.datasetInput

datasetMetadata?

Defined in: src/types/logging/step.types.ts

Inherited from

BaseSpan.datasetMetadata

datasetOutput?

Defined in: src/types/logging/step.types.ts

Inherited from

BaseSpan.datasetOutput

events?

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

externalId?

Defined in: src/types/logging/step.types.ts

Inherited from

BaseSpan.externalId

finishReason?

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

id

Defined in: src/types/logging/step.types.ts

Inherited from

BaseSpan.id

input

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

content

Content

role

tool_call_id?

Tool Call Id

tool_calls?

Tool Calls

Overrides

BaseSpan.input

metrics

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

Overrides

BaseSpan.metrics

model?

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

name

Defined in: src/types/logging/step.types.ts

Inherited from

BaseSpan.name

output

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

content

Content

role

tool_call_id?

Tool Call Id

tool_calls?

Tool Calls

Overrides

BaseSpan.output

redactedInput?

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

content

Content

role

tool_call_id?

Tool Call Id

tool_calls?

Tool Calls

Overrides

BaseSpan.redactedInput

redactedOutput?

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

content

Content

role

tool_call_id?

Tool Call Id

tool_calls?

Tool Calls

Overrides

BaseSpan.redactedOutput

statusCode?

Defined in: src/types/logging/step.types.ts

Inherited from

BaseSpan.statusCode

stepNumber?

Defined in: src/types/logging/step.types.ts

Inherited from

BaseSpan.stepNumber

tags?

Defined in: src/types/logging/step.types.ts

Inherited from

BaseSpan.tags

temperature?

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

tools?

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

type

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

Overrides

BaseSpan.type

userMetadata

Defined in: src/types/logging/step.types.ts

Inherited from

BaseSpan.userMetadata

Methods

toJSON()

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

Returns

SerializedLlmSpan

Overrides

BaseSpan.toJSON

validateInputOutputSerializable()

Defined in: src/types/logging/step.types.ts

Type Parameters

T
T = | string | { content: | string | ( | { text: string; type: "text"; } | { file_id: string; type: "file"; })[]; role: | "function" | "agent" | "tool" | "assistant" | "developer" | "system" | "user"; tool_call_id?: null | string; tool_calls?: null | object[]; } | string[] | Date | Document | Record<string, string> | Document[] | Record<string, string>[] | object[] | Record<string, string>[]

Parameters

val
T

Returns

T

Inherited from

BaseSpan.validateInputOutputSerializable