instructor-clj is a Clojure lib inspired by instructor It makes it easy to have structured output from LLMs.
Built on top of Malli for defining schemas.
(require '[instructor-clj.core :as ic])
(def User
[:map
[:name :string]
[:age :int]])
(ic/llm->response "John Doe is 30 years old."
User
:api-key "<API-KEY>")
; => {:name "John Doe", :age 30}
This project is licensed under the terms of the MIT License.
Can you improve this documentation?Edit on GitHub
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close