Appends plain text user messages. Updates the Session state to "Waiting for Response".
This function is only responsible for synchronizing text to the Session's internal buffer. To obtain an AI response, LiteRtLm_RunInference must be explicitly called after appending the message.
void LiteRtLm_AppendUserMessage(void* conv_ptr, const char* text);
| Parameter | Responsibility |
|---|---|
conv_ptr |
Valid Session handle. |
text |
User input plain text content. |
// 1. Append user message
LiteRtLm_AppendUserMessage(MyConv, "Tell me about Unreal Engine 5.");
// 2. Trigger Inference (next steps)
LiteRtLm_RunInference(MyConv, MySamplingParams, MyCallback, NULL);