Class FunctionPropertyAttribute
- Namespace
- AnthropicClient.Models
- Assembly
- AnthropicClient.dll
Attribute to describe a property of a type that is used as a function parameter.
[AttributeUsage(AttributeTargets.Property|AttributeTargets.Field)]
public class FunctionPropertyAttribute : Attribute
- Inheritance
-
FunctionPropertyAttribute
- Inherited Members
Constructors
FunctionPropertyAttribute(string, bool, object?, object[]?)
Initializes a new instance of the FunctionPropertyAttribute class.
public FunctionPropertyAttribute(string description, bool required = false, object? defaultValue = null, object[]? possibleValues = null)
Parameters
description
stringDescription of the property.
required
boolWhether the property is required.
defaultValue
objectDefault value of the property.
possibleValues
object[]Possible values of the property.
Properties
DefaultValue
Default value of the property.
public object? DefaultValue { get; }
Property Value
Description
Description of the property.
public string Description { get; }
Property Value
PossibleValues
Possible values of the property.
public object[]? PossibleValues { get; }
Property Value
- object[]
Required
Whether the property is required.
public bool Required { get; }