Response Property  
 

Returns the response to the most recent message prompt sent to the model.

Syntax

object.Response

Remarks

The Response property returns the most recent response from the model. If no messages have been sent, this property will return an empty string. Clearing the client history will not affect the value of this property. The control always retains the most recent prompt and response for the session.

Responses from a model which contain isolated line feed or carriage return characters are normalized to the standard Windows CRLF end-of-line sequence. This ensures consistent formatting across different providers and improves compatibility with Windows controls and user interface components.

Model responses may include Markdown formatting such as headings, lists, or code blocks. Applications are responsible for handling or filtering this formatting as appropriate. If plain text output is preferred, the application can provide a system prompt requesting the model to return plain text responses only.

The message prompt and response text returned by this property may contain Unicode characters, including international text, accented characters, symbols, or emoji characters. Internally, the control stores text as Unicode using UTF-8 encoding, and most modern development environments and controls will display these characters correctly. However, older development tools such as Visual Basic 6 and some legacy Windows common controls may not fully support Unicode text. Characters that are not available in the current system code page may appear incorrectly, be replaced with placeholder characters, or display as question marks.

The standard Visual Basic controls such as Label and TextBox have limited support displaying Unicode characters, especially those outside the Basic Multilingual Plane (such as emoji or mathematical symbols). These controls attempt to convert Unicode strings to ANSI using the system locale, which can result in garbled or missing characters. To correctly display full Unicode text, you must use controls that support Unicode natively, such as those in the Microsoft Forms 2.0 Object Library (FM20.DLL), with appropriate font settings.

Data Type

String

Example

' Send a simple prompt to the model and update a multi-line
' TextBox control with the response
LlmClient1.Prompt = "What is the capital of Denmark?"

If LlmClient1.SendMessage() Then
    txtResponse.Text = LlmClient1.Response
Else
    MsgBox LlmClient1.LastErrorString, vbExclamation
End If

See Also

MessageId Property, Prompt Property, ResponseModel Property, GetFirstMessage Method, GetMessage Method, GetNextMessage Method