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

4.1 KiB

Completion

Namespace: LLama.OldVersion

Caution

The entire LLama.OldVersion namespace will be removed


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

Inheritance ObjectCompletion
Implements IEquatable<Completion>

Properties

Id

public string Id { get; set; }

Property Value

String

Object

public string Object { get; set; }

Property Value

String

Created

public int Created { get; set; }

Property Value

Int32

Model

public string Model { get; set; }

Property Value

String

Choices

public CompletionChoice[] Choices { get; set; }

Property Value

CompletionChoice[]

Usage

public CompletionUsage Usage { get; set; }

Property Value

CompletionUsage

Constructors

Completion(String, String, Int32, String, CompletionChoice[], CompletionUsage)

public Completion(string Id, string Object, int Created, string Model, CompletionChoice[] Choices, CompletionUsage Usage)

Parameters

Id String

Object String

Created Int32

Model String

Choices CompletionChoice[]

Usage CompletionUsage

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

public bool Equals(Completion other)

Parameters

other Completion

Returns

Boolean

<Clone>$()

public Completion <Clone>$()

Returns

Completion

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

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

Parameters

Id String&

Object String&

Created Int32&

Model String&

Choices CompletionChoice[]&

Usage CompletionUsage&