37 references to ParameterTypeKind
Microsoft.AspNetCore.Components.AI.SourceGenerators (37)
ToolBlockCandidate.cs (4)
85
public ToolResultPropertyInfo(string propertyName, string resultKey, string typeName, bool isNullable,
ParameterTypeKind
typeKind)
98
public
ParameterTypeKind
TypeKind { get; }
122
public ToolParameterInfo(string propertyName, string argumentKey, string typeName, bool isNullable,
ParameterTypeKind
typeKind)
135
public
ParameterTypeKind
TypeKind { get; }
ToolBlockEmitter.cs (24)
265
case
ParameterTypeKind
.String:
270
case
ParameterTypeKind
.Int32:
274
case
ParameterTypeKind
.Int64:
278
case
ParameterTypeKind
.Double:
282
case
ParameterTypeKind
.Single:
286
case
ParameterTypeKind
.Decimal:
290
case
ParameterTypeKind
.Boolean:
294
case
ParameterTypeKind
.Complex:
311
case
ParameterTypeKind
.String:
316
case
ParameterTypeKind
.Int32:
320
case
ParameterTypeKind
.Int64:
324
case
ParameterTypeKind
.Double:
328
case
ParameterTypeKind
.Single:
332
case
ParameterTypeKind
.Decimal:
336
case
ParameterTypeKind
.Boolean:
340
case
ParameterTypeKind
.Complex:
353
case
ParameterTypeKind
.String:
357
case
ParameterTypeKind
.Int32:
360
case
ParameterTypeKind
.Int64:
363
case
ParameterTypeKind
.Double:
366
case
ParameterTypeKind
.Single:
369
case
ParameterTypeKind
.Decimal:
372
case
ParameterTypeKind
.Boolean:
375
case
ParameterTypeKind
.Complex:
ToolBlockParser.cs (9)
258
private static
ParameterTypeKind
GetTypeKind(ITypeSymbol type)
270
SpecialType.System_String =>
ParameterTypeKind
.String,
271
SpecialType.System_Int32 =>
ParameterTypeKind
.Int32,
272
SpecialType.System_Int64 =>
ParameterTypeKind
.Int64,
273
SpecialType.System_Double =>
ParameterTypeKind
.Double,
274
SpecialType.System_Single =>
ParameterTypeKind
.Single,
275
SpecialType.System_Decimal =>
ParameterTypeKind
.Decimal,
276
SpecialType.System_Boolean =>
ParameterTypeKind
.Boolean,
277
_ =>
ParameterTypeKind
.Complex