2 writes to SerializerOptions
Microsoft.Extensions.AI (2)
Functions\AIFunctionFactory.cs (2)
84SerializerOptions = serializerOptions ?? _defaultOptions.SerializerOptions, 162SerializerOptions = serializerOptions ?? _defaultOptions.SerializerOptions,
13 references to SerializerOptions
Microsoft.Extensions.AI (13)
Functions\AIFunctionFactory.cs (13)
40/// <see cref="AIFunctionFactoryCreateOptions.SerializerOptions"/>. Arguments that are not already of the expected type are 42/// <see cref="AIFunctionFactoryCreateOptions.SerializerOptions"/>. If the argument is a <see cref="JsonElement"/>, 84SerializerOptions = serializerOptions ?? _defaultOptions.SerializerOptions, 112/// <see cref="AIFunctionFactoryCreateOptions.SerializerOptions"/>. Arguments that are not already of the expected type are 114/// <see cref="AIFunctionFactoryCreateOptions.SerializerOptions"/>. If the argument is a <see cref="JsonElement"/>, 162SerializerOptions = serializerOptions ?? _defaultOptions.SerializerOptions, 194options.SerializerOptions.MakeReadOnly(); 266_returnTypeInfo = returnType != typeof(void) ? options.SerializerOptions.GetTypeInfo(returnType) : null; 276Schema = AIJsonUtilities.CreateJsonSchema(returnType, serializerOptions: options.SerializerOptions, inferenceOptions: options.SchemaCreateOptions), 279JsonSerializerOptions = options.SerializerOptions, 369JsonTypeInfo typeInfo = options.SerializerOptions.GetTypeInfo(parameterType); 392string json = JsonSerializer.Serialize(value, options.SerializerOptions.GetTypeInfo(value.GetType())); 428options.SerializerOptions,