Skip to main content

Class: BaseStep

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

Extended by

Constructors

Constructor

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

Parameters

type
"agent" | "llm" | "retriever" | "tool" | "workflow" | "control" | "trace" | "session"
data
BaseStepOptions

Returns

BaseStep

Properties

createdAt

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

datasetInput?

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

datasetMetadata?

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

datasetOutput?

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

externalId?

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

id

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

input?

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

metrics

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

name

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

output?

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

redactedInput?

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

redactedOutput?

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

statusCode?

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

stepNumber?

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

tags?

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

type

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

userMetadata

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

Methods

toJSON()

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

Returns

SerializedStep

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