1 write to _returnTypeInfo
Microsoft.Extensions.AI (1)
Functions\AIFunctionFactory.cs (1)
266
_returnTypeInfo
= returnType != typeof(void) ? options.SerializerOptions.GetTypeInfo(returnType) : null;
3 references to _returnTypeInfo
Microsoft.Extensions.AI (3)
Functions\AIFunctionFactory.cs (3)
314
switch (
_returnTypeInfo
)
322
return JsonSerializer.SerializeToElement(result,
_returnTypeInfo
);
328
await JsonSerializer.SerializeAsync(stream, result,
_returnTypeInfo
, cancellationToken).ConfigureAwait(false);