Skip to main content

Class: RetrieverSpan

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

Extends

Constructors

Constructor

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

Parameters

data
RetrieverSpanOptions

Returns

RetrieverSpan

Overrides

BaseStep.constructor

Properties

createdAt

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

Inherited from

BaseStep.createdAt

datasetInput?

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

Inherited from

BaseStep.datasetInput

datasetMetadata?

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

Inherited from

BaseStep.datasetMetadata

datasetOutput?

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

Inherited from

BaseStep.datasetOutput

externalId?

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

Inherited from

BaseStep.externalId

id

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

Inherited from

BaseStep.id

input

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

Overrides

BaseStep.input

metrics

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

Inherited from

BaseStep.metrics

name

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

Inherited from

BaseStep.name

output

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

Overrides

BaseStep.output

redactedInput?

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

Overrides

BaseStep.redactedInput

redactedOutput?

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

Overrides

BaseStep.redactedOutput

statusCode?

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

Inherited from

BaseStep.statusCode

stepNumber?

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

Inherited from

BaseStep.stepNumber

tags?

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

Inherited from

BaseStep.tags

type

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

Overrides

BaseStep.type

userMetadata

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

Inherited from

BaseStep.userMetadata

Methods

toJSON()

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

Returns

SerializedRetrieverSpan

Overrides

BaseStep.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

BaseStep.validateInputOutputSerializable