Table of Contents

Class AiParameterAttribute

Namespace
Mythosia.AI.Attributes
Assembly
Mythosia.AI.Abstractions.dll

Marks a parameter with additional metadata

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

Constructors

AiParameterAttribute()

public AiParameterAttribute()

AiParameterAttribute(string, bool)

public AiParameterAttribute(string description, bool required = true)

Parameters

description string
required bool

Properties

Description

Description of the parameter

public string Description { get; set; }

Property Value

string

Name

Optional custom name for the parameter

public string Name { get; set; }

Property Value

string

Required

Whether this parameter is required

public bool Required { get; set; }

Property Value

bool