lex-agentic-self 0.1.4 → 0.1.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
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4b1a6259c4a8d39317efcde2411a00f23884be106262ed5f92c354e4598c8d2b
|
|
4
|
+
data.tar.gz: d03715d7c3350c7fcbe6320fa1e7695cb9e645a5baa0d936e375380de241fba7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8cc4b8d492e1f3fc6ee1ee504016951ee023ddb44917b529b5e1dd42b159e7d197514193d9ec56202d0f785041a336d3dc6bd000f0cb7c92e8c418fed61dd750
|
|
7
|
+
data.tar.gz: a6412d86c32ec2cfaa0b2754ca7962afc6fdf32a93ca667351ee79024e8872be9967e36ca64159d3a02ab586142c31eab6e6f24b9d12be7256a092c48bc3cb41
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.1.6] - 2026-03-26
|
|
4
|
+
|
|
5
|
+
### Changed
|
|
6
|
+
- fix remote_invocable? to use class method for local dispatch
|
|
7
|
+
|
|
8
|
+
## [0.1.5] - 2026-03-23
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
- route llm calls through pipeline when available, add caller identity for attribution
|
|
12
|
+
|
|
3
13
|
## [0.1.4] - 2026-03-23
|
|
4
14
|
|
|
5
15
|
### Fixed
|
|
@@ -50,12 +50,31 @@ module Legion
|
|
|
50
50
|
# --- Private helpers ---
|
|
51
51
|
|
|
52
52
|
def llm_ask(prompt)
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
53
|
+
if pipeline_available?
|
|
54
|
+
response = Legion::LLM::Pipeline::GaiaCaller.chat(
|
|
55
|
+
message: prompt,
|
|
56
|
+
phase: 'self_talk',
|
|
57
|
+
caller: { extension: 'lex-agentic-self', mode: :self_talk }
|
|
58
|
+
)
|
|
59
|
+
content = response&.message&.dig(:content)
|
|
60
|
+
::Struct.new(:content).new(content) if content
|
|
61
|
+
else
|
|
62
|
+
chat = Legion::LLM.chat
|
|
63
|
+
chat.with_instructions(SYSTEM_PROMPT)
|
|
64
|
+
chat.ask(prompt)
|
|
65
|
+
end
|
|
56
66
|
end
|
|
57
67
|
private_class_method :llm_ask
|
|
58
68
|
|
|
69
|
+
def pipeline_available?
|
|
70
|
+
!!(defined?(Legion::LLM::Pipeline::GaiaCaller) &&
|
|
71
|
+
Legion::LLM.respond_to?(:pipeline_enabled?) &&
|
|
72
|
+
Legion::LLM.pipeline_enabled?)
|
|
73
|
+
rescue StandardError
|
|
74
|
+
false
|
|
75
|
+
end
|
|
76
|
+
private_class_method :pipeline_available?
|
|
77
|
+
|
|
59
78
|
def build_generate_turn_prompt(voice_type:, topic:, prior_turns:)
|
|
60
79
|
prior_lines = prior_turns.map do |t|
|
|
61
80
|
"[#{t[:voice_name] || t[:voice_id]}] (#{t[:position]}): #{t[:content]}"
|