strongmind-platform-sdk 3.30.0 → 3.31.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: 10d35eff19921c9d4af7c868e029be7f27d7e91d8f07f121eaaae68f24c4b7eb
4
+ data.tar.gz: 5279ca9517e256d4a654a804bc7c9b98da5444389805ef47465e627fc2c64bdd
5
5
  SHA512:
6
- metadata.gz: e47283eb744412ddd608074dd12c38433db14273eb55ba3df3c5f60737b02e687b2ecce1ad70463d01709be5c6914178512c9d416f15c403444e6bf241d0e4e6
7
- data.tar.gz: 24aeba0a4181cdf7cfda05ad764c54d0348016232029e0db2fe7b4c1a0362c43c75618c14eeb3bce79b47cda9977f8f296808d499681bf327f8e2ebb2c3909a8
6
+ metadata.gz: bb37a39d29872d7777d656585dc4a363d007e4cc927179e2f122191cefc8de7e642c0c65be10002dd7108ec7d51711397c02606de0d3b46d74217704e6e535ea
7
+ data.tar.gz: e6891dc2c16f509d5a2e96b0e8da758d463f6b69e970478addee6834400ec8c7511e0d9c38b31318ca390e411ef143513f6f3c893e208b745742d81ba5807d4c
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [3.31.0] - 2026-05-28
4
+
5
+ - Add `PlatformSdk::LlmGateway::Client#moderate_content` — posts content to `POST /moderation/moderate` on the LLM Gateway and returns the parsed response body `{ "violations" => [...] }`.
6
+
3
7
  ## [3.30.0] - 2026-05-14
4
8
 
5
9
  - 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.31.0)
5
5
  asset_sync
6
6
  aws-sdk-cloudwatch
7
7
  aws-sdk-secretsmanager (~> 1.66)
@@ -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)
219
225
  date
220
226
  net-protocol
221
227
  net-pop (0.1.2)
@@ -16,6 +16,18 @@ 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
+
19
31
  def score_response(question_content:, grading_rubric:, max_score:, min_score:, student_response:)
20
32
  response = @connection.post("assessments/grade") do |req|
21
33
  req.body = {
@@ -2,7 +2,7 @@
2
2
 
3
3
  module PlatformSdk
4
4
  MAJOR = 3
5
- MINOR = 30
5
+ MINOR = 31
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.31.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-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday