LLamaSharp/docs/xmldocs/llama.oldversion.completion...

3.5 KiB

CompletionChoice

Namespace: LLama.OldVersion

Caution

The entire LLama.OldVersion namespace will be removed


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

Inheritance ObjectCompletionChoice
Implements IEquatable<CompletionChoice>

Properties

Text

public string Text { get; set; }

Property Value

String

Index

public int Index { get; set; }

Property Value

Int32

Logprobs

public CompletionLogprobs Logprobs { get; set; }

Property Value

CompletionLogprobs

FinishReason

public string FinishReason { get; set; }

Property Value

String

Constructors

CompletionChoice(String, Int32, CompletionLogprobs, String)

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

Parameters

Text String

Index Int32

Logprobs CompletionLogprobs

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

public bool Equals(CompletionChoice other)

Parameters

other CompletionChoice

Returns

Boolean

<Clone>$()

public CompletionChoice <Clone>$()

Returns

CompletionChoice

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

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

Parameters

Text String&

Index Int32&

Logprobs CompletionLogprobs&

FinishReason String&