legion-llm 0.4.5 → 0.4.6
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 +5 -0
- data/lib/legion/llm/pipeline/gaia_caller.rb +4 -4
- data/lib/legion/llm/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: af70d89a4b5d52be8bb70f96a242afdaf9c9bddd324367c9dd9e21b6b10c16eb
|
|
4
|
+
data.tar.gz: 4a2d3171deee300fbfc22bcde3723e459ce8c8681163774f03adba7bbdbc626e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bf3d451a7240dcb2089158805153b4dc2c021d0e1766b92e2b037fd38abe662ba9b0f578702432c8f8ea5dfa3c87467b875658eb4cdae431701ce960ec2a5755
|
|
7
|
+
data.tar.gz: a7dc500bf983a8445ffb74ce49643bbfcd8af887a2e6ba6fbec9118d7c86bbd1cf2bf9141023602329042ea150fb085f2807f1a8b04faf3ad8a70f0e9272378f
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Legion LLM Changelog
|
|
2
2
|
|
|
3
|
+
## [0.4.6] - 2026-03-23
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
- `Pipeline::GaiaCaller.chat` and `.structured` now accept an explicit `caller:` keyword parameter and forward it to `Pipeline::Request.build`; falls back to `gaia_caller(phase)` when nil (default, no behaviour change)
|
|
7
|
+
|
|
3
8
|
## [0.4.5] - 2026-03-23
|
|
4
9
|
|
|
5
10
|
### Fixed
|
|
@@ -6,24 +6,24 @@ module Legion
|
|
|
6
6
|
module GaiaCaller
|
|
7
7
|
module_function
|
|
8
8
|
|
|
9
|
-
def chat(message:, phase: 'unknown', tick_trace_id: nil, tick_span_id: nil, **kwargs)
|
|
9
|
+
def chat(message:, phase: 'unknown', tick_trace_id: nil, tick_span_id: nil, caller: nil, **kwargs)
|
|
10
10
|
request = Request.build(
|
|
11
11
|
messages: [{ role: :user, content: message }],
|
|
12
12
|
system: kwargs[:system],
|
|
13
13
|
routing: { provider: kwargs[:provider], model: kwargs[:model] }.compact,
|
|
14
|
-
caller: gaia_caller(phase),
|
|
14
|
+
caller: caller || gaia_caller(phase),
|
|
15
15
|
tracing: gaia_tracing(phase, tick_trace_id, tick_span_id)
|
|
16
16
|
)
|
|
17
17
|
Executor.new(request).call
|
|
18
18
|
end
|
|
19
19
|
|
|
20
|
-
def structured(message:, schema:, phase: 'unknown', tick_trace_id: nil, tick_span_id: nil, **kwargs)
|
|
20
|
+
def structured(message:, schema:, phase: 'unknown', tick_trace_id: nil, tick_span_id: nil, caller: nil, **kwargs)
|
|
21
21
|
request = Request.build(
|
|
22
22
|
messages: [{ role: :user, content: message }],
|
|
23
23
|
system: kwargs[:system],
|
|
24
24
|
routing: { provider: kwargs[:provider], model: kwargs[:model] }.compact,
|
|
25
25
|
response_format: { type: :json_schema, schema: schema },
|
|
26
|
-
caller: gaia_caller(phase),
|
|
26
|
+
caller: caller || gaia_caller(phase),
|
|
27
27
|
tracing: gaia_tracing(phase, tick_trace_id, tick_span_id)
|
|
28
28
|
)
|
|
29
29
|
Executor.new(request).call
|
data/lib/legion/llm/version.rb
CHANGED