Class: ToolSpan

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

Extends

Constructors

Constructor

new ToolSpan(data: ToolSpanOptions): ToolSpan;
Defined in: src/types/logging/span.types.ts:229

Parameters

data
ToolSpanOptions

Returns

ToolSpan

Overrides

BaseStep.constructor

Properties

createdAt

createdAt: Date;
Defined in: src/types/logging/step.types.ts:110

Inherited from

BaseStep.createdAt

datasetInput?

optional datasetInput: string;
Defined in: src/types/logging/step.types.ts:117

Inherited from

BaseStep.datasetInput

datasetMetadata?

optional datasetMetadata: Record<string, string> = {};
Defined in: src/types/logging/step.types.ts:119

Inherited from

BaseStep.datasetMetadata

datasetOutput?

optional datasetOutput: string;
Defined in: src/types/logging/step.types.ts:118

Inherited from

BaseStep.datasetOutput

externalId?

optional externalId: string;
Defined in: src/types/logging/step.types.ts:115

Inherited from

BaseStep.externalId

input

input: string;
Defined in: src/types/logging/span.types.ts:225

Overrides

BaseStep.input

metrics

metrics: Metrics;
Defined in: src/types/logging/step.types.ts:114

Inherited from

BaseStep.metrics

name

name: string = "";
Defined in: src/types/logging/step.types.ts:109

Inherited from

BaseStep.name

output

output: string;
Defined in: src/types/logging/span.types.ts:226

Overrides

BaseStep.output

statusCode?

optional statusCode: number;
Defined in: src/types/logging/step.types.ts:113

Inherited from

BaseStep.statusCode

stepNumber?

optional stepNumber: number;
Defined in: src/types/logging/step.types.ts:116

Inherited from

BaseStep.stepNumber

tags?

optional tags: string[];
Defined in: src/types/logging/step.types.ts:112

Inherited from

BaseStep.tags

toolCallId?

optional toolCallId: string;
Defined in: src/types/logging/span.types.ts:227

type

type: StepType = StepType.tool;
Defined in: src/types/logging/span.types.ts:224

Overrides

BaseStep.type

userMetadata

userMetadata: Record<string, string> = {};
Defined in: src/types/logging/step.types.ts:111

Inherited from

BaseStep.userMetadata

Methods

toJSON()

toJSON(): Record<string, any>;
Defined in: src/types/logging/span.types.ts:241

Returns

Record<string, any>

Overrides

BaseStep.toJSON

validateInputOutputSerializable()

validateInputOutputSerializable<T>(val: T): T;
Defined in: src/types/logging/step.types.ts:142

Type Parameters

T
T = | string | string[] | Document | Message | Record<string, string> | Message[] | Record<string, string>[] | Record<string, string>[] | Document[]

Parameters

val
T

Returns

T

Inherited from

BaseStep.validateInputOutputSerializable