Skip to content

0.16.0

Latest

Choose a tag to compare

@mattt mattt released this 04 Oct 12:09
Immutable release. Only release title and notes can be modified.
3e00403

Important

Breaking changes

  • The deprecated APIs are removed (#286): GeneratedContentConversionError (use GeneratedContentError), LlamaLanguageModel's legacy initializer and its nine matching properties, and GeminiLanguageModel's legacy initializer, thinking and serverTools properties, and Thinking and ServerTool typealiases. Use GenerationOptions[custom:] instead.
  • To match Foundation Models, a @Generable type's generated content now leaves out optional properties whose value is nil, instead of writing null. Pass representNilExplicitlyInGeneratedContent: true to @Generable to keep the null values (#288).
  • Transcript.Entry has a new reasoning case, so an exhaustive switch over transcript entries needs to handle it (#290).

Thanks to @qoli for reasoning transcript entries (#290, from #264) and dynamic instructions (#292, #293, #294, from #273).

What's Changed

  • Remove deprecated APIs by @mattt in #286
  • Mark AnyLanguageModel's extensions to Foundation Models by @mattt in #287
  • Add missing Foundation Models 26 APIs by @mattt in #288
  • Represent reasoning as transcript entries by @mattt in #290
  • Resolve a request context before each model request by @mattt in #292
  • Add the DynamicInstructions builder by @mattt in #293
  • Add sessions with dynamic instructions by @mattt in #294
  • Remove the README's list of unimplemented Foundation Models APIs by @mattt in #295
  • Bump README install snippets to 0.16.0 by @mattt in #296

Full Changelog: 0.15.1...0.16.0