ailiaLLMSetPrompt method

int ailiaLLMSetPrompt(
  1. Pointer<AILIALLM> llm,
  2. Pointer<AILIALLMChatMessage> message,
  3. int message_cnt
)

~japanese @brief プロンプトを設定します。 @param llm LLMオブジェクトポインタへのポインタ @param message メッセージの配列 @param message_cnt メッセージの数 @return 成功した場合は \ref AILIA_LLM_STATUS_SUCCESS 、そうでなければエラーコードを返す。 @details LLMに問い合わせるプロンプトを設定します。 ChatHistoryも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.

Implementation

int ailiaLLMSetPrompt(
  ffi.Pointer<AILIALLM> llm,
  ffi.Pointer<AILIALLMChatMessage> message,
  int message_cnt,
) {
  return _ailiaLLMSetPrompt(
    llm,
    message,
    message_cnt,
  );
}