2 writes to SerializerOptions
Microsoft.Extensions.AI (2)
Functions\AIFunctionFactory.cs (2)
84
SerializerOptions
= serializerOptions ?? _defaultOptions.SerializerOptions,
162
SerializerOptions
= 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"/>,
84
SerializerOptions = 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"/>,
162
SerializerOptions = serializerOptions ?? _defaultOptions.
SerializerOptions
,
194
options.
SerializerOptions
.MakeReadOnly();
266
_returnTypeInfo = returnType != typeof(void) ? options.
SerializerOptions
.GetTypeInfo(returnType) : null;
276
Schema = AIJsonUtilities.CreateJsonSchema(returnType, serializerOptions: options.
SerializerOptions
, inferenceOptions: options.SchemaCreateOptions),
279
JsonSerializerOptions = options.
SerializerOptions
,
369
JsonTypeInfo typeInfo = options.
SerializerOptions
.GetTypeInfo(parameterType);
392
string json = JsonSerializer.Serialize(value, options.
SerializerOptions
.GetTypeInfo(value.GetType()));
428
options.
SerializerOptions
,