6 writes to Id
Microsoft.AspNetCore.Components.AI (6)
Blocks\FunctionInvocationContentBlock.cs (1)
39Id = value.CallId;
Pipeline\ActivityHandler.cs (1)
24state.Id = context.Update.MessageId ?? Guid.NewGuid().ToString("N");
Pipeline\FunctionApprovalHandler.cs (1)
34Id = approvalRequest.ToolCall is FunctionCallContent functionCall
Pipeline\RichTextContentHandler.cs (1)
48state.Id = context.Update.MessageId ?? Guid.NewGuid().ToString("N");
Pipeline\TextBlockHandler.cs (1)
41state.Id = context.Update.MessageId ?? Guid.NewGuid().ToString("N");
Pipeline\UIActionHandler.cs (1)
35Id = call.CallId ?? Guid.NewGuid().ToString("N")
13 references to Id
Microsoft.AspNetCore.Components.AI (13)
Blocks\UIActionBlock.cs (1)
86Result = new FunctionResultContent(Call.CallId ?? Id, result);
Pipeline\ActivityHandler.cs (2)
18if (state.Id == string.Empty) 22if (state.Id.Length == 0)
Pipeline\BlockMappingPipeline.cs (4)
73BlockMappingPipelineLog.ActiveHandlerResult(_logger, active.Block.GetType().Name, result.Kind.ToString(), active.Block.Id); 125BlockMappingPipelineLog.ActiveHandlerResult(_logger, emitBlock.GetType().Name, catchUpResult.Kind.ToString(), emitBlock.Id); 139BlockMappingPipelineLog.EmittingBlock(_logger, emitBlock.GetType().Name, emitBlock.Id, emitBlock.Role?.Value); 176if (string.IsNullOrEmpty(block.Id))
Pipeline\RichTextContentHandler.cs (4)
24return state.Id.Length > 0 29if (state.Id.Length > 0 && 31!string.Equals(state.Id, messageId, StringComparison.Ordinal)) 46if (state.Id.Length == 0)
Pipeline\TextBlockHandler.cs (2)
27if (state.Id != string.Empty) 39if (state.Id == string.Empty)