ailiaLLMSetPrompt method
- Pointer<
AILIALLM> llm, - Pointer<
AILIALLMChatMessage> message, - int message_cnt
~japanese @brief プロンプトを設定します。 @param llm LLMオブジェクトポインタへのポインタ @param message メッセージの配列 @param message_cnt メッセージの数 @return 成功した場合は \ref AILIA_LLM_STATUS_SUCCESS 、そうでなければエラーコードを返す。 @details LLMに問い合わせるプロンプトを設定します。 ChatHistoryもmessageに含めてください。 messageの内容は内部でコピーされるため、呼び出し後に開放することができます。
~english @brief Set the prompt. @param llm A pointer to the LLM instance pointer @param message Array of messages @param message_cnt Number of messages @return If this function is successful, it returns \ref AILIA_LLM_STATUS_SUCCESS , or an error code otherwise. @details Set the prompt to query the LLM. Please include ChatHistory in the message as well. The contents of the message are copied internally, so you can free them after the call.
Implementation
int ailiaLLMSetPrompt(
ffi.Pointer<AILIALLM> llm,
ffi.Pointer<AILIALLMChatMessage> message,
int message_cnt,
) {
return _ailiaLLMSetPrompt(
llm,
message,
message_cnt,
);
}