lex-agentic-learning 0.1.5 → 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: e96c2951a43df6a8be916ccebb3e0e8e30ebe7012cce63991379b7d8e805d2b3
|
|
4
|
+
data.tar.gz: 845cf82aaf037817c5975993875168e81559655e817b0d405b0276e1a0c51acb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fb161a4e8157f159d2df4eab332e468fdbb1f4061a4f724a362e1bad65908f14ccb2f31595e27ef4f435dda17e3de74d9802f8f5b45395835182d4e4aee6a923
|
|
7
|
+
data.tar.gz: 2174d206980aa6602c42aff2f4bbb4cdb197733473bb27601052cda4a29cf9115ee0352438ea64d9a854992a477d79d5b9fd7be290edcb7c91737f7bfbecba85
|
data/CHANGELOG.md
CHANGED
|
@@ -68,7 +68,7 @@ module Legion
|
|
|
68
68
|
def form_agenda(**)
|
|
69
69
|
wonders = wonder_store.top_balanced(limit: 5)
|
|
70
70
|
log.debug "[curiosity] forming agenda from #{wonders.size} wonders"
|
|
71
|
-
{
|
|
71
|
+
{ agenda: wonders.map { |w| format_agenda_item(w) }, source: :curiosity }
|
|
72
72
|
end
|
|
73
73
|
|
|
74
74
|
def wonder_stats(**)
|
|
@@ -124,14 +124,14 @@ RSpec.describe Legion::Extensions::Agentic::Learning::Curiosity::Runners::Curios
|
|
|
124
124
|
it 'converts top wonders to agenda items' do
|
|
125
125
|
client.generate_wonder(question: 'Why?', domain: :test)
|
|
126
126
|
result = client.form_agenda
|
|
127
|
-
expect(result[:
|
|
128
|
-
expect(result[:
|
|
129
|
-
expect(result[:
|
|
127
|
+
expect(result[:agenda].size).to eq(1)
|
|
128
|
+
expect(result[:agenda].first[:type]).to eq(:curious)
|
|
129
|
+
expect(result[:agenda].first[:source]).to eq(:curiosity)
|
|
130
130
|
end
|
|
131
131
|
|
|
132
132
|
it 'returns empty agenda with no wonders' do
|
|
133
133
|
result = client.form_agenda
|
|
134
|
-
expect(result[:
|
|
134
|
+
expect(result[:agenda]).to be_empty
|
|
135
135
|
end
|
|
136
136
|
end
|
|
137
137
|
|