Skip to content

ChatCompletionChoice

Namespace: LLama.OldVersion

public class ChatCompletionChoice : System.IEquatable`1[[LLama.OldVersion.ChatCompletionChoice, LLamaSharp, Version=0.4.0.0, Culture=neutral, PublicKeyToken=null]]

Inheritance ObjectChatCompletionChoice
Implements IEquatable<ChatCompletionChoice>

Properties

Index

public int Index { get; set; }

Property Value

Int32

Message

public ChatCompletionMessage Message { get; set; }

Property Value

ChatCompletionMessage

FinishReason

public string FinishReason { get; set; }

Property Value

String

Constructors

ChatCompletionChoice(Int32, ChatCompletionMessage, String)

public ChatCompletionChoice(int Index, ChatCompletionMessage Message, string FinishReason)

Parameters

Index Int32

Message ChatCompletionMessage

FinishReason String

Methods

ToString()

public string ToString()

Returns

String

PrintMembers(StringBuilder)

protected bool PrintMembers(StringBuilder builder)

Parameters

builder StringBuilder

Returns

Boolean

GetHashCode()

public int GetHashCode()

Returns

Int32

Equals(Object)

public bool Equals(object obj)

Parameters

obj Object

Returns

Boolean

Equals(ChatCompletionChoice)

public bool Equals(ChatCompletionChoice other)

Parameters

other ChatCompletionChoice

Returns

Boolean

<Clone>$()

public ChatCompletionChoice <Clone>$()

Returns

ChatCompletionChoice

Deconstruct(Int32&, ChatCompletionMessage&, String&)

public void Deconstruct(Int32& Index, ChatCompletionMessage& Message, String& FinishReason)

Parameters

Index Int32&

Message ChatCompletionMessage&

FinishReason String&