Class FunctionPropertyAttribute
- Namespace
- OpenAI
- Assembly
- OpenAI-DotNet.dll
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field)]
public sealed class FunctionPropertyAttribute : Attribute- Inheritance
- 
      
      
      FunctionPropertyAttribute
- Inherited Members
Constructors
FunctionPropertyAttribute(string, bool, object, params object[])
Property Attribute to help with function calling.
public FunctionPropertyAttribute(string description = null, bool required = false, object defaultValue = null, params object[] possibleValues)Parameters
- descriptionstring
- The description of the property 
- requiredbool
- Is the property required? 
- defaultValueobject
- The default value. 
- possibleValuesobject[]
- Enums or other possible values. 
Properties
DefaultValue
The default value.
public object DefaultValue { get; }Property Value
Description
The description of the property
public string Description { get; }Property Value
PossibleValues
Enums or other possible values.
public object[] PossibleValues { get; }Property Value
- object[]
Required
Is the property required?
public bool Required { get; }