Version 0.9.0 #1341
mandel
announced in
Announcements
Version 0.9.0
#1341
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
New Features
The main new features are:
contributeto a file or standard input and error@pdlPython decoratorcontributeto filesThe user can declare a file aggregator that can be used in the
contributeto accumulate the results of the blocks.For example, in the following program, an aggregator named
logassociated to the file/tmp/log.txtis declared.This aggregator is used to store the output of the model in the file
/tmp/log.txt.By default, the aggregator
stdinandstderrare available to contribute to the standard input and standard error.It is useful, for example to outpout debug information. In the following program, the raw output of the model is emitted
on the standard error:
@pdlPython decoratorIn order to make it easy to define functions as PDL programs, we provide a
@pdldecorator.In this example, the function
chain_pf_thoughtis a string representing a PDL program. The free variables in the string are values passed in the dictionaryscopegiven on argument.What's Changed
contentfield is local by @mandel in feat: the scope of thecontentfield is local #1225event_loopto the interpreter config by @mandel in feat: addevent_loopto the interpreter config #1235structuredDecodingfield on themodelblock by @mandel in feat:structuredDecodingfield on themodelblock #1250KeyboardInterruptby @mandel in fix: avoid catchingKeyboardInterrupt#1298llm_usageto theexec_*config by @mandel in feat: addllm_usageto theexec_*config #1331Full Changelog: v0.8.0...v0.9.0
This discussion was created from the release Version 0.9.0.
Beta Was this translation helpful? Give feedback.
All reactions