Skip to content

ChatCompletionChunk

Namespace: LLama.Types

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

Inheritance ObjectChatCompletionChunk
Implements IEquatable<ChatCompletionChunk>

Properties

Id

1
public string Id { get; set; }

Property Value

String

Model

1
public string Model { get; set; }

Property Value

String

Object

1
public string Object { get; set; }

Property Value

String

Created

1
public int Created { get; set; }

Property Value

Int32

Choices

1
public ChatCompletionChunkChoice[] Choices { get; set; }

Property Value

ChatCompletionChunkChoice[]

Constructors

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

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

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

1
public bool Equals(ChatCompletionChunk other)

Parameters

other ChatCompletionChunk

Returns

Boolean

<Clone>$()

1
public ChatCompletionChunk <Clone>$()

Returns

ChatCompletionChunk

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

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

Parameters

Id String&

Model String&

Object String&

Created Int32&

Choices ChatCompletionChunkChoice[]&