@@ -4,9 +4,7 @@ import type {
44 LlmSpanAllowedInputType ,
55 LlmSpanAllowedOutputType
66} from '../../types/logging/step.types' ;
7- import type { Span } from '../../types/logging/span.types' ;
8- import { Trace } from '../../types/logging/trace.types' ;
9- import type { ToolDefinition } from './base-streaming-adapter' ;
7+ import type { JsonObject } from '../../types/base.types' ;
108
119/**
1210 * Configuration for streaming finalization
@@ -19,7 +17,7 @@ export interface StreamingFinalizerConfig {
1917 model ?: string ;
2018 metadata ?: Record < string , string > ;
2119 name ?: string ;
22- tools ?: ToolDefinition [ ] ;
20+ tools ?: JsonObject [ ] ;
2321 temperature ?: number ;
2422 } ;
2523 shouldCompleteTrace : boolean ;
@@ -82,32 +80,4 @@ export class StreamingFinalizer {
8280 } ) ;
8381 }
8482 }
85-
86- /**
87- * Update span incrementally during streaming (for real-time updates)
88- * @param output Current output state (can be partial)
89- * @param spanId Optional span ID if available (currently unused, reserved for future use)
90- */
91- updateSpanIncremental (
92- output : LlmSpanAllowedOutputType ,
93- spanId ?: string
94- ) : void {
95- void spanId ;
96- // Get current parent span or trace
97- const currentParent = this . logger . currentParent ( ) ;
98-
99- if ( ! currentParent ) {
100- // No active span/trace, skip incremental update
101- return ;
102- }
103-
104- // Call streaming update methods (mock implementations in GalileoLogger)
105- if ( currentParent instanceof Trace ) {
106- // Update trace with partial output during streaming
107- this . logger . _updateTraceStreaming ( currentParent , output , false ) ;
108- } else {
109- // currentParent is a Span (WorkflowSpan, AgentSpan, LlmSpan, etc.)
110- this . logger . _updateSpanStreaming ( currentParent as Span , output ) ;
111- }
112- }
11383}
0 commit comments