lex-llm-gemini 0.4.6 → 0.4.7
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/CHANGELOG.md +9 -0
- data/Gemfile +1 -0
- data/README.md +9 -1
- data/lib/legion/extensions/llm/gemini/provider.rb +1 -1
- data/lib/legion/extensions/llm/gemini/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 891a8edf728091d2d81dba2b1ba25f68ded47dbffa806907b4550027d21fef1f
|
|
4
|
+
data.tar.gz: 5e0347d0bd32a62e44da567ae6e285e6c3605b0e847d0bebe25398b4cba1eb4c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c437081d27137cdb52aa47f8d2f34a2e850fa5baf0addf3e6562c5d8902a0d753dbd1399652a0bfd78862fa553554b24c063fffab9b5c397506a6f385414fb08
|
|
7
|
+
data.tar.gz: f5ace79fba1f1010cdffa59f7cefdec45e6e717e6265a176abd577f88d140766ccd299a218f0914f8b650b3403d73c0cf3c4417905eb78f3ee778a85292fcc50
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.4.7] - 2026-11-22
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
- Render canonical tool schemas in Gemini's `parametersJsonSchema` field instead of the restricted `parameters` Schema field, preserving `additionalProperties`, nested constraints, and references for synchronous and streaming requests. Fixes #12.
|
|
7
|
+
|
|
8
|
+
### Added
|
|
9
|
+
- HTTP-boundary regressions exercise the real provider and shared connection with closed zero-argument, implicitly open, explicitly open, and nested tool schemas, verifying exact schema preservation and unchanged canonical inputs.
|
|
10
|
+
- Declare LegionIO as a test-only dependency and load its actual actor classes and extension helpers. Load required shared conformance examples unconditionally so missing dependencies fail the suite.
|
|
11
|
+
|
|
3
12
|
## [0.4.6] - 2026-08-20
|
|
4
13
|
|
|
5
14
|
### Changed
|
data/Gemfile
CHANGED
|
@@ -7,6 +7,7 @@ gemspec
|
|
|
7
7
|
# Local-tree resolution: use the adjacent lex-llm checkout when present so the
|
|
8
8
|
# 0.8.0 conformance work resolves against the 0.8.x contract cut.
|
|
9
9
|
group :test do
|
|
10
|
+
gem 'legionio', '>= 1.9.52', require: false
|
|
10
11
|
lex_llm_path = File.expand_path('../lex-llm', __dir__)
|
|
11
12
|
gem 'lex-llm', path: lex_llm_path if Dir.exist?(lex_llm_path)
|
|
12
13
|
end
|
data/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
LegionIO LLM provider extension for Google Gemini.
|
|
4
4
|
|
|
5
|
-
This gem lives under `Legion::Extensions::Llm::Gemini` and depends on `lex-llm >= 0.
|
|
5
|
+
This gem lives under `Legion::Extensions::Llm::Gemini` and depends on `lex-llm >= 0.8.0` for shared provider-neutral routing, response normalization, fleet responder execution, and schema primitives. It does not require or call `legion-llm` at runtime; `legion-llm` owns adapter creation, routing, and registry writes after discovering loaded `lex-llm-*` provider gems.
|
|
6
6
|
|
|
7
7
|
Load it with `require 'legion/extensions/llm/gemini'`.
|
|
8
8
|
|
|
@@ -17,6 +17,11 @@ Load it with `require 'legion/extensions/llm/gemini'`.
|
|
|
17
17
|
- Best-effort `llm.registry` availability events published to AMQP when transport is loaded
|
|
18
18
|
- Shared fleet/default settings via `Legion::Extensions::Llm.provider_settings`
|
|
19
19
|
|
|
20
|
+
Canonical tool JSON Schemas are rendered as `functionDeclarations[].parametersJsonSchema`
|
|
21
|
+
for both chat and streaming. This preserves constraints such as `additionalProperties: false`
|
|
22
|
+
and nested schema references. The provider does not close open schemas or change tool arguments.
|
|
23
|
+
Gemini's typed `parameters` field is not used for these JSON Schema values.
|
|
24
|
+
|
|
20
25
|
## File Map
|
|
21
26
|
|
|
22
27
|
| Path | Purpose |
|
|
@@ -86,6 +91,9 @@ The Gemini entry point and provider use `Legion::Logging::Helper`:
|
|
|
86
91
|
|
|
87
92
|
## Development
|
|
88
93
|
|
|
94
|
+
The test bundle includes the published LegionIO host runtime. Specs load its real
|
|
95
|
+
extension helpers and actor classes without starting services, subscriptions, or timers.
|
|
96
|
+
|
|
89
97
|
```bash
|
|
90
98
|
bundle install
|
|
91
99
|
bundle exec rspec --format json --out tmp/rspec_results.json --format progress --out tmp/rspec_progress.txt
|
|
@@ -131,7 +131,7 @@ module Legion
|
|
|
131
131
|
{
|
|
132
132
|
name: Legion::Extensions::Llm::Canonical::ToolSchema.tool_name(tool),
|
|
133
133
|
description: Legion::Extensions::Llm::Canonical::ToolSchema.tool_description(tool),
|
|
134
|
-
|
|
134
|
+
parametersJsonSchema: schema
|
|
135
135
|
}
|
|
136
136
|
end
|
|
137
137
|
}]
|