(append! log & messages)
Append one or more messages to the log. Returns the new context
Append one or more messages to the log. Returns the new context
(close! log)
Perform any cleanup on the log if necessary
Perform any cleanup on the log if necessary
(context log)
Fetches the current context from the log. This is what will be used to stream responses from GPT
Fetches the current context from the log. This is what will be used to stream responses from GPT
(create-atom-log)
A simple log backed by an atom
A simple log backed by an atom
(init! log initial-prompt)
Initialize a log with an initial prompt. Returns the initialized context
Initialize a log with an initial prompt. Returns the initialized context
(-append! self message)
(-close! self)
(-context self)
(-init! self initial-prompt)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close