Table of Contents

Class AiFunctionAttribute

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

Marks a method as an AI-callable function

[AttributeUsage(AttributeTargets.Method)]
public class AiFunctionAttribute : Attribute
Inheritance
AiFunctionAttribute
Inherited Members

Constructors

AiFunctionAttribute()

Creates an AI function with auto-generated name and description

public AiFunctionAttribute()

AiFunctionAttribute(string)

Creates an AI function with auto-generated name

public AiFunctionAttribute(string description)

Parameters

description string

AiFunctionAttribute(string, string)

Creates an AI function with custom name

public AiFunctionAttribute(string name, string description)

Parameters

name string
description string

Properties

Description

Description of what the function does

public string Description { get; set; }

Property Value

string

Name

Optional custom name for the function. If null, method name will be used.

public string Name { get; set; }

Property Value

string