Skip to content

ChatCompletionChoice

Namespace: LLama.Types

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

Inheritance ObjectChatCompletionChoice
Implements IEquatable<ChatCompletionChoice>

Properties

Index

1
public int Index { get; set; }

Property Value

Int32

Message

1
public ChatCompletionMessage Message { get; set; }

Property Value

ChatCompletionMessage

FinishReason

1
public string FinishReason { get; set; }

Property Value

String

Constructors

ChatCompletionChoice(Int32, ChatCompletionMessage, String)

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

Parameters

Index Int32

Message ChatCompletionMessage

FinishReason String

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(ChatCompletionChoice)

1
public bool Equals(ChatCompletionChoice other)

Parameters

other ChatCompletionChoice

Returns

Boolean

<Clone>$()

1
public ChatCompletionChoice <Clone>$()

Returns

ChatCompletionChoice

Deconstruct(Int32&, ChatCompletionMessage&, String&)

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

Parameters

Index Int32&

Message ChatCompletionMessage&

FinishReason String&