class RubyConversations::Client

def fetch_prompt(name)

Returns:
  • (Hash) - The prompt attributes

Parameters:
  • name (String) -- The name of the prompt to fetch
def fetch_prompt(name)
  response = client.get("api/prompts/#{name}")
  data = handle_response(response)
  map_prompt_attributes(data)
end