Skip to content

ChatCompletion

Namespace: LLama.Types

1
public class ChatCompletion : System.IEquatable`1[[LLama.Types.ChatCompletion, LLamaSharp, Version=0.2.0.0, Culture=neutral, PublicKeyToken=null]]

Inheritance ObjectChatCompletion
Implements IEquatable<ChatCompletion>

Properties

Id

1
public string Id { get; set; }

Property Value

String

Object

1
public string Object { get; set; }

Property Value

String

Created

1
public int Created { get; set; }

Property Value

Int32

Model

1
public string Model { get; set; }

Property Value

String

Choices

1
public ChatCompletionChoice[] Choices { get; set; }

Property Value

ChatCompletionChoice[]

Usage

1
public CompletionUsage Usage { get; set; }

Property Value

CompletionUsage

Constructors

ChatCompletion(String, String, Int32, String, ChatCompletionChoice[], CompletionUsage)

1
public ChatCompletion(string Id, string Object, int Created, string Model, ChatCompletionChoice[] Choices, CompletionUsage Usage)

Parameters

Id String

Object String

Created Int32

Model String

Choices ChatCompletionChoice[]

Usage CompletionUsage

Methods

ToString()

1
public string ToString()

Returns

String

PrintMembers(StringBuilder)

1
protected bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

Boolean

GetHashCode()

1
public int GetHashCode()

Returns

Int32

Equals(Object)

1
public bool Equals(object obj)

Parameters

obj Object

Returns

Boolean

Equals(ChatCompletion)

1
public bool Equals(ChatCompletion other)

Parameters

other ChatCompletion

Returns

Boolean

<Clone>$()

1
public ChatCompletion <Clone>$()

Returns

ChatCompletion

Deconstruct(String&, String&, Int32&, String&, ChatCompletionChoice[]&, CompletionUsage&)

1
public void Deconstruct(String& Id, String& Object, Int32& Created, String& Model, ChatCompletionChoice[]& Choices, CompletionUsage& Usage)

Parameters

Id String&

Object String&

Created Int32&

Model String&

Choices ChatCompletionChoice[]&

Usage CompletionUsage&