Skip to main content

Class: StepWithChildSpans

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

Extends

Extended by

Constructors

Constructor

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

Parameters

type
"agent" | "llm" | "retriever" | "tool" | "workflow" | "control" | "trace" | "session"
data
StepWithChildSpansOptions

Returns

StepWithChildSpans

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

externalId?

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

Inherited from

BaseSpan.externalId

id

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

Inherited from

BaseSpan.id

input

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

Inherited from

BaseSpan.input

metrics

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

Inherited from

BaseSpan.metrics

name

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

Inherited from

BaseSpan.name

output?

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

Inherited from

BaseSpan.output

redactedInput?

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

Inherited from

BaseSpan.redactedInput

redactedOutput?

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

Inherited from

BaseSpan.redactedOutput

spans

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

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

type

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

Inherited from

BaseSpan.type

userMetadata

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

Inherited from

BaseSpan.userMetadata

Methods

addChildSpan()

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

Parameters

spans
Span[]

Returns

void

toJSON()

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

Returns

SerializedStepWithChildSpans

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