Skip to main content

Class: WorkflowSpan

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

Extends

Constructors

Constructor

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

Parameters

data
WorkflowSpanOptions

Returns

WorkflowSpan

Overrides

StepWithChildSpans.constructor

Properties

createdAt

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

Inherited from

StepWithChildSpans.createdAt

datasetInput?

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

Inherited from

StepWithChildSpans.datasetInput

datasetMetadata?

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

Inherited from

StepWithChildSpans.datasetMetadata

datasetOutput?

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

Inherited from

StepWithChildSpans.datasetOutput

externalId?

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

Inherited from

StepWithChildSpans.externalId

id

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

Inherited from

StepWithChildSpans.id

input

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

Inherited from

StepWithChildSpans.input

metrics

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

Inherited from

StepWithChildSpans.metrics

name

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

Inherited from

StepWithChildSpans.name

output?

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

Inherited from

StepWithChildSpans.output

redactedInput?

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

Inherited from

StepWithChildSpans.redactedInput

redactedOutput?

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

Inherited from

StepWithChildSpans.redactedOutput

spans

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

Inherited from

StepWithChildSpans.spans

statusCode?

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

Inherited from

StepWithChildSpans.statusCode

stepNumber?

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

Inherited from

StepWithChildSpans.stepNumber

tags?

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

Inherited from

StepWithChildSpans.tags

type

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

Overrides

StepWithChildSpans.type

userMetadata

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

Inherited from

StepWithChildSpans.userMetadata

Methods

addChildSpan()

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

Parameters

spans
Span[]

Returns

void

Inherited from

StepWithChildSpans.addChildSpan

toJSON()

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

Returns

SerializedStepWithChildSpans

Inherited from

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

StepWithChildSpans.validateInputOutputSerializable