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
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/span.types.ts
content
Content
role
role:
| "function"
| "agent"
| "tool"
| "user"
| "assistant"
| "developer"
| "system";
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
role
role:
| "function"
| "agent"
| "tool"
| "user"
| "assistant"
| "developer"
| "system";
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
role
role:
| "function"
| "agent"
| "tool"
| "user"
| "assistant"
| "developer"
| "system";
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
role
role:
| "function"
| "agent"
| "tool"
| "user"
| "assistant"
| "developer"
| "system";
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: Record<string, any>[];
Defined in: src/types/logging/span.types.ts
type
type: "agent" | "llm" | "retriever" | "tool" | "workflow" | "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(): Record<string, any>;
Defined in: src/types/logging/span.types.ts
Returns
Record<string, any>
Overrides
BaseSpan.toJSON
validateInputOutputSerializable<T>(val: T): T;
Defined in: src/types/logging/step.types.ts
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
Inherited from
BaseSpan.validateInputOutputSerializable