Repository navigation
Important
Breaking changes
- The deprecated APIs are removed (#286):
GeneratedContentConversionError(useGeneratedContentError),LlamaLanguageModel's legacy initializer and its nine matching properties, andGeminiLanguageModel's legacy initializer,thinkingandserverToolsproperties, andThinkingandServerTooltypealiases. UseGenerationOptions[custom:]instead. - To match Foundation Models, a
@Generabletype's generated content now leaves out optional properties whose value isnil, instead of writingnull. PassrepresentNilExplicitlyInGeneratedContent: trueto@Generableto keep thenullvalues (#288). Transcript.Entryhas a newreasoningcase, so an exhaustiveswitchover 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