multiwoven-integrations 0.36.0 → 0.36.1
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/lib/multiwoven/integrations/core/constants.rb +2 -2
- data/lib/multiwoven/integrations/rollout.rb +1 -1
- data/lib/multiwoven/integrations/source/aisquared/client.rb +9 -9
- data/lib/multiwoven/integrations/source/aisquared/config/meta.json +3 -3
- data/lib/multiwoven/integrations/source/aisquared/config/spec.json +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: e4f34b1cc0505c461164b834a52516ff73a0532172dafae8f4a6d08952acda2b
|
|
4
|
+
data.tar.gz: 7f8659cf2b0bb9a6b7e6b9544bb5a41aa555c6f6c513a9075e914ec75439bf82
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bf25401d3f6e8128b019458272c4ddd11a9706448be8fc43b06095b1a28af74fcb955de3ef19e71dc800f0db395cdc6cf9de53993871056e0382a1d5a24f1add
|
|
7
|
+
data.tar.gz: 212d8760218bcefc423782ea9548405376a03da90d7e9db75cf871c7bea45069a4caa500cbf4cf09e1f2a004f1eaf5d1ed6ea3321f2cfda18dcd4c57b5c3533b
|
|
@@ -115,8 +115,8 @@ module Multiwoven
|
|
|
115
115
|
"line_total" => "PRICE"
|
|
116
116
|
}.freeze
|
|
117
117
|
|
|
118
|
-
# Aisquared
|
|
119
|
-
|
|
118
|
+
# Aisquared Bolt
|
|
119
|
+
AISQUARED_BOLT_URL = ENV["LIGHTNING_URL"]
|
|
120
120
|
end
|
|
121
121
|
end
|
|
122
122
|
end
|
|
@@ -10,7 +10,7 @@ module Multiwoven::Integrations::Source
|
|
|
10
10
|
response = make_request(lightning_embedding_url, HTTP_POST, connection_config[:request_format], connection_config)
|
|
11
11
|
success?(response) ? success_status : failure_status(nil)
|
|
12
12
|
rescue StandardError => e
|
|
13
|
-
handle_exception(e, { context: "
|
|
13
|
+
handle_exception(e, { context: "AISQUARED_BOLT:CHECK_CONNECTION:EXCEPTION", type: "error" })
|
|
14
14
|
failure_status(e)
|
|
15
15
|
end
|
|
16
16
|
|
|
@@ -19,7 +19,7 @@ module Multiwoven::Integrations::Source
|
|
|
19
19
|
catalog = build_catalog(catalog_json)
|
|
20
20
|
catalog.to_multiwoven_message
|
|
21
21
|
rescue StandardError => e
|
|
22
|
-
handle_exception(e, { context: "
|
|
22
|
+
handle_exception(e, { context: "AISQUARED_BOLT:DISCOVER:EXCEPTION", type: "error" })
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
def read(sync_config)
|
|
@@ -30,14 +30,14 @@ module Multiwoven::Integrations::Source
|
|
|
30
30
|
payload = sync_config.model.query
|
|
31
31
|
run_model(connection_config, payload)
|
|
32
32
|
rescue StandardError => e
|
|
33
|
-
handle_exception(e, { context: "
|
|
33
|
+
handle_exception(e, { context: "AISQUARED_BOLT:READ:EXCEPTION", type: "error" })
|
|
34
34
|
end
|
|
35
35
|
|
|
36
36
|
private
|
|
37
37
|
|
|
38
38
|
def lightning_embedding_url
|
|
39
|
-
host =
|
|
40
|
-
raise AisquaredError, "
|
|
39
|
+
host = AISQUARED_BOLT_URL.to_s.strip
|
|
40
|
+
raise AisquaredError, "AISQUARED_BOLT_URL is not configured" if host.empty?
|
|
41
41
|
|
|
42
42
|
"http://#{host.sub(%r{\Ahttps?://}, "")}/chat"
|
|
43
43
|
end
|
|
@@ -45,7 +45,7 @@ module Multiwoven::Integrations::Source
|
|
|
45
45
|
def parse_json(json_string)
|
|
46
46
|
JSON.parse(json_string)
|
|
47
47
|
rescue JSON::ParserError => e
|
|
48
|
-
handle_exception(e, { context: "
|
|
48
|
+
handle_exception(e, { context: "AISQUARED_BOLT:PARSE_JSON:EXCEPTION", type: "error" })
|
|
49
49
|
{}
|
|
50
50
|
end
|
|
51
51
|
|
|
@@ -64,7 +64,7 @@ module Multiwoven::Integrations::Source
|
|
|
64
64
|
response = make_request(lightning_embedding_url, HTTP_POST, payload, connection_config)
|
|
65
65
|
process_response(response)
|
|
66
66
|
rescue StandardError => e
|
|
67
|
-
handle_exception(e, { context: "
|
|
67
|
+
handle_exception(e, { context: "AISQUARED_BOLT:RUN_MODEL:EXCEPTION", type: "error" })
|
|
68
68
|
end
|
|
69
69
|
|
|
70
70
|
def process_response(response)
|
|
@@ -72,10 +72,10 @@ module Multiwoven::Integrations::Source
|
|
|
72
72
|
data = JSON.parse(response.body)
|
|
73
73
|
[RecordMessage.new(data: data, emitted_at: Time.now.to_i).to_multiwoven_message]
|
|
74
74
|
else
|
|
75
|
-
create_log_message("
|
|
75
|
+
create_log_message("AISQUARED_BOLT:RUN_MODEL", "error", "request failed: #{response.body}")
|
|
76
76
|
end
|
|
77
77
|
rescue StandardError => e
|
|
78
|
-
handle_exception(e, { context: "
|
|
78
|
+
handle_exception(e, { context: "AISQUARED_BOLT:PROCESS_RESPONSE:EXCEPTION", type: "error" })
|
|
79
79
|
end
|
|
80
80
|
|
|
81
81
|
def check_chunk_error(chunk)
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"data": {
|
|
3
3
|
"name": "Aisquared",
|
|
4
|
-
"title": "AI Squared
|
|
4
|
+
"title": "AI Squared Bolt",
|
|
5
5
|
"connector_type": "source",
|
|
6
6
|
"category": "AI Model",
|
|
7
7
|
"sub_category": "LLM",
|
|
8
|
-
"documentation_url": "https://docs.squared.ai/activation/ai-ml-sources/aisquared-
|
|
9
|
-
"github_issue_label": "source-aisquared-
|
|
8
|
+
"documentation_url": "https://docs.squared.ai/activation/ai-ml-sources/aisquared-bolt",
|
|
9
|
+
"github_issue_label": "source-aisquared-bolt",
|
|
10
10
|
"icon": "icon.svg",
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"release_stage": "alpha",
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
|
-
"documentation_url": "https://docs.squared.ai/activation/ai-ml-sources/aisquared-
|
|
2
|
+
"documentation_url": "https://docs.squared.ai/activation/ai-ml-sources/aisquared-bolt",
|
|
3
3
|
"stream_type": "user_defined",
|
|
4
4
|
"connector_query_type": "ai_ml",
|
|
5
5
|
"connection_specification": {
|
|
6
6
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
7
|
-
"title": "AI Squared
|
|
7
|
+
"title": "AI Squared Bolt",
|
|
8
8
|
"type": "object",
|
|
9
9
|
"required": ["request_format", "response_format"],
|
|
10
10
|
"properties": {
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: multiwoven-integrations
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.36.
|
|
4
|
+
version: 0.36.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Subin T P
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-05-
|
|
11
|
+
date: 2026-05-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|