Class FunctionContract
public class FunctionContract
- Inheritance
-
FunctionContract
- Inherited Members
- Extension Methods
Properties
ClassName
The class name of the function.
public string? ClassName { get; set; }
Property Value
Description
The description of the function. If a structured comment is available, the description will be extracted from the summary section. Otherwise, the description will be null.
public string? Description { get; set; }
Property Value
Name
The name of the function.
public string Name { get; set; }
Property Value
Namespace
The namespace of the function.
public string? Namespace { get; set; }
Property Value
Parameters
The parameters of the function.
public IEnumerable<FunctionParameterContract>? Parameters { get; set; }
Property Value
ReturnDescription
The description of the return section. If a structured comment is available, the description will be extracted from the return section. Otherwise, the description will be null.
public string? ReturnDescription { get; set; }
Property Value
ReturnType
The return type of the function.
[JsonIgnore]
public Type? ReturnType { get; set; }
Property Value
Operators
implicit operator AIFunctionMetadata(FunctionContract)
public static implicit operator AIFunctionMetadata(FunctionContract contract)
Parameters
contract
FunctionContract
Returns
- AIFunctionMetadata
implicit operator FunctionContract(AIFunctionMetadata)
public static implicit operator FunctionContract(AIFunctionMetadata metadata)
Parameters
metadata
AIFunctionMetadata