feather-ai 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.rubocop.yml +6 -1
- data/CHANGELOG.md +14 -0
- data/CLAUDE.md +8 -8
- data/README.md +7 -6
- data/lib/feather_ai/configuration.rb +2 -2
- data/lib/feather_ai/consensus.rb +2 -0
- data/lib/feather_ai/identifier.rb +24 -2
- data/lib/feather_ai/rails/acts_as_sighting.rb +1 -0
- data/lib/feather_ai/result.rb +3 -1
- data/lib/feather_ai/version.rb +1 -1
- data/lib/generators/feather_ai/templates/migration.rb.tt +1 -0
- metadata +4 -10
- data/.idea/.gitignore +0 -10
- data/.idea/Feather.iml +0 -78
- data/.idea/copilot.data.migration.ask2agent.xml +0 -6
- data/.idea/modules.xml +0 -8
- data/.idea/vcs.xml +0 -6
- data/sig/Feather.rbs +0 -91
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f6095127574afcfa266d46eb362e8cc0fe26d0ef15aab75c56ac4a0e21f7ce78
|
|
4
|
+
data.tar.gz: 9f12db0e48af3afbe0d14d8cacaee0f926ba1412752ca5ebe95ad7a7bbba702a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 76305cb6279ef89a2ed44ddca0c9c93104a7dd5386c4ec31b9043892bcbcb744c80e5751e4852226f959cb8031738d7289326e4daafccb01a05ccac5b3c3bec9
|
|
7
|
+
data.tar.gz: bc11c564716fcce4a28206672d6dd6d5be8269203c7bc7c4339f49bcb42abbd6b261580aead6e4cf65d60d03d34b4ca303c39d886ff1b5b5f3121769e99e3f66
|
data/.rubocop.yml
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
AllCops:
|
|
2
|
-
TargetRubyVersion: 3.
|
|
2
|
+
TargetRubyVersion: 3.3
|
|
3
3
|
NewCops: enable
|
|
4
4
|
|
|
5
5
|
plugins:
|
|
@@ -10,3 +10,8 @@ Style/StringLiterals:
|
|
|
10
10
|
|
|
11
11
|
Style/StringLiteralsInInterpolation:
|
|
12
12
|
EnforcedStyle: double_quotes
|
|
13
|
+
|
|
14
|
+
# Methods that only build a hash of result attributes are data, not logic.
|
|
15
|
+
Metrics/MethodLength:
|
|
16
|
+
CountAsOne:
|
|
17
|
+
- hash
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.7.0 - 2026-11-24
|
|
4
|
+
|
|
5
|
+
- `Result#field_marks`: up to four `{ category:, summary: }` hashes giving the evidence for the identification in plain language, one per category (`FeatherAi::Identifier::FIELD_MARK_CATEGORIES`). Written for the person who took the photo, unlike `reasoning`, which stays the model's working.
|
|
6
|
+
- Each entry in `candidates` now carries a `note:` — one sentence on what separates that alternative from the identification (`nil` for the first entry and for vote-share candidates on consensus disagreement).
|
|
7
|
+
- Consensus: when the models agree, the result now carries the primary model's `reasoning` (previously dropped) and `field_marks`. On disagreement `field_marks` is empty.
|
|
8
|
+
- Rails: `identify!` persists `field_marks` when the model has that column, and the install generator adds it (jsonb). Existing apps need their own migration to store it.
|
|
9
|
+
|
|
10
|
+
## 0.6.0 - 2026-11-24
|
|
11
|
+
|
|
12
|
+
- **Breaking:** default `model` (and the first of `consensus_models`) is now `claude-sonnet-5-5`. Anthropic retires `claude-sonnet-4-5` on 2026-11-30, after which the old default stops working. `tips_model` stays on `claude-haiku-4-5`.
|
|
13
|
+
- **Breaking:** requires `ruby_llm` >= 2.1 (the first release whose model registry knows `claude-sonnet-5-5`).
|
|
14
|
+
- **Breaking:** requires Ruby >= 3.3 (3.2 is end-of-life). CI now tests 3.3, 3.4 and 4.0.
|
|
15
|
+
- Removed the stale `sig/Feather.rbs` signatures, which described a `Feather` module that no longer exists.
|
|
16
|
+
|
|
3
17
|
## 0.5.0 - 2026-10-02
|
|
4
18
|
|
|
5
19
|
- **Breaking:** requires `ruby_llm` 2.x (fixes the ReDoS advisory in 1.x). Dev dependencies updated to clear all `bundle-audit` findings (rubocop no longer pulls in `mcp`).
|
data/CLAUDE.md
CHANGED
|
@@ -52,7 +52,7 @@ The gem's only runtime dependency is `ruby_llm` 2.x (which pulls in `schematist`
|
|
|
52
52
|
|
|
53
53
|
2. **Consensus** (`lib/feather_ai/consensus.rb`) — When `consensus: true`, runs identification through the configured `consensus_models` in parallel threads. Agreement is compared on normalized species name. If they agree, returns `confident: true`; if they disagree, returns both as `candidates` with low confidence. Token counts, cost, and duration are summed across models.
|
|
54
54
|
|
|
55
|
-
3. **Result** (`lib/feather_ai/result.rb`) — Immutable value object wrapping all identification output. Identification fields: `common_name`, `species`, `family`, `confidence` (`:high`/`:medium`/`:low`), `confident?`, `region_native?`, `reasoning`, `candidates
|
|
55
|
+
3. **Result** (`lib/feather_ai/result.rb`) — Immutable value object wrapping all identification output. Identification fields: `common_name`, `species`, `family`, `confidence` (`:high`/`:medium`/`:low`), `confident?`, `region_native?`, `reasoning`, `field_marks` (plain-language evidence, one per category), `candidates` (each with a `note`), `photography_tips`, `to_h`. Observability fields from the LLM call: `model_id`, `input_tokens`, `output_tokens`, `cost`, `duration_ms`, `source` (`:vision`/`:audio`/`:multimodal`), `consensus_models`. Photography tips are lazy-loaded via a second cheap LLM call only when accessed.
|
|
56
56
|
|
|
57
57
|
4. **PhotographyTips** (`lib/feather_ai/photography_tips.rb`) — Separate LLM call (uses `tips_model`, a small model) returning structured shooting advice for the identified species. Only invoked when `result.photography_tips` is called.
|
|
58
58
|
|
|
@@ -68,12 +68,12 @@ All errors inherit from `FeatherAi::Error`: `ConfigurationError` (e.g. no image
|
|
|
68
68
|
|
|
69
69
|
```ruby
|
|
70
70
|
FeatherAi.configure do |c|
|
|
71
|
-
c.provider = :anthropic
|
|
72
|
-
c.model = "claude-sonnet-
|
|
73
|
-
c.location = "Perth, Western Australia"
|
|
74
|
-
c.consensus_models = ["claude-sonnet-
|
|
75
|
-
c.tips_model = "claude-haiku-4"
|
|
76
|
-
c.media_resolution = :high
|
|
71
|
+
c.provider = :anthropic # default
|
|
72
|
+
c.model = "claude-sonnet-5-5" # default
|
|
73
|
+
c.location = "Perth, Western Australia" # biases results to local species
|
|
74
|
+
c.consensus_models = ["claude-sonnet-5-5", "claude-haiku-4-5"] # default
|
|
75
|
+
c.tips_model = "claude-haiku-4-5" # default
|
|
76
|
+
c.media_resolution = :high # default; Gemini-only image resolution
|
|
77
77
|
end
|
|
78
78
|
```
|
|
79
79
|
|
|
@@ -92,7 +92,7 @@ Generators: `rails generate feather_ai:install [model_name]` scaffolds the ident
|
|
|
92
92
|
|
|
93
93
|
- Double quotes for all strings (configured in `.rubocop.yml`)
|
|
94
94
|
- `frozen_string_literal: true` in every Ruby file
|
|
95
|
-
- Target Ruby version: >= 3.
|
|
95
|
+
- Target Ruby version: >= 3.3 (gemspec requires it; CI tests 3.3, 3.4, 4.0)
|
|
96
96
|
- RSpec with `expect` syntax only (monkey patching disabled)
|
|
97
97
|
|
|
98
98
|
## Testing
|
data/README.md
CHANGED
|
@@ -23,9 +23,9 @@ gem install feather-ai
|
|
|
23
23
|
```ruby
|
|
24
24
|
FeatherAi.configure do |c|
|
|
25
25
|
c.provider = :anthropic # Deprecated no-op; RubyLLM 2 resolves the provider from the model
|
|
26
|
-
c.model = "claude-sonnet-
|
|
26
|
+
c.model = "claude-sonnet-5-5" # Default: "claude-sonnet-5-5"
|
|
27
27
|
c.location = "Perth, WA" # Optional: biases results to local species
|
|
28
|
-
c.consensus_models = ["claude-sonnet-
|
|
28
|
+
c.consensus_models = ["claude-sonnet-5-5", "claude-haiku-4-5"] # Models used in consensus mode
|
|
29
29
|
c.tips_model = "claude-haiku-4-5" # Model for photography tips (default)
|
|
30
30
|
c.media_resolution = :high # Gemini only (generationConfig.mediaResolution); ignored elsewhere
|
|
31
31
|
c.tools = [] # RubyLLM tools available to every identification (default: none)
|
|
@@ -131,7 +131,7 @@ Consensus models are configurable:
|
|
|
131
131
|
|
|
132
132
|
```ruby
|
|
133
133
|
FeatherAi.configure do |c|
|
|
134
|
-
c.consensus_models = ["claude-sonnet-
|
|
134
|
+
c.consensus_models = ["claude-sonnet-5-5", "claude-haiku-4-5"]
|
|
135
135
|
end
|
|
136
136
|
```
|
|
137
137
|
|
|
@@ -160,7 +160,8 @@ All identification calls return a `FeatherAi::Result`:
|
|
|
160
160
|
| `confidence` | Symbol | `:high`, `:medium`, or `:low` |
|
|
161
161
|
| `confident?` | Boolean | `true` when confidence is `:high` |
|
|
162
162
|
| `region_native?` | Boolean | Whether species is native to the given region |
|
|
163
|
-
| `
|
|
163
|
+
| `field_marks` | Array | Up to four `{ category:, summary: }` hashes: the evidence for the identification in plain language, one per category (`plumage`, `size_and_shape`, `behaviour`, `habitat`, `flight`, `voice`) |
|
|
164
|
+
| `candidates` | Array | Ranked candidate hashes (`common_name`, `species`, `score`, `note`); `note` says what separates an alternative from the identification. Vote-share ranked, without notes, on consensus disagreement |
|
|
164
165
|
| `photography_tips` | Hash | Lazy-loaded shooting advice |
|
|
165
166
|
| `to_h` | Hash | All fields as a plain hash |
|
|
166
167
|
|
|
@@ -206,7 +207,7 @@ class Sighting < ApplicationRecord
|
|
|
206
207
|
end
|
|
207
208
|
```
|
|
208
209
|
|
|
209
|
-
The generator adds these columns to the model's table: `common_name`, `species`, `family`, `confidence`, `region_native`, `candidates` (jsonb). On existing tables, `identify!` persists ranked candidates only when a `candidates` column is present — add
|
|
210
|
+
The generator adds these columns to the model's table: `common_name`, `species`, `family`, `confidence`, `region_native`, `candidates` (jsonb), `field_marks` (jsonb). On existing tables, `identify!` persists ranked candidates and field marks only when a `candidates` / `field_marks` column is present — add them in your own migration or skip them.
|
|
210
211
|
|
|
211
212
|
### Identifying Records
|
|
212
213
|
|
|
@@ -303,7 +304,7 @@ after { FeatherAi.reset! }
|
|
|
303
304
|
```ruby
|
|
304
305
|
# In an initialiser or boot file — before any threads are created
|
|
305
306
|
FeatherAi.configure do |c|
|
|
306
|
-
c.model = "claude-sonnet-
|
|
307
|
+
c.model = "claude-sonnet-5-5"
|
|
307
308
|
end
|
|
308
309
|
```
|
|
309
310
|
|
|
@@ -9,9 +9,9 @@ module FeatherAi
|
|
|
9
9
|
|
|
10
10
|
def initialize
|
|
11
11
|
@provider = :anthropic
|
|
12
|
-
@model = "claude-sonnet-
|
|
12
|
+
@model = "claude-sonnet-5-5"
|
|
13
13
|
@location = nil
|
|
14
|
-
@consensus_models = %w[claude-sonnet-
|
|
14
|
+
@consensus_models = %w[claude-sonnet-5-5 claude-haiku-4-5]
|
|
15
15
|
@tips_model = "claude-haiku-4-5"
|
|
16
16
|
@media_resolution = :high
|
|
17
17
|
@tools = []
|
data/lib/feather_ai/consensus.rb
CHANGED
|
@@ -69,6 +69,8 @@ module FeatherAi
|
|
|
69
69
|
confidence: :high,
|
|
70
70
|
region_native: primary.region_native?,
|
|
71
71
|
model_id: primary.model_id,
|
|
72
|
+
reasoning: primary.reasoning,
|
|
73
|
+
field_marks: primary.field_marks,
|
|
72
74
|
candidates: primary.candidates,
|
|
73
75
|
photography_tips_loader: tips_loader_for(primary)
|
|
74
76
|
}
|
|
@@ -4,7 +4,9 @@ module FeatherAi
|
|
|
4
4
|
# Core bird identification using LLM vision and audio transcription.
|
|
5
5
|
# rubocop:disable-next Metrics/ClassLength
|
|
6
6
|
class Identifier
|
|
7
|
-
|
|
7
|
+
FIELD_MARK_CATEGORIES = %w[plumage size_and_shape behaviour habitat flight voice].freeze
|
|
8
|
+
|
|
9
|
+
SCHEMA = Schematist::Schema.create do # rubocop:disable Metrics/BlockLength
|
|
8
10
|
string :reasoning,
|
|
9
11
|
description: "Step-by-step visual analysis: describe body size, bill shape, " \
|
|
10
12
|
"plumage, markings, and rule out similar species before identifying"
|
|
@@ -13,6 +15,16 @@ module FeatherAi
|
|
|
13
15
|
string :family, description: "Bird family name"
|
|
14
16
|
string :confidence, description: "Identification confidence: high, medium, or low"
|
|
15
17
|
boolean :region_native, description: "Whether this species is native to the given region"
|
|
18
|
+
array :field_marks, max_items: 4,
|
|
19
|
+
description: "The evidence for your identification, for the person who took the photo: " \
|
|
20
|
+
"each category may appear only once, most diagnostic first, " \
|
|
21
|
+
"only what you actually observed" do
|
|
22
|
+
object do
|
|
23
|
+
string :category, enum: FIELD_MARK_CATEGORIES
|
|
24
|
+
string :summary, description: "One sentence of at most 15 words in everyday English that a beginner " \
|
|
25
|
+
"can check against the photo; no technical terms"
|
|
26
|
+
end
|
|
27
|
+
end
|
|
16
28
|
array :candidates, min_items: 1, max_items: 3,
|
|
17
29
|
description: "Candidate species ranked most to least likely; " \
|
|
18
30
|
"the first entry must match your identification" do
|
|
@@ -20,6 +32,8 @@ module FeatherAi
|
|
|
20
32
|
string :common_name, description: "Common name of the candidate"
|
|
21
33
|
string :species, description: "Scientific species name (Genus species)"
|
|
22
34
|
number :score, minimum: 0, maximum: 1, description: "Relative likelihood of this candidate"
|
|
35
|
+
string :note, description: "One sentence of at most 15 words in everyday English on what separates " \
|
|
36
|
+
"this candidate from your identification; empty string for the first entry"
|
|
23
37
|
end
|
|
24
38
|
end
|
|
25
39
|
end
|
|
@@ -121,17 +135,25 @@ module FeatherAi
|
|
|
121
135
|
family: parsed["family"],
|
|
122
136
|
confidence: parsed["confidence"],
|
|
123
137
|
region_native: parsed["region_native"],
|
|
138
|
+
field_marks: normalize_field_marks(parsed["field_marks"]),
|
|
124
139
|
candidates: normalize_candidates(parsed["candidates"]),
|
|
125
140
|
photography_tips_loader: tips_loader(parsed)
|
|
126
141
|
}
|
|
127
142
|
end
|
|
128
143
|
|
|
144
|
+
def normalize_field_marks(field_marks)
|
|
145
|
+
Array(field_marks).map { |mark| { category: mark["category"], summary: mark["summary"] } }
|
|
146
|
+
.uniq { |mark| mark[:category] }
|
|
147
|
+
end
|
|
148
|
+
|
|
129
149
|
def normalize_candidates(candidates)
|
|
130
150
|
Array(candidates).map do |candidate|
|
|
151
|
+
note = candidate["note"].to_s.strip
|
|
131
152
|
{
|
|
132
153
|
common_name: candidate["common_name"],
|
|
133
154
|
species: candidate["species"],
|
|
134
|
-
score: candidate["score"]
|
|
155
|
+
score: candidate["score"],
|
|
156
|
+
note: note.empty? ? nil : note
|
|
135
157
|
}
|
|
136
158
|
end
|
|
137
159
|
end
|
data/lib/feather_ai/result.rb
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
module FeatherAi
|
|
4
4
|
# Immutable value object wrapping all identification output.
|
|
5
5
|
class Result
|
|
6
|
-
attr_reader :common_name, :species, :family, :confidence, :region_native, :reasoning, :candidates,
|
|
6
|
+
attr_reader :common_name, :species, :family, :confidence, :region_native, :reasoning, :candidates, :field_marks,
|
|
7
7
|
:input_tokens, :output_tokens, :cost, :model_id, :duration_ms, :source,
|
|
8
8
|
:consensus_models
|
|
9
9
|
|
|
@@ -44,6 +44,7 @@ module FeatherAi
|
|
|
44
44
|
@region_native = attrs[:region_native]
|
|
45
45
|
@reasoning = attrs[:reasoning]
|
|
46
46
|
@candidates = attrs[:candidates] || []
|
|
47
|
+
@field_marks = attrs[:field_marks] || []
|
|
47
48
|
end
|
|
48
49
|
|
|
49
50
|
def assign_photography_attrs(attrs)
|
|
@@ -71,6 +72,7 @@ module FeatherAi
|
|
|
71
72
|
confidence: @confidence,
|
|
72
73
|
confident: confident?,
|
|
73
74
|
region_native: region_native?,
|
|
75
|
+
field_marks: @field_marks,
|
|
74
76
|
candidates: @candidates
|
|
75
77
|
}
|
|
76
78
|
end
|
data/lib/feather_ai/version.rb
CHANGED
|
@@ -6,5 +6,6 @@ class AddFeatherAiFieldsTo<%= model_name.camelize.pluralize %> < ActiveRecord::M
|
|
|
6
6
|
add_column :<%= model_name.underscore.pluralize %>, :confidence, :string
|
|
7
7
|
add_column :<%= model_name.underscore.pluralize %>, :region_native, :boolean
|
|
8
8
|
add_column :<%= model_name.underscore.pluralize %>, :candidates, :jsonb
|
|
9
|
+
add_column :<%= model_name.underscore.pluralize %>, :field_marks, :jsonb
|
|
9
10
|
end
|
|
10
11
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: feather-ai
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.7.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Brandyn Britton
|
|
@@ -15,14 +15,14 @@ dependencies:
|
|
|
15
15
|
requirements:
|
|
16
16
|
- - "~>"
|
|
17
17
|
- !ruby/object:Gem::Version
|
|
18
|
-
version: '2.
|
|
18
|
+
version: '2.1'
|
|
19
19
|
type: :runtime
|
|
20
20
|
prerelease: false
|
|
21
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
22
22
|
requirements:
|
|
23
23
|
- - "~>"
|
|
24
24
|
- !ruby/object:Gem::Version
|
|
25
|
-
version: '2.
|
|
25
|
+
version: '2.1'
|
|
26
26
|
description: A Ruby gem for identifying birds from photos and audio using RubyLLM.
|
|
27
27
|
Adds multi-modal identification, location-aware results, multi-model consensus,
|
|
28
28
|
and a Rails integration.
|
|
@@ -32,11 +32,6 @@ executables: []
|
|
|
32
32
|
extensions: []
|
|
33
33
|
extra_rdoc_files: []
|
|
34
34
|
files:
|
|
35
|
-
- ".idea/.gitignore"
|
|
36
|
-
- ".idea/Feather.iml"
|
|
37
|
-
- ".idea/copilot.data.migration.ask2agent.xml"
|
|
38
|
-
- ".idea/modules.xml"
|
|
39
|
-
- ".idea/vcs.xml"
|
|
40
35
|
- ".rspec"
|
|
41
36
|
- ".rubocop.yml"
|
|
42
37
|
- ".ruby-version"
|
|
@@ -61,7 +56,6 @@ files:
|
|
|
61
56
|
- lib/generators/feather_ai/install_generator.rb
|
|
62
57
|
- lib/generators/feather_ai/templates/correction_migration.rb.tt
|
|
63
58
|
- lib/generators/feather_ai/templates/migration.rb.tt
|
|
64
|
-
- sig/Feather.rbs
|
|
65
59
|
homepage: https://github.com/Birdup-Australia/Feather
|
|
66
60
|
licenses:
|
|
67
61
|
- MIT
|
|
@@ -77,7 +71,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
77
71
|
requirements:
|
|
78
72
|
- - ">="
|
|
79
73
|
- !ruby/object:Gem::Version
|
|
80
|
-
version: 3.
|
|
74
|
+
version: 3.3.0
|
|
81
75
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
76
|
requirements:
|
|
83
77
|
- - ">="
|
data/.idea/.gitignore
DELETED
data/.idea/Feather.iml
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<module type="RUBY_MODULE" version="4">
|
|
3
|
-
<component name="ModuleRunConfigurationManager">
|
|
4
|
-
<shared />
|
|
5
|
-
</component>
|
|
6
|
-
<component name="NewModuleRootManager">
|
|
7
|
-
<content url="file://$MODULE_DIR$">
|
|
8
|
-
<sourceFolder url="file://$MODULE_DIR$/features" isTestSource="true" />
|
|
9
|
-
<sourceFolder url="file://$MODULE_DIR$/spec" isTestSource="true" />
|
|
10
|
-
<sourceFolder url="file://$MODULE_DIR$/test" isTestSource="true" />
|
|
11
|
-
</content>
|
|
12
|
-
<orderEntry type="jdk" jdkName="rbenv: 3.4.8" jdkType="RUBY_SDK" />
|
|
13
|
-
<orderEntry type="sourceFolder" forTests="false" />
|
|
14
|
-
<orderEntry type="library" scope="PROVIDED" name="addressable (v2.8.9, rbenv: 3.4.8) [gem]" level="application" />
|
|
15
|
-
<orderEntry type="library" scope="PROVIDED" name="ast (v2.4.3, rbenv: 3.4.8) [gem]" level="application" />
|
|
16
|
-
<orderEntry type="library" scope="PROVIDED" name="base64 (v0.3.0, rbenv: 3.4.8) [gem]" level="application" />
|
|
17
|
-
<orderEntry type="library" scope="PROVIDED" name="bigdecimal (v4.0.1, rbenv: 3.4.8) [gem]" level="application" />
|
|
18
|
-
<orderEntry type="library" scope="PROVIDED" name="bundler (v2.6.9, rbenv: 3.4.8) [gem]" level="application" />
|
|
19
|
-
<orderEntry type="library" scope="PROVIDED" name="crack (v1.0.1, rbenv: 3.4.8) [gem]" level="application" />
|
|
20
|
-
<orderEntry type="library" scope="PROVIDED" name="date (v3.5.1, rbenv: 3.4.8) [gem]" level="application" />
|
|
21
|
-
<orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.6.2, rbenv: 3.4.8) [gem]" level="application" />
|
|
22
|
-
<orderEntry type="library" scope="PROVIDED" name="docile (v1.4.1, rbenv: 3.4.8) [gem]" level="application" />
|
|
23
|
-
<orderEntry type="library" scope="PROVIDED" name="erb (v6.0.2, rbenv: 3.4.8) [gem]" level="application" />
|
|
24
|
-
<orderEntry type="library" scope="PROVIDED" name="event_stream_parser (v1.0.0, rbenv: 3.4.8) [gem]" level="application" />
|
|
25
|
-
<orderEntry type="library" scope="PROVIDED" name="faraday (v2.14.1, rbenv: 3.4.8) [gem]" level="application" />
|
|
26
|
-
<orderEntry type="library" scope="PROVIDED" name="faraday-multipart (v1.2.0, rbenv: 3.4.8) [gem]" level="application" />
|
|
27
|
-
<orderEntry type="library" scope="PROVIDED" name="faraday-net_http (v3.4.2, rbenv: 3.4.8) [gem]" level="application" />
|
|
28
|
-
<orderEntry type="library" scope="PROVIDED" name="faraday-retry (v2.4.0, rbenv: 3.4.8) [gem]" level="application" />
|
|
29
|
-
<orderEntry type="library" scope="PROVIDED" name="hashdiff (v1.2.1, rbenv: 3.4.8) [gem]" level="application" />
|
|
30
|
-
<orderEntry type="library" scope="PROVIDED" name="io-console (v0.8.2, rbenv: 3.4.8) [gem]" level="application" />
|
|
31
|
-
<orderEntry type="library" scope="PROVIDED" name="irb (v1.17.0, rbenv: 3.4.8) [gem]" level="application" />
|
|
32
|
-
<orderEntry type="library" scope="PROVIDED" name="json (v2.19.1, rbenv: 3.4.8) [gem]" level="application" />
|
|
33
|
-
<orderEntry type="library" scope="PROVIDED" name="json-schema (v6.2.0, rbenv: 3.4.8) [gem]" level="application" />
|
|
34
|
-
<orderEntry type="library" scope="PROVIDED" name="language_server-protocol (v3.17.0.5, rbenv: 3.4.8) [gem]" level="application" />
|
|
35
|
-
<orderEntry type="library" scope="PROVIDED" name="lint_roller (v1.1.0, rbenv: 3.4.8) [gem]" level="application" />
|
|
36
|
-
<orderEntry type="library" scope="PROVIDED" name="logger (v1.7.0, rbenv: 3.4.8) [gem]" level="application" />
|
|
37
|
-
<orderEntry type="library" scope="PROVIDED" name="marcel (v1.1.0, rbenv: 3.4.8) [gem]" level="application" />
|
|
38
|
-
<orderEntry type="library" scope="PROVIDED" name="mcp (v0.8.0, rbenv: 3.4.8) [gem]" level="application" />
|
|
39
|
-
<orderEntry type="library" scope="PROVIDED" name="multipart-post (v2.4.1, rbenv: 3.4.8) [gem]" level="application" />
|
|
40
|
-
<orderEntry type="library" scope="PROVIDED" name="net-http (v0.9.1, rbenv: 3.4.8) [gem]" level="application" />
|
|
41
|
-
<orderEntry type="library" scope="PROVIDED" name="parallel (v1.27.0, rbenv: 3.4.8) [gem]" level="application" />
|
|
42
|
-
<orderEntry type="library" scope="PROVIDED" name="parser (v3.3.10.2, rbenv: 3.4.8) [gem]" level="application" />
|
|
43
|
-
<orderEntry type="library" scope="PROVIDED" name="pp (v0.6.3, rbenv: 3.4.8) [gem]" level="application" />
|
|
44
|
-
<orderEntry type="library" scope="PROVIDED" name="prettyprint (v0.2.0, rbenv: 3.4.8) [gem]" level="application" />
|
|
45
|
-
<orderEntry type="library" scope="PROVIDED" name="prism (v1.9.0, rbenv: 3.4.8) [gem]" level="application" />
|
|
46
|
-
<orderEntry type="library" scope="PROVIDED" name="psych (v5.3.1, rbenv: 3.4.8) [gem]" level="application" />
|
|
47
|
-
<orderEntry type="library" scope="PROVIDED" name="public_suffix (v7.0.5, rbenv: 3.4.8) [gem]" level="application" />
|
|
48
|
-
<orderEntry type="library" scope="PROVIDED" name="racc (v1.8.1, rbenv: 3.4.8) [gem]" level="application" />
|
|
49
|
-
<orderEntry type="library" scope="PROVIDED" name="rainbow (v3.1.1, rbenv: 3.4.8) [gem]" level="application" />
|
|
50
|
-
<orderEntry type="library" scope="PROVIDED" name="rake (v13.3.1, rbenv: 3.4.8) [gem]" level="application" />
|
|
51
|
-
<orderEntry type="library" scope="PROVIDED" name="rdoc (v7.2.0, rbenv: 3.4.8) [gem]" level="application" />
|
|
52
|
-
<orderEntry type="library" scope="PROVIDED" name="regexp_parser (v2.11.3, rbenv: 3.4.8) [gem]" level="application" />
|
|
53
|
-
<orderEntry type="library" scope="PROVIDED" name="reline (v0.6.3, rbenv: 3.4.8) [gem]" level="application" />
|
|
54
|
-
<orderEntry type="library" scope="PROVIDED" name="rexml (v3.4.4, rbenv: 3.4.8) [gem]" level="application" />
|
|
55
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec (v3.13.2, rbenv: 3.4.8) [gem]" level="application" />
|
|
56
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.13.6, rbenv: 3.4.8) [gem]" level="application" />
|
|
57
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.13.5, rbenv: 3.4.8) [gem]" level="application" />
|
|
58
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.13.8, rbenv: 3.4.8) [gem]" level="application" />
|
|
59
|
-
<orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.13.7, rbenv: 3.4.8) [gem]" level="application" />
|
|
60
|
-
<orderEntry type="library" scope="PROVIDED" name="rubocop (v1.85.1, rbenv: 3.4.8) [gem]" level="application" />
|
|
61
|
-
<orderEntry type="library" scope="PROVIDED" name="rubocop-ast (v1.49.1, rbenv: 3.4.8) [gem]" level="application" />
|
|
62
|
-
<orderEntry type="library" scope="PROVIDED" name="rubocop-rspec (v3.9.0, rbenv: 3.4.8) [gem]" level="application" />
|
|
63
|
-
<orderEntry type="library" scope="PROVIDED" name="ruby-progressbar (v1.13.0, rbenv: 3.4.8) [gem]" level="application" />
|
|
64
|
-
<orderEntry type="library" scope="PROVIDED" name="ruby_llm (v1.14.0, rbenv: 3.4.8) [gem]" level="application" />
|
|
65
|
-
<orderEntry type="library" scope="PROVIDED" name="ruby_llm-schema (v0.3.0, rbenv: 3.4.8) [gem]" level="application" />
|
|
66
|
-
<orderEntry type="library" scope="PROVIDED" name="simplecov (v0.22.0, rbenv: 3.4.8) [gem]" level="application" />
|
|
67
|
-
<orderEntry type="library" scope="PROVIDED" name="simplecov-html (v0.13.2, rbenv: 3.4.8) [gem]" level="application" />
|
|
68
|
-
<orderEntry type="library" scope="PROVIDED" name="simplecov_json_formatter (v0.1.4, rbenv: 3.4.8) [gem]" level="application" />
|
|
69
|
-
<orderEntry type="library" scope="PROVIDED" name="stringio (v3.2.0, rbenv: 3.4.8) [gem]" level="application" />
|
|
70
|
-
<orderEntry type="library" scope="PROVIDED" name="tsort (v0.2.0, rbenv: 3.4.8) [gem]" level="application" />
|
|
71
|
-
<orderEntry type="library" scope="PROVIDED" name="unicode-display_width (v3.2.0, rbenv: 3.4.8) [gem]" level="application" />
|
|
72
|
-
<orderEntry type="library" scope="PROVIDED" name="unicode-emoji (v4.2.0, rbenv: 3.4.8) [gem]" level="application" />
|
|
73
|
-
<orderEntry type="library" scope="PROVIDED" name="uri (v1.1.1, rbenv: 3.4.8) [gem]" level="application" />
|
|
74
|
-
<orderEntry type="library" scope="PROVIDED" name="vcr (v6.4.0, rbenv: 3.4.8) [gem]" level="application" />
|
|
75
|
-
<orderEntry type="library" scope="PROVIDED" name="webmock (v3.26.2, rbenv: 3.4.8) [gem]" level="application" />
|
|
76
|
-
<orderEntry type="library" scope="PROVIDED" name="zeitwerk (v2.7.5, rbenv: 3.4.8) [gem]" level="application" />
|
|
77
|
-
</component>
|
|
78
|
-
</module>
|
data/.idea/modules.xml
DELETED
data/.idea/vcs.xml
DELETED
data/sig/Feather.rbs
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
module Feather
|
|
2
|
-
VERSION: String
|
|
3
|
-
|
|
4
|
-
class Error < StandardError
|
|
5
|
-
end
|
|
6
|
-
|
|
7
|
-
class ConfigurationError < Error
|
|
8
|
-
end
|
|
9
|
-
|
|
10
|
-
class IdentificationError < Error
|
|
11
|
-
end
|
|
12
|
-
|
|
13
|
-
def self.configuration: () -> Configuration
|
|
14
|
-
def self.configure: () { (Configuration) -> void } -> void
|
|
15
|
-
def self.reset!: () -> nil
|
|
16
|
-
def self.identify: (?String? image, ?String? audio, ?location: String?, ?consensus: bool) -> Result
|
|
17
|
-
|
|
18
|
-
class Configuration
|
|
19
|
-
attr_accessor provider: Symbol
|
|
20
|
-
attr_accessor model: String
|
|
21
|
-
attr_accessor location: String?
|
|
22
|
-
attr_accessor consensus_models: Array[String]
|
|
23
|
-
attr_accessor tips_model: String
|
|
24
|
-
|
|
25
|
-
def initialize: () -> void
|
|
26
|
-
def initialize_copy: (Configuration source) -> void
|
|
27
|
-
end
|
|
28
|
-
|
|
29
|
-
class Result
|
|
30
|
-
attr_reader common_name: String?
|
|
31
|
-
attr_reader species: String?
|
|
32
|
-
attr_reader family: String?
|
|
33
|
-
attr_reader confidence: Symbol?
|
|
34
|
-
attr_reader region_native: bool?
|
|
35
|
-
attr_reader candidates: Array[Result]
|
|
36
|
-
attr_reader input_tokens: Integer?
|
|
37
|
-
attr_reader output_tokens: Integer?
|
|
38
|
-
attr_reader cost: Float?
|
|
39
|
-
attr_reader model_id: String?
|
|
40
|
-
attr_reader duration_ms: Integer?
|
|
41
|
-
attr_reader source: Symbol?
|
|
42
|
-
attr_reader consensus_models: Array[String]?
|
|
43
|
-
|
|
44
|
-
def initialize: (Hash[Symbol, untyped] attrs) -> void
|
|
45
|
-
def confident?: () -> bool
|
|
46
|
-
def region_native?: () -> bool
|
|
47
|
-
def photography_tips: () -> Hash[Symbol, String]?
|
|
48
|
-
def to_h: () -> Hash[Symbol, untyped]
|
|
49
|
-
end
|
|
50
|
-
|
|
51
|
-
class Identifier
|
|
52
|
-
SCHEMA: untyped
|
|
53
|
-
PROVIDER_RATES: Hash[Symbol, Hash[Symbol, Float]]
|
|
54
|
-
|
|
55
|
-
def initialize: (?config: Configuration) -> void
|
|
56
|
-
def identify: (?String? image, ?String? audio, ?location: String?) -> Result
|
|
57
|
-
end
|
|
58
|
-
|
|
59
|
-
class Consensus
|
|
60
|
-
def initialize: (?config: Configuration) -> void
|
|
61
|
-
def identify: (?String? image, ?String? audio, ?location: String?) -> Result
|
|
62
|
-
end
|
|
63
|
-
|
|
64
|
-
class PhotographyTips
|
|
65
|
-
SCHEMA: untyped
|
|
66
|
-
|
|
67
|
-
def initialize: (species: String, common_name: String, ?config: Configuration) -> void
|
|
68
|
-
def fetch: () -> Hash[Symbol, String]
|
|
69
|
-
end
|
|
70
|
-
|
|
71
|
-
module Instrumentation
|
|
72
|
-
def self.instrument: (String event_name, ?Hash[Symbol, untyped] payload) { () -> untyped } -> untyped
|
|
73
|
-
end
|
|
74
|
-
|
|
75
|
-
module Rails
|
|
76
|
-
module ActsAsSighting
|
|
77
|
-
CORRECTABLE_FIELDS: Array[Symbol]
|
|
78
|
-
|
|
79
|
-
module ClassMethods
|
|
80
|
-
def acts_as_sighting: () -> void
|
|
81
|
-
end
|
|
82
|
-
|
|
83
|
-
module InstanceMethods
|
|
84
|
-
def identify!: () -> Result
|
|
85
|
-
def correct!: (Hash[Symbol | String, untyped] attrs) -> void
|
|
86
|
-
def corrected?: () -> bool
|
|
87
|
-
def correction_delta: () -> Hash[Symbol, Hash[Symbol, untyped]]
|
|
88
|
-
end
|
|
89
|
-
end
|
|
90
|
-
end
|
|
91
|
-
end
|