strongmind-platform-sdk 3.30.0 → 3.32.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 47af8235ee05e3c5a4e31ac2f6ad5a4936dcfd004ce0a0eae2737cf19ca59440
4
- data.tar.gz: e6814730ac3a3187e89554d7b7dd3d99b629f3833f41a72de4f332f59a769a72
3
+ metadata.gz: 999f26d4cd8d102f6dc1016bff6c6c209852c54e69ab1dc14b4768264f248f5c
4
+ data.tar.gz: e276aa457755f6d60729f29bdc7255d79561a8dd4582fad39c57593aaebb13c7
5
5
  SHA512:
6
- metadata.gz: e47283eb744412ddd608074dd12c38433db14273eb55ba3df3c5f60737b02e687b2ecce1ad70463d01709be5c6914178512c9d416f15c403444e6bf241d0e4e6
7
- data.tar.gz: 24aeba0a4181cdf7cfda05ad764c54d0348016232029e0db2fe7b4c1a0362c43c75618c14eeb3bce79b47cda9977f8f296808d499681bf327f8e2ebb2c3909a8
6
+ metadata.gz: db42e98d0b0769986f4f495a4f08b8f0b37904b90abf2d66e5e4e6d91f80a307048b684f546efa0f83bab209d266b2ed086f244ade5114cd93f36aa44196cbcb
7
+ data.tar.gz: 98ce988fa4fd168449b2dce2368fd6f6ef669557bd7df3489fc334e94c70e0874e20ad8267836f08978ff2969ff2ae7e2b19fcbf93d941d67a950809dee89d4a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [3.32.0] - 2026-06-10
4
+
5
+ - Add `PlatformSdk::LlmGateway::Client#generate_offline_activity` — posts to `POST /activities/generate` with `learning_component`, `learning_objective`, and `grade_level` and returns the parsed response body.
6
+
7
+ ## [3.31.0] - 2026-05-28
8
+
9
+ - Add `PlatformSdk::LlmGateway::Client#moderate_content` — posts content to `POST /moderation/moderate` on the LLM Gateway and returns the parsed response body `{ "violations" => [...] }`.
10
+
3
11
  ## [3.30.0] - 2026-05-14
4
12
 
5
13
  - Add `PlatformSdk::Observability::Langfuse::OpenAIAdapter` — wraps direct `ruby-openai` chat calls and fires `llm_call.platform_sdk` notifications with model, input messages, output content, and token usage extracted from OpenAI's response shape. Apps that hit OpenAI's API outside of RubyLLM now get the same Langfuse generation observations.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- strongmind-platform-sdk (3.30.0)
4
+ strongmind-platform-sdk (3.32.0)
5
5
  asset_sync
6
6
  aws-sdk-cloudwatch
7
7
  aws-sdk-secretsmanager (~> 1.66)
@@ -138,7 +138,7 @@ GEM
138
138
  erubi (1.13.0)
139
139
  ethon (0.16.0)
140
140
  ffi (>= 1.15.0)
141
- excon (1.4.2)
141
+ excon (1.5.0)
142
142
  logger
143
143
  factory_bot (6.4.6)
144
144
  activesupport (>= 5.0.0)
@@ -154,7 +154,7 @@ GEM
154
154
  ffi (1.17.0)
155
155
  ffi (1.17.0-x86_64-darwin)
156
156
  ffi (1.17.0-x86_64-linux-gnu)
157
- fog-aws (3.33.1)
157
+ fog-aws (3.33.2)
158
158
  base64 (>= 0.2, < 0.4)
159
159
  fog-core (~> 2.6)
160
160
  fog-json (~> 1.1)
@@ -164,7 +164,7 @@ GEM
164
164
  excon (~> 1.0)
165
165
  formatador (>= 0.2, < 2.0)
166
166
  mime-types
167
- fog-json (1.2.0)
167
+ fog-json (1.3.0)
168
168
  fog-core
169
169
  multi_json (~> 1.10)
170
170
  fog-xml (0.1.5)
