Class: SpanWithParentStep

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

Extends

  • BaseStep

Constructors

Constructor

new SpanWithParentStep(data: object): SpanWithParentStep;

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

Parameters

data
createdAtNs?

number

durationNs?

number

groundTruth?

string

input

StepIOType

metadata?

Record<string, string>

name?

string

output?

StepIOType

parent?

StepWithChildSpans

statusCode?

number

type?

NodeType

Returns

SpanWithParentStep

Overrides

BaseStep.constructor;

Properties

createdAtNs

createdAtNs: number;

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

Inherited from

BaseStep.createdAtNs;

durationNs

durationNs: number = 0;

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

Inherited from

BaseStep.durationNs;

externalId?

optional externalId: string;

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

Inherited from

BaseStep.externalId;

groundTruth?

optional groundTruth: string;

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

Inherited from

BaseStep.groundTruth;

input

input: StepIOType;

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

Inherited from

BaseStep.input;

metrics

metrics: Metrics = {};

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

Inherited from

BaseStep.metrics;

modelConfig?

optional modelConfig: Record<string, any>;

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

Inherited from

BaseStep.modelConfig;

name

name: string = "";

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

Inherited from

BaseStep.name;

output

output: StepIOType = "";

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

Inherited from

BaseStep.output;

parent?

optional parent: StepWithChildSpans;

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


statusCode?

optional statusCode: number;

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

Inherited from

BaseStep.statusCode;

tags?

optional tags: string[];

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

Inherited from

BaseStep.tags;

type

type: NodeType = NodeType.workflow;

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

Inherited from

BaseStep.type;

userMetadata

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

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

Inherited from

BaseStep.userMetadata;

Methods

toJSON()

toJSON(): Record<string, any>;

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

Returns

Record<string, any>

Overrides

BaseStep.toJSON;

validateInputOutputSerializable()

validateInputOutputSerializable(val: StepIOType): StepIOType;

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

Parameters

val

StepIOType

Returns

StepIOType

Inherited from

BaseStep.validateInputOutputSerializable;