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.
Class: LlmSpan
Defined in: src/types/logging/span.types.ts
Extends
Constructors
Constructor
new LlmSpan(data: LlmSpanOptions): LlmSpan;
Defined in: src/types/logging/span.types.ts
Parameters
data
LlmSpanOptions
Returns
LlmSpan
Overrides
BaseSpan.constructor
Properties
createdAt
Defined in: src/types/logging/step.types.ts
Inherited from
BaseSpan.createdAt
optional datasetInput: string;
Defined in: src/types/logging/step.types.ts
Inherited from
BaseSpan.datasetInput
optional datasetMetadata: Record<string, string> = {};
Defined in: src/types/logging/step.types.ts
Inherited from
BaseSpan.datasetMetadata
datasetOutput?
optional datasetOutput: string;
Defined in: src/types/logging/step.types.ts
Inherited from
BaseSpan.datasetOutput
events?
optional events: Event[];
Defined in: src/types/logging/span.types.ts
externalId?
optional externalId: string;
Defined in: src/types/logging/step.types.ts
Inherited from
BaseSpan.externalId
finishReason?
optional finishReason: string;
Defined in: src/types/logging/span.types.ts
Defined in: src/types/logging/step.types.ts
Inherited from
BaseSpan.id
Defined in: src/types/logging/span.types.ts
content
content:
| string
| (
| {
text: string;
type: "text";
}
| {
file_id: string;
type: "file";
})[];
Content
role
role:
| "function"
| "agent"
| "tool"
| "assistant"
| "developer"
| "system"
| "user";
optional tool_call_id: null | string;
Tool Call Id
optional tool_calls: null | object[];
Tool Calls
Overrides
BaseSpan.input
metrics
Defined in: src/types/logging/span.types.ts
Overrides
BaseSpan.metrics
model?
Defined in: src/types/logging/span.types.ts
name
Defined in: src/types/logging/step.types.ts
Inherited from
BaseSpan.name
output
Defined in: src/types/logging/span.types.ts
content
content:
| string
| (
| {
text: string;
type: "text";
}
| {
file_id: string;
type: "file";
})[];
Content
role
role:
| "function"
| "agent"
| "tool"
| "assistant"
| "developer"
| "system"
| "user";
optional tool_call_id: null | string;
Tool Call Id
optional tool_calls: null | object[];
Tool Calls
Overrides
BaseSpan.output
optional redactedInput: object[];
Defined in: src/types/logging/span.types.ts
content
content:
| string
| (
| {
text: string;
type: "text";
}
| {
file_id: string;
type: "file";
})[];
Content
role
role:
| "function"
| "agent"
| "tool"
| "assistant"
| "developer"
| "system"
| "user";
optional tool_call_id: null | string;
Tool Call Id
optional tool_calls: null | object[];
Tool Calls
Overrides
BaseSpan.redactedInput
redactedOutput?
optional redactedOutput: object;
Defined in: src/types/logging/span.types.ts
content
content:
| string
| (
| {
text: string;
type: "text";
}
| {
file_id: string;
type: "file";
})[];
Content
role
role:
| "function"
| "agent"
| "tool"
| "assistant"
| "developer"
| "system"
| "user";
optional tool_call_id: null | string;
Tool Call Id
optional tool_calls: null | object[];
Tool Calls
Overrides
BaseSpan.redactedOutput
statusCode?
optional statusCode: number;
Defined in: src/types/logging/step.types.ts
Inherited from
BaseSpan.statusCode
stepNumber?
optional stepNumber: number;
Defined in: src/types/logging/step.types.ts
Inherited from
BaseSpan.stepNumber
Defined in: src/types/logging/step.types.ts
Inherited from
BaseSpan.tags
temperature?
optional temperature: number;
Defined in: src/types/logging/span.types.ts
optional tools: JsonObject[];
Defined in: src/types/logging/span.types.ts
type
type:
| "agent"
| "llm"
| "retriever"
| "tool"
| "workflow"
| "control"
| "trace"
| "session" = StepType.llm;
Defined in: src/types/logging/span.types.ts
Overrides
BaseSpan.type
userMetadata: Record<string, string> = {};
Defined in: src/types/logging/step.types.ts
Inherited from
BaseSpan.userMetadata
Methods
toJSON()
toJSON(): SerializedLlmSpan;
Defined in: src/types/logging/span.types.ts
Returns
SerializedLlmSpan
Overrides
BaseSpan.toJSON
validateInputOutputSerializable<T>(val: T): T;
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
Inherited from
BaseSpan.validateInputOutputSerializable