@@ -177,7 +177,13 @@ GEM
177
177
  google-protobuf (4.33.6)
178
178
  bigdecimal
179
179
  rake (>= 13)
180
- googleapis-common-protos-types (1.22.0)
180
+ google-protobuf (4.33.6-x86_64-darwin)
181
+ bigdecimal
182
+ rake (>= 13)
183
+ google-protobuf (4.33.6-x86_64-linux-gnu)
184
+ bigdecimal
185
+ rake (>= 13)
186
+ googleapis-common-protos-types (1.23.0)
181
187
  google-protobuf (~> 4.26)
182
188
  hashdiff (1.1.0)
183
189
  i18n (1.14.5)
@@ -202,12 +208,12 @@ GEM
202
208
  net-imap
203
209
  net-pop
204
210
  net-smtp
205
- marcel (1.1.0)
211
+ marcel (1.2.1)
206
212
  method_source (1.1.0)
207
213
  mime-types (3.7.0)
208
214
  logger
209
215
  mime-types-data (~> 3.2025, >= 3.2025.0507)
210
- mime-types-data (3.2026.0317)
216
+ mime-types-data (3.2026.0414)
211
217
  mini_mime (1.1.5)
212
218
  mini_portile2 (2.8.7)
213
219
  minitest (5.24.1)
@@ -215,7 +221,7 @@ GEM
215
221
  mutex_m (0.2.0)
216
222
  net-http (0.4.1)
217
223
  uri
218
- net-imap (0.6.3)
224
+ net-imap (0.6.4.1)
219
225
  date
220
226
  net-protocol
221
227
  net-pop (0.1.2)
@@ -384,7 +390,7 @@ GEM
384
390
  crack (>= 0.3.2)
385
391
  hashdiff (>= 0.4.0, < 2.0.0)
386
392
  webrick (1.8.1)
387
- websocket-driver (0.8.0)
393
+ websocket-driver (0.8.1)
388
394
  base64
389
395
  websocket-extensions (>= 0.1.0)
390
396
  websocket-extensions (0.1.5)
@@ -16,6 +16,34 @@ module PlatformSdk
16
16
  end
17
17
  end
18
18
 
19
+ def moderate_content(content:)
20
+ response = @connection.post("moderation/moderate") do |req|
21
+ req.body = { content: }
22
+ end
23
+
24
+ handle_response(response)
25
+ rescue Faraday::TimeoutError => e
26
+ raise NetworkError, "Request timeout: #{e.message}"
27
+ rescue Faraday::ConnectionFailed => e
28
+ raise NetworkError, "Connection failed: #{e.message}"
29
+ end
30
+
31
+ def generate_offline_activity(learning_component:, learning_objective:, grade_level:)
32
+ response = @connection.post('activities/generate') do |req|
33
+ req.body = {
34
+ learning_component: learning_component,
35
+ learning_objective: learning_objective,
36
+ grade_level: grade_level
37
+ }
38
+ end
39
+
40
+ handle_response(response)
41
+ rescue Faraday::TimeoutError => e
42
+ raise NetworkError, "Request timeout: #{e.message}"
43
+ rescue Faraday::ConnectionFailed => e
44
+ raise NetworkError, "Connection failed: #{e.message}"
45
+ end
46
+
19
47
  def score_response(question_content:, grading_rubric:, max_score:, min_score:, student_response:)
20
48
  response = @connection.post("assessments/grade") do |req|
21
49
  req.body = {
@@ -2,7 +2,7 @@
2
2
 
3
3
  module PlatformSdk
4
4
  MAJOR = 3
5
- MINOR = 30
5
+ MINOR = 32
6
6
  PATCH = 0
7
7
 
8
8
  VERSION = "#{PlatformSdk::MAJOR}.#{PlatformSdk::MINOR}.#{PlatformSdk::PATCH}"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: strongmind-platform-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.30.0
4
+ version: 3.32.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Platform Team
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2026-05-15 00:00:00.000000000 Z
11
+ date: 2026-06-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday