LLamaSharp/docs/xmldocs/llama.oldversion.chatcomple...

4.0 KiB

ChatCompletionChunk

Namespace: LLama.OldVersion

Caution

The entire LLama.OldVersion namespace will be removed


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

Inheritance ObjectChatCompletionChunk
Implements IEquatable<ChatCompletionChunk>

Properties

Id

public string Id { get; set; }

Property Value

String

Model

public string Model { get; set; }

Property Value

String

Object

public string Object { get; set; }

Property Value

String

Created

public int Created { get; set; }

Property Value

Int32

Choices

public ChatCompletionChunkChoice[] Choices { get; set; }

Property Value

ChatCompletionChunkChoice[]

Constructors

ChatCompletionChunk(String, String, String, Int32, ChatCompletionChunkChoice[])

public ChatCompletionChunk(string Id, string Model, string Object, int Created, ChatCompletionChunkChoice[] Choices)

Parameters

Id String

Model String

Object String

Created Int32

Choices ChatCompletionChunkChoice[]

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

public bool Equals(ChatCompletionChunk other)

Parameters

other ChatCompletionChunk

Returns

Boolean

<Clone>$()

public ChatCompletionChunk <Clone>$()

Returns

ChatCompletionChunk

Deconstruct(String&, String&, String&, Int32&, ChatCompletionChunkChoice[]&)

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

Parameters

Id String&

Model String&

Object String&

Created Int32&

Choices ChatCompletionChunkChoice[]&