Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

elaine-herrera/FoundationModelsKit

Repository files navigation

FoundationModelsKit

CI

A macOS framework for generating plant care guidance (watering frequency, reasoning, and tips) using a FoundationModels.

Overview

Given a plant name and basic environmental conditions (location, temperature, and humidity), FoundationModelsKit produces a structured WateringAdvice result. The framework separates the concerns of:

  • describing the plant and its environment (PlantCareContext),
  • invoking a foundation model (FoundationModelEngine), and
  • exposing a simple, high-level API (DefaultPlantCareModel).

Quick start

let context = PlantCareContext(
 plantName: "Orchid",
 location: .indoor,
 temperature: .warm,
 humidity: .humid
)
let model = DefaultPlantCareModel()
let advice = try? await model.generateWateringAdvice(for: context)
print(advice?.wateringIntervalDays) // e.g. 14
print(advice?.reasoning) // short explanation
print(advice?.tips ?? []) // optional tips

Example macOS application

PlantCare macOS application

About

A macOS framework for generating plant care guidance using FoundationModels.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

Languages

AltStyle によって変換されたページ (->オリジナル) /