Aracılığıyla paylaş


FunctionCall Class

Definition

The name and arguments of a function that should be called, as generated by the model.

public class FunctionCall : System.ClientModel.Primitives.IJsonModel<Azure.AI.Inference.FunctionCall>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Inference.FunctionCall>
type FunctionCall = class
    interface IJsonModel<FunctionCall>
    interface IPersistableModel<FunctionCall>
Public Class FunctionCall
Implements IJsonModel(Of FunctionCall), IPersistableModel(Of FunctionCall)
Inheritance
FunctionCall
Implements

Constructors

FunctionCall(String, String)

Initializes a new instance of FunctionCall.

Properties

Arguments

The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.

Name

The name of the function to call.

Explicit Interface Implementations

IJsonModel<FunctionCall>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<FunctionCall>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<FunctionCall>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<FunctionCall>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<FunctionCall>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to