Table of Contents

Class FunctionDefinition

Namespace
OpenAI.ObjectModels.RequestModels
Assembly
AntRunnerLib.dll

Definition of a valid function call.

public class FunctionDefinition
Inheritance
System.Object
FunctionDefinition
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()

Properties

ContentType

Optional, applies to POST etc...

[JsonIgnore]
public string ContentType { get; set; }

Property Value

System.String

Description

A description of what the function does, used by the model to choose when and how to call the function.

[JsonPropertyName("description")]
public string Description { get; set; }

Property Value

System.String

Name

The name of the function to be called. Must be a-z, A-Z, 0-9, or contain underscores and dashes, with a maximum length of 64.

[JsonPropertyName("name")]
public string Name { get; set; }

Property Value

System.String

Parameters

Optional. The parameters the functions accepts, described as a JSON Schema object. See the guide for examples, and the JSON Schema reference for documentation about the format.

[JsonPropertyName("parameters")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public ParametersDefinition Parameters { get; set; }

Property Value

ParametersDefinition