class Langchain

Defined in:

langchain.cr

Constant Summary

QA_PATH = "/qa"

Class Method Summary

Class Method Detail

def self.client(base_url : String, port : Int32) : HTTP::Client #

def self.client(uri : URI) : HTTP::Client #

def self.ghostwrite(client : HTTP::Client, token : String, text : String, sales_rep : String, prospect : String, company : String, company_information : String, text_type : String = "html", artifact : String = "email") #

def self.ghostwrite_path(artifact : String) #

def self.qa(client : HTTP::Client, token : String, text : String, prompt : String, text_type : String = "html", return_source_documents : Bool = false) #