Table of Contents

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 string

Description of the property.

required bool

Whether the property is required.

defaultValue object

Default value of the property.

possibleValues object[]

Possible values of the property.

Properties

DefaultValue

Default value of the property.

public object? DefaultValue { get; }

Property Value

object

Description

Description of the property.

public string Description { get; }

Property Value

string

PossibleValues

Possible values of the property.

public object[]? PossibleValues { get; }

Property Value

object[]

Required

Whether the property is required.

public bool Required { get; }

Property Value

bool