Skip to content

CompletionChoice

Namespace: LLama.Types

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

Inheritance ObjectCompletionChoice
Implements IEquatable<CompletionChoice>

Properties

Text

1
public string Text { get; set; }

Property Value

String

Index

1
public int Index { get; set; }

Property Value

Int32

Logprobs

1
public CompletionLogprobs Logprobs { get; set; }

Property Value

CompletionLogprobs

FinishReason

1
public string FinishReason { get; set; }

Property Value

String

Constructors

CompletionChoice(String, Int32, CompletionLogprobs, String)

1
public CompletionChoice(string Text, int Index, CompletionLogprobs Logprobs, string FinishReason)

Parameters

Text String

Index Int32

Logprobs CompletionLogprobs

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

1
public bool Equals(CompletionChoice other)

Parameters

other CompletionChoice

Returns

Boolean

<Clone>$()

1
public CompletionChoice <Clone>$()

Returns

CompletionChoice

Deconstruct(String&, Int32&, CompletionLogprobs&, String&)

1
public void Deconstruct(String& Text, Int32& Index, CompletionLogprobs& Logprobs, String& FinishReason)

Parameters

Text String&

Index Int32&

Logprobs CompletionLogprobs&

FinishReason String&