Table of Contents

Class OllamaToolAttribute

Namespace
OllamaSharp
Assembly
OllamaSharp.dll

Specifies that the class or method is a tool for Ollama. OllamaSharp will generate an implementation of this class or method with the name suffix -Tool. If your method is named "GetWeather", the generated class will be named "GetWeatherTool".

[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method)]
public class OllamaToolAttribute : Attribute
Inheritance
OllamaToolAttribute
Inherited Members

Constructors

OllamaToolAttribute()

Initializes a new instance of the OllamaToolAttribute class.

public OllamaToolAttribute()