Îõ³h*DDÊ      !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHI0.2.0.0 Safe-Inferred"(Ä typechainÃAn EnvPath is either a path to a .env file or the default .env file typechain3A DotEnv is a HashMap of ByteString keys and valuesJ typechain Convert an EnvPath to a FilePath typechainLoad a DotEnv from an EnvPath typechainGet a value from a DotEnvFormat: key=valueK typechainParse a line from a .env file Safe-Inferred "<ÂÄØÝäì typechain*A message with a role and content (lenses role and content)  typechain4Way of distinguising who said what in a conversation typechain0Enable/Disable memory for current and only model typechain(Enable/Disable memory for specific model typechainƒRemove all remembered messages for the current and only model. This does not affect a model's ability to remember future messages. typechainùRemove all remebered messages for a specific model. This does not affect a model's ability to remember future messages. typechain°Remember a list of messages for the current and only model. This does not affect a model's ability to remember future messages and should respect the current memory setting. typechain§Remember a list of messages for a specific model. This does not affect a model's ability to remember future messages and should respect the current memory setting. typechainŸRetrieve all remembered messages for the current and only model. This does not forget any messages nor affect a model's ability to remember future messages. typechain–Retrieve all remembered messages for a specific model. This does not forget any messages nor affect a model's ability to remember future messages. typechain—A class for Chat Models In order to achieve compatibility with as many different kinds of LLMS as possible, the predict function is constrained to MonadIO so that it has the capability to either make an API call, run a local model, or any other action that may require IO.Computations with a  ChatModel are expected to be run in a StateT monad (see  TypeChain and  TypeChainTñ for specific types) so that the model can be updated with new messages and the output messages can be logged. ÐFunctions that operate in a context where multiple models are available (e.g. predicts and  addMsgsToê) use lenses to allow extraction and modification of the model without knowing the specific state type. 1Exmaple: If working with two models, you can use (model1, model2)" as the state type and pass the _1 and _2 lenses to predicts and  addMsgsTo0 to specify which model to use in the function. typechain€Predict for current and only model This function should prompt the model (either via API or locally), and return the response.ÙNOTE: If a model has the capability to remember previous messages, it should implement RememberingChatModel6 and automatically manage this functionality in the predict function. typechain½Predict for a specific model via lens This function should prompt the model (either via API or locally), log the input messages, log the output messages, and return the output messages. ÙNOTE: If a model has the capability to remember previous messages, it should implement RememberingChatModel6 and automatically manage this functionality in the predicts function.  typechainÄHelper typeclass to allow for multiple types to be passed to the  ChatModel functions. NOTE: If this is used with the OverloadedStrings< extension, you will need type annotations when using the String instance.! typechain Convert to a list of messages" typechainPattern synonym for creating a Message with System role# typechainPattern synonym for creating a Message with  Assistant role$ typechainPattern synonym for creating a Message with User role6  &%$#" !LMNOPQRSTUVWXYZ[\]^_`abc  &%$#" ! Safe-Inferred(Õäð. typechainÉTypeclass used to convert generated record types into a list of messages.1Instances of this typeclass are generated by the 3Ï function and should only be used if you need to construct a prompt manually./ typechain>Return the list of messages that should be used as the prompt.0 typechain8Convert a String into a compile prompt template for the 3 function..This particular function is for user messages.1 typechain8Convert a String into a compile prompt template for the 3 function.3This particular function is for assistant messages.2 typechain8Convert a String into a compile prompt template for the 3 function. 0This particular function is for system messages.3 typechainÝGiven a typename and a list of messages, generate a data type and a function to construct it.Example: `makeTemplate  Translate1 [system "translate {a} to {b}.", user "{text}"]`This generates a record named  Translate with fields a, b, and text!. It also generates a function 6mkTranslate :: String -> String -> String -> [Message]Ž. To allow for quick and easy construction of the prompt if needed. Otherwise, you can use the generated data type in conjunction with the / function to be more explicit.ÝSee the example on the repo's README.md for an example of what the generated code looks like../3012./3012 Safe-Inferred"1<ÅÆð¼d typechainÀMinimal JSON response datatype from OpenAI's GPT-3.5-Turbo modele typechain5A list of responses from OpenAI's GPT-3.5-Turbo model8 typechainNothing = Do not remember messages? typechain0Create an OpenAI chat model with default values Model: GPT-3.5-TurboMemorization: Enabled Temperature: 0.7 ApiKey: emptyvalue 56789:;<=>? 56789:;<=>? Safe-InferredøÇLMNOPQRSTUVW  !$#"XYZ[\]^_`abc&%./023156789:;<=>?æ       !"#$%&'()*+,-./01234567899:;<=>?@ABCDEFGHIJKLMNOPQRSTRSURSVRSWOPXOPXOPYZ[\Z[]O^_O^`OPaOPbOPcOPdOPeOPfOPgOPhRSiRSjOPkRSlmnï(typechain-0.2.0.0-LA4O1qfC7CvCuiVwSS7NO6DotEnvTypeChain.ChatModels.Types#TypeChain.ChatModels.PromptTemplateTypeChain.ChatModels.OpenAI typechainTypeChain.ChatModelsEnvPath DefaultEnvloadEnvgetEnvMessage_role_contentRoleUser AssistantSystemApiKey TypeChainT TypeChain $fShowRole $fShowMessage$fGenericMessageRememberingChatModelsetMemoryEnabledsetMemoryEnabledForforget forgetFormemorize memorizesremember rememberFor ChatModelpredictpredictsMsgList toMsgList SystemMessageAssistantMessage UserMessagecontentrole$fFromJSONMessage$fToJSONMessage$fFromJSONRole $fToJSONRole $fMsgListList$fMsgListMessage$fMsgListList0ToPrompttoPromptuser assistantsystem makeTemplate$fEqTemplateToken OpenAIChat chatModelmessages temperatureapiKeyOpenAIChatModel GPT35TurboGPT4 GPT4TurboinitOpenAIChat$fToJSONOpenAIChatModel$fShowOpenAIChatModel $fRememberingChatModelOpenAIChat$fToJSONOpenAIChat$fFromJSONChoices$fChatModelOpenAIChat$fFromJSONOpenAIResponse$fGenericOpenAIResponse$fGenericChoices$fGenericOpenAIChat fromEnvPath parseEnvLinetransformers-0.6.1.0Control.Monad.Trans.State.LazyState mtl-2.3.1Control.Monad.State.Class MonadStategetputstateStateT runStateTbaseControl.Monad.IO.ClassMonadIOliftIOControl.Monad.Trans.Class MonadTranslift withStaterunState evalState execStatemapState mapStateT evalStateT execStateTmodifygets withStateTmodify'OpenAIResponseChoices