@@ -29,49 +29,49 @@ public class MessageStreamEventJsonConverter : global::System.Text.Json.Serializ
2929 start = global ::System . Text . Json . JsonSerializer . Deserialize ( ref reader , typeInfo ) ;
3030 }
3131 global ::Anthropic . MessageDeltaEvent ? delta = default ;
32- if ( discriminator ? . Type == global ::Anthropic . MessageStreamEventDiscriminatorType . MessageStart )
32+ if ( discriminator ? . Type == global ::Anthropic . MessageStreamEventDiscriminatorType . MessageDelta )
3333 {
3434 var typeInfo = typeInfoResolver . GetTypeInfo ( typeof ( global ::Anthropic . MessageDeltaEvent ) , options ) as global ::System . Text . Json . Serialization . Metadata . JsonTypeInfo < global ::Anthropic . MessageDeltaEvent > ??
3535 throw new global ::System . InvalidOperationException ( $ "Cannot get type info for { nameof ( global ::Anthropic . MessageDeltaEvent ) } ") ;
3636 delta = global ::System . Text . Json . JsonSerializer . Deserialize ( ref reader , typeInfo ) ;
3737 }
3838 global ::Anthropic . MessageStopEvent ? stop = default ;
39- if ( discriminator ? . Type == global ::Anthropic . MessageStreamEventDiscriminatorType . MessageStart )
39+ if ( discriminator ? . Type == global ::Anthropic . MessageStreamEventDiscriminatorType . MessageStop )
4040 {
4141 var typeInfo = typeInfoResolver . GetTypeInfo ( typeof ( global ::Anthropic . MessageStopEvent ) , options ) as global ::System . Text . Json . Serialization . Metadata . JsonTypeInfo < global ::Anthropic . MessageStopEvent > ??
4242 throw new global ::System . InvalidOperationException ( $ "Cannot get type info for { nameof ( global ::Anthropic . MessageStopEvent ) } ") ;
4343 stop = global ::System . Text . Json . JsonSerializer . Deserialize ( ref reader , typeInfo ) ;
4444 }
4545 global ::Anthropic . ContentBlockStartEvent ? contentBlockStart = default ;
46- if ( discriminator ? . Type == global ::Anthropic . MessageStreamEventDiscriminatorType . MessageStart )
46+ if ( discriminator ? . Type == global ::Anthropic . MessageStreamEventDiscriminatorType . ContentBlockStart )
4747 {
4848 var typeInfo = typeInfoResolver . GetTypeInfo ( typeof ( global ::Anthropic . ContentBlockStartEvent ) , options ) as global ::System . Text . Json . Serialization . Metadata . JsonTypeInfo < global ::Anthropic . ContentBlockStartEvent > ??
4949 throw new global ::System . InvalidOperationException ( $ "Cannot get type info for { nameof ( global ::Anthropic . ContentBlockStartEvent ) } ") ;
5050 contentBlockStart = global ::System . Text . Json . JsonSerializer . Deserialize ( ref reader , typeInfo ) ;
5151 }
5252 global ::Anthropic . ContentBlockDeltaEvent ? contentBlockDelta = default ;
53- if ( discriminator ? . Type == global ::Anthropic . MessageStreamEventDiscriminatorType . MessageStart )
53+ if ( discriminator ? . Type == global ::Anthropic . MessageStreamEventDiscriminatorType . ContentBlockDelta )
5454 {
5555 var typeInfo = typeInfoResolver . GetTypeInfo ( typeof ( global ::Anthropic . ContentBlockDeltaEvent ) , options ) as global ::System . Text . Json . Serialization . Metadata . JsonTypeInfo < global ::Anthropic . ContentBlockDeltaEvent > ??
5656 throw new global ::System . InvalidOperationException ( $ "Cannot get type info for { nameof ( global ::Anthropic . ContentBlockDeltaEvent ) } ") ;
5757 contentBlockDelta = global ::System . Text . Json . JsonSerializer . Deserialize ( ref reader , typeInfo ) ;
5858 }
5959 global ::Anthropic . ContentBlockStopEvent ? contentBlockStop = default ;
60- if ( discriminator ? . Type == global ::Anthropic . MessageStreamEventDiscriminatorType . MessageStart )
60+ if ( discriminator ? . Type == global ::Anthropic . MessageStreamEventDiscriminatorType . ContentBlockStop )
6161 {
6262 var typeInfo = typeInfoResolver . GetTypeInfo ( typeof ( global ::Anthropic . ContentBlockStopEvent ) , options ) as global ::System . Text . Json . Serialization . Metadata . JsonTypeInfo < global ::Anthropic . ContentBlockStopEvent > ??
6363 throw new global ::System . InvalidOperationException ( $ "Cannot get type info for { nameof ( global ::Anthropic . ContentBlockStopEvent ) } ") ;
6464 contentBlockStop = global ::System . Text . Json . JsonSerializer . Deserialize ( ref reader , typeInfo ) ;
6565 }
6666 global ::Anthropic . PingEvent ? ping = default ;
67- if ( discriminator ? . Type == global ::Anthropic . MessageStreamEventDiscriminatorType . MessageStart )
67+ if ( discriminator ? . Type == global ::Anthropic . MessageStreamEventDiscriminatorType . Ping )
6868 {
6969 var typeInfo = typeInfoResolver . GetTypeInfo ( typeof ( global ::Anthropic . PingEvent ) , options ) as global ::System . Text . Json . Serialization . Metadata . JsonTypeInfo < global ::Anthropic . PingEvent > ??
7070 throw new global ::System . InvalidOperationException ( $ "Cannot get type info for { nameof ( global ::Anthropic . PingEvent ) } ") ;
7171 ping = global ::System . Text . Json . JsonSerializer . Deserialize ( ref reader , typeInfo ) ;
7272 }
7373 global ::Anthropic . ErrorEvent ? error = default ;
74- if ( discriminator ? . Type == global ::Anthropic . MessageStreamEventDiscriminatorType . MessageStart )
74+ if ( discriminator ? . Type == global ::Anthropic . MessageStreamEventDiscriminatorType . Error )
7575 {
7676 var typeInfo = typeInfoResolver . GetTypeInfo ( typeof ( global ::Anthropic . ErrorEvent ) , options ) as global ::System . Text . Json . Serialization . Metadata . JsonTypeInfo < global ::Anthropic . ErrorEvent > ??
7777 throw new global ::System . InvalidOperationException ( $ "Cannot get type info for { nameof ( global ::Anthropic . ErrorEvent ) } ") ;
0 commit comments