Table of Contents

Class FunctionParameterAttribute

Namespace
AnthropicClient.Models
Assembly
AnthropicClient.dll

Attribute to describe a function parameter.

[AttributeUsage(AttributeTargets.Parameter)]
public sealed class FunctionParameterAttribute : Attribute
Inheritance
FunctionParameterAttribute
Inherited Members

Constructors

FunctionParameterAttribute(string, string, bool)

Initializes a new instance of the FunctionParameterAttribute class.

public FunctionParameterAttribute(string description, string name = "", bool required = false)

Parameters

description string

The description of the parameter.

name string

The name of the parameter.

required bool

Whether the parameter is required.

Properties

Description

The description of the parameter.

public string Description { get; }

Property Value

string

Name

The name of the parameter.

public string Name { get; }

Property Value

string

Required

Whether the parameter is required.

public bool Required { get; }

Property Value

bool