set_prompt Subroutine

private pure elemental subroutine set_prompt(this, prompt)

Type Bound

Translation

Arguments

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

Called by

proc~~set_prompt~3~~CalledByGraph proc~set_prompt~3 foropenai_Translation::Translation%set_prompt proc~create_translation foropenai_Translation::Translation%create_translation proc~create_translation->proc~set_prompt~3 program~test_translation test_Translation program~test_translation->proc~create_translation

Source Code

   elemental pure subroutine set_prompt(this, prompt)
      class(Translation), intent(inout) :: this
      character(len=*),   intent(in)    :: prompt
      this%prompt = trim(prompt)
   end subroutine set_prompt