[x] New public get_json_answer function that works similarly to the existing get_answer function, but instead of specifying the type of response it accepts a json_schema that the response must match.
[x] Tweak to get_answer function to simplify schema passed to AI (removing not needed fields).
[x] Introduction of a AllmsError type to facilitate better passing of information in case of errors.
[x] (bugfix) Unrelated changes to OpenAIVectorStore to publicly expose types returned by some already public methods
Changes:
get_json_answer
function that works similarly to the existingget_answer
function, but instead of specifying the type of response it accepts a json_schema that the response must match.get_answer
function to simplify schema passed to AI (removing not needed fields).AllmsError
type to facilitate better passing of information in case of errors.OpenAIVectorStore
to publicly expose types returned by some already public methods