Class: AgentSpan

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

Extends

Constructors

Constructor

new AgentSpan(data: AgentSpanOptions): AgentSpan;
Defined in: src/types/logging/span.types.ts:99

Parameters

data
AgentSpanOptions

Returns

AgentSpan

Overrides

StepWithChildSpans.constructor

Properties

agentType

agentType: AgentType;
Defined in: src/types/logging/span.types.ts:97

createdAt

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

Inherited from

StepWithChildSpans.createdAt

datasetInput?

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

Inherited from

StepWithChildSpans.datasetInput

datasetMetadata?

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

Inherited from

StepWithChildSpans.datasetMetadata

datasetOutput?

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

Inherited from

StepWithChildSpans.datasetOutput

externalId?

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

Inherited from

StepWithChildSpans.externalId

input

input: StepAllowedInputType;
Defined in: src/types/logging/span.types.ts:27

Inherited from

StepWithChildSpans.input

metrics

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

Inherited from

StepWithChildSpans.metrics

name

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

Inherited from

StepWithChildSpans.name

output?

optional output: StepAllowedOutputType;
Defined in: src/types/logging/step.types.ts:111

Inherited from

StepWithChildSpans.output

redactedInput?

optional redactedInput: StepAllowedInputType;
Defined in: src/types/logging/span.types.ts:28

Inherited from

StepWithChildSpans.redactedInput

redactedOutput?

optional redactedOutput: StepAllowedOutputType;
Defined in: src/types/logging/step.types.ts:112

Inherited from

StepWithChildSpans.redactedOutput

spans

spans: Span[] = [];
Defined in: src/types/logging/span.types.ts:42

Inherited from

StepWithChildSpans.spans

statusCode?

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

Inherited from

StepWithChildSpans.statusCode

stepNumber?

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

Inherited from

StepWithChildSpans.stepNumber

tags?

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

Inherited from

StepWithChildSpans.tags

type

type: StepType = StepType.agent;
Defined in: src/types/logging/span.types.ts:96

Overrides

StepWithChildSpans.type

userMetadata

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

Inherited from

StepWithChildSpans.userMetadata

Methods

addChildSpan()

addChildSpan(...spans: Span[]): void;
Defined in: src/types/logging/span.types.ts:57

Parameters

spans
Span[]

Returns

void

Inherited from

StepWithChildSpans.addChildSpan

toJSON()

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

Returns

Record<string, any>

Overrides

StepWithChildSpans.toJSON

validateInputOutputSerializable()

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

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

StepWithChildSpans.validateInputOutputSerializable