v0.7.0
PromptingTools v0.7.0
Added
- Added new Experimental sub-module AgentTools introducing
AICall
(incl.AIGenerate
), andAICodeFixer
structs. The AICall struct provides a "lazy" wrapper for ai* functions, enabling efficient and flexible AI interactions and building Agentic workflows. - Added the first AI Agent:
AICodeFixer
which iteratively analyzes and improves any code provided by a LLM by evaluating it in a sandbox. It allows a lot of customization (templated responses, feedback function, etc.) See?AICodeFixer
for more information on usage and?aicodefixer_feedback
for the example implementation of the feedback function. - Added
@timeout
macro to allow for limiting the execution time of a block of code inAICode
viaexecution_timeout
kwarg (prevents infinite loops, etc.). See?AICode
for more information. - Added
preview(conversation)
utility that allows you to quickly preview the conversation in a Markdown format in your REPL. RequiresMarkdown
package for the extension to be loaded. - Added
ItemsExtract
convenience wrapper foraiextract
when you want to extract one or more of a specificreturn_type
(eg,return_type = ItemsExtract{MyMeasurement}
)
Fixed
- Fixed
aiembed
to accept any AbstractVector of documents (eg, a view of a vector of documents)
Commits
Merged pull requests: