set_content Subroutine

private pure elemental subroutine set_content(this, content)

Type Bound

ChatCompletion_messages

Arguments

Type IntentOptional Attributes Name
class(ChatCompletion_messages), intent(inout) :: this
character(len=*), intent(in) :: content

Called by

proc~~set_content~~CalledByGraph proc~set_content foropenai_ChatCompletion::ChatCompletion_messages%set_content proc~set_asisstant_response foropenai_ChatCompletion::ChatCompletion%set_asisstant_response proc~set_asisstant_response->proc~set_content proc~set_user_message foropenai_ChatCompletion::ChatCompletion%set_user_message proc~set_user_message->proc~set_content proc~conversation foropenai_ChatCompletion::ChatCompletion%conversation proc~conversation->proc~set_asisstant_response proc~create_chat_completion foropenai_ChatCompletion::ChatCompletion%create_chat_completion proc~conversation->proc~create_chat_completion proc~read_user_message foropenai_ChatCompletion::ChatCompletion%read_user_message proc~conversation->proc~read_user_message proc~create_chat_completion->proc~set_asisstant_response proc~read_user_message->proc~set_user_message program~test_chatcompletion test_ChatCompletion program~test_chatcompletion->proc~create_chat_completion

Source Code

   elemental pure subroutine set_content(this, content)
      class(ChatCompletion_messages), intent(inout) :: this
      character(len=*),               intent(in)    :: content
      this%content = trim(content)
   end subroutine set_content