Class: FeatherAi::PhotographyTips
- Inherits:
-
Object
- Object
- FeatherAi::PhotographyTips
- Defined in:
- lib/feather_ai/photography_tips.rb
Overview
Generates photography tips for identified bird species.
Constant Summary collapse
- SCHEMA =
RubyLLM::Schema.create do string :time_of_day, description: "Best time of day to photograph this species" string :approach, description: "How to approach without disturbing the bird" string :settings, description: "Recommended camera settings (shutter speed, aperture, ISO)" string :habitat, description: "Where to find this species for photography" end
Instance Method Summary collapse
- #fetch ⇒ Object
-
#initialize(species:, common_name:, config: FeatherAi.configuration) ⇒ PhotographyTips
constructor
A new instance of PhotographyTips.
Constructor Details
#initialize(species:, common_name:, config: FeatherAi.configuration) ⇒ PhotographyTips
Returns a new instance of PhotographyTips.
13 14 15 16 17 |
# File 'lib/feather_ai/photography_tips.rb', line 13 def initialize(species:, common_name:, config: FeatherAi.configuration) @species = species @common_name = common_name @config = config end |
Instance Method Details
#fetch ⇒ Object
19 20 21 22 23 24 |
# File 'lib/feather_ai/photography_tips.rb', line 19 def fetch Instrumentation.instrument("photography_tips.feather_ai", instrumentation_payload) do parsed = fetch_from_llm build_tips_hash(parsed) end end |