Class: WorkflowSpan

Defined in: src/types/log.types.ts:140

Extends

Constructors

Constructor

new WorkflowSpan(data: object): WorkflowSpan;

Defined in: src/types/log.types.ts:144

Parameters

data
createdAtNs?

number

durationNs?

number

groundTruth?

string

input

StepIOType

metadata?

Record<string, string>

name?

string

output?

StepIOType

parent?

StepWithChildSpans

spans?

Span[]

statusCode?

number

tags?

string[]

Returns

WorkflowSpan

Overrides

StepWithChildSpans.constructor

Properties

createdAtNs

createdAtNs: number;

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

Inherited from

StepWithChildSpans.createdAtNs


durationNs

durationNs: number = 0;

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

Inherited from

StepWithChildSpans.durationNs


externalId?

optional externalId: string;

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

Inherited from

StepWithChildSpans.externalId


groundTruth?

optional groundTruth: string;

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

Inherited from

StepWithChildSpans.groundTruth


input

input: StepIOType;

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

Inherited from

StepWithChildSpans.input


metrics

metrics: Metrics = {};

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

Inherited from

StepWithChildSpans.metrics


modelConfig?

optional modelConfig: Record<string, any>;

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

Inherited from

StepWithChildSpans.modelConfig


name

name: string = "";

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

Inherited from

StepWithChildSpans.name


output

output: StepIOType = "";

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

Inherited from

StepWithChildSpans.output


parent?

optional parent: StepWithChildSpans;

Defined in: src/types/log.types.ts:142


spans

spans: Span[] = [];

Defined in: src/types/log.types.ts:67

Inherited from

StepWithChildSpans.spans


statusCode?

optional statusCode: number;

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

Inherited from

StepWithChildSpans.statusCode


tags?

optional tags: string[];

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

Inherited from

StepWithChildSpans.tags


type

type: NodeType = NodeType.workflow;

Defined in: src/types/log.types.ts:141

Overrides

StepWithChildSpans.type


userMetadata

userMetadata: Record<string, string> = {};

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

Inherited from

StepWithChildSpans.userMetadata

Methods

addChild()

addChild(...spans: Span[]): void;

Defined in: src/types/log.types.ts:171

Parameters

spans

Span[]

Returns

void


addChildSpan()

addChildSpan(...spans: Span[]): void;

Defined in: src/types/log.types.ts:96

Parameters

spans

Span[]

Returns

void

Inherited from

StepWithChildSpans.addChildSpan


children()

children(): BaseStep[];

Defined in: src/types/log.types.ts:167

Returns

BaseStep[]

Overrides

StepWithChildSpans.children


toJSON()

toJSON(): Record<string, any>;

Defined in: src/types/log.types.ts:177

Returns

Record<string, any>

Overrides

StepWithChildSpans.toJSON


validateInputOutputSerializable()

validateInputOutputSerializable(val: StepIOType): StepIOType;

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

Parameters

val

StepIOType

Returns

StepIOType

Inherited from

StepWithChildSpans.validateInputOutputSerializable