Skip to content

ChatCompletionMessage

Namespace: LLama.Types

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

Inheritance ObjectChatCompletionMessage
Implements IEquatable<ChatCompletionMessage>

Properties

Role

1
public ChatRole Role { get; set; }

Property Value

ChatRole

Content

1
public string Content { get; set; }

Property Value

String

Name

1
public string Name { get; set; }

Property Value

String

Constructors

ChatCompletionMessage(ChatRole, String, String)

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

Parameters

Role ChatRole

Content String

Name String

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

1
public bool Equals(ChatCompletionMessage other)

Parameters

other ChatCompletionMessage

Returns

Boolean

<Clone>$()

1
public ChatCompletionMessage <Clone>$()

Returns

ChatCompletionMessage

Deconstruct(ChatRole&, String&, String&)

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

Parameters

Role ChatRole&

Content String&

Name String&