Class: BaseStep
Defined in: src/types/logging/step.types.tsExtended by
Constructors
Constructor
Parameters
type
"agent" | "llm" | "retriever" | "tool" | "workflow" | "trace" | "session"
data
BaseStepOptions
Returns
BaseStep
Properties
createdAt
datasetInput?
datasetMetadata?
datasetOutput?
externalId?
input?
metrics
name
output?
redactedInput?
redactedOutput?
statusCode?
stepNumber?
tags?
type
userMetadata
Methods
toJSON()
Returns
Record<string, any>
validateInputOutputSerializable()
Type Parameters
T
T =
| string
| {
content: string;
role: | "function"
| "agent"
| "tool"
| "user"
| "assistant"
| "developer"
| "system";
tool_call_id?: null | string;
tool_calls?: null | object[];
}
| string[]
| Document
| Record<string, string>
| Document[]
| Record<string, string>[]
| object[]
| Record<string, string>[]
Parameters
val
T
Returns
T