Skip to content

1.6.0

Choose a tag to compare

@1amageek 1amageek released this 19 Feb 05:00
· 26 commits to main since this release

What's Changed

Prompt & Instructions Component Architecture

  • Restructured Prompt and Instructions to use internal Text/Component types matching Apple FoundationModels
  • content is now a computed property joining components with \n
  • Updated PromptBuilder and InstructionsBuilder to work with Component-based composition

GeneratedContent JSON Output

  • debugDescription now returns compact JSON (no spaces): {"key":value}
  • jsonString now returns spaced JSON: {"key": value}
  • instructionsRepresentation and promptRepresentation use JSON format
  • Added internal compactJSON/spacedJSON/escape/formatNumber to JSONValue

@generable Macro Enhancements

  • Generate CodingKeys and memberwise init in @Generable macro