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 #

[View source]
def self.client(uri : URI) : HTTP::Client #

[View source]
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") #

[View source]
def self.ghostwrite_path(artifact : String) #

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

[View source]