Skip to content

ChatCompletionMessage

Namespace: LLama.OldVersion

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

Inheritance ObjectChatCompletionMessage
Implements IEquatable<ChatCompletionMessage>

Properties

Role

public ChatRole Role { get; set; }

Property Value

ChatRole

Content

public string Content { get; set; }

Property Value

String

Name

public string Name { get; set; }

Property Value

String

Constructors

ChatCompletionMessage(ChatRole, String, String)

public ChatCompletionMessage(ChatRole Role, string Content, string Name)

Parameters

Role ChatRole

Content String

Name 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(ChatCompletionMessage)

public bool Equals(ChatCompletionMessage other)

Parameters

other ChatCompletionMessage

Returns

Boolean

<Clone>$()

public ChatCompletionMessage <Clone>$()

Returns

ChatCompletionMessage

Deconstruct(ChatRole&, String&, String&)

public void Deconstruct(ChatRole& Role, String& Content, String& Name)

Parameters

Role ChatRole&

Content String&

Name String&