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
stringThe description of the parameter.
name
stringThe name of the parameter.
required
boolWhether the parameter is required.
Properties
Description
The description of the parameter.
public string Description { get; }
Property Value
Name
The name of the parameter.
public string Name { get; }
Property Value
Required
Whether the parameter is required.
public bool Required { get; }