Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.galileo.ai/llms.txt

Use this file to discover all available pages before exploring further.


Interface: SerializedLlmSpan

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

Extends

Indexable

[key: string]:
  | undefined
  | string
  | number
  | boolean
  | {
  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[]
  | JsonArray
  | Record<string, string>[]
  | object[]
  | Record<string, string>[]
  | SingleMetricValue[]
| Record<string, SingleMetricValue>

Properties

createdAt

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

Inherited from

SerializedStep.createdAt

datasetInput?

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

Inherited from

SerializedStep.datasetInput

datasetMetadata?

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

Inherited from

SerializedStep.datasetMetadata

datasetOutput?

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

Inherited from

SerializedStep.datasetOutput

externalId?

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

Inherited from

SerializedStep.externalId

id?

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

Inherited from

SerializedStep.id

input?

optional input: StepAllowedInputType;
Defined in: src/types/logging/step.types.ts

Inherited from

SerializedStep.input

metadata?

optional metadata: Record<string, string>;
Defined in: src/types/logging/step.types.ts

Inherited from

SerializedStep.metadata

metrics?

optional metrics: object;
Defined in: src/types/logging/span.types.ts

durationNs?

optional durationNs: number;

numCachedInputTokens?

optional numCachedInputTokens: number;

numInputTokens?

optional numInputTokens: number;

numOutputTokens?

optional numOutputTokens: number;

numReasoningTokens?

optional numReasoningTokens: number;

numTotalTokens?

optional numTotalTokens: number;

timeToFirstTokenNs?

optional timeToFirstTokenNs: number;

Overrides

SerializedStep.metrics

name?

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

Inherited from

SerializedStep.name

output?

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

Inherited from

SerializedStep.output

redactedInput?

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

Inherited from

SerializedStep.redactedInput

redactedOutput?

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

Inherited from

SerializedStep.redactedOutput

statusCode?

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

Inherited from

SerializedStep.statusCode

stepNumber?

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

Inherited from

SerializedStep.stepNumber

tags?

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

Inherited from

SerializedStep.tags

type

type:
  | "agent"
  | "llm"
  | "retriever"
  | "tool"
  | "workflow"
  | "control"
  | "trace"
  | "session";
Defined in: src/types/logging/step.types.ts

Inherited from

SerializedStep.type

userMetadata

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

Inherited from

SerializedStep.userMetadata