deeprails 0.2.1 → 0.3.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: be0248dbbca4c9874fba590cd7da2c1d22cb841f007336f33895d86b20fa70d2
4
- data.tar.gz: e4db561e063f8a1f46ee9b3fc2720416de013c43a9e6adaa90c2a74ac183835d
3
+ metadata.gz: df06a891cae5fe9af356f4a883a1d7cdfe032694c8ecb2c137e4a9b50d102052
4
+ data.tar.gz: e9608b32d1e68dd23abe32c56d3abde77b5fb895ce9f9d429e885b4aea46a163
5
5
  SHA512:
6
- metadata.gz: a77669f716a31e007a4d28f014883cd9528de8f4315c2a0d6ab124aca191adc6ce337af4bfe35e1eed37cf00460bfc58ae60bd78c161e792b7e633114c30b13b
7
- data.tar.gz: ae57fce3e5033659dcb57e3d27a4eb63ade8e12ccca484107150bb9607913f811dd5738ac4f78b21cfc0841cdb0fefd96c3d3839a55794aa671d72dcc4a27f61
6
+ metadata.gz: 5458a4f2cfc15179a2380c88c5af82a5d54e56b05b1d5ae2f190796c1af93b20b0498bc4b1f3c4b2d9b03b1a3fa3dbf45565e9da5944b70376be06c46324b2df
7
+ data.tar.gz: 61c15fa86dbc9ebed224b38091ca0637bc7f6feadd6eea10847d57ed4ef0fe2600243d57bf2339c159a7b49078804157a38c0bd2f9305e9adaa5dccd3bbe5fd1
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.3.0 (2025-10-10)
4
+
5
+ Full Changelog: [v0.2.1...v0.3.0](https://github.com/deeprails/deeprails-ruby-sdk/compare/v0.2.1...v0.3.0)
6
+
7
+ ### Features
8
+
9
+ * **api:** manual updates ([986412f](https://github.com/deeprails/deeprails-ruby-sdk/commit/986412f6888691af0abdec609a5d456bdac2c1e9))
10
+
3
11
  ## 0.2.1 (2025-10-09)
4
12
 
5
13
  Full Changelog: [v0.2.0...v0.2.1](https://github.com/deeprails/deeprails-ruby-sdk/compare/v0.2.0...v0.2.1)
data/README.md CHANGED
@@ -15,7 +15,7 @@ To use this gem, install via Bundler by adding the following to your application
15
15
  <!-- x-release-please-start-version -->
16
16
 
17
17
  ```ruby
18
- gem "deeprails", "~> 0.2.1"
18
+ gem "deeprails", "~> 0.3.0"
19
19
  ```
20
20
 
21
21
  <!-- x-release-please-end -->
@@ -27,12 +27,6 @@ module Deeprails
27
27
  # @return [String]
28
28
  required :model_used, String
29
29
 
30
- # @!attribute nametag
31
- # An optional, user-defined tag for the event.
32
- #
33
- # @return [String]
34
- required :nametag, String
35
-
36
30
  # @!attribute run_mode
37
31
  # Run mode for the workflow event. The run mode allows the user to optimize for
38
32
  # speed, accuracy, and cost by determining which models are used to evaluate the
@@ -42,7 +36,13 @@ module Deeprails
42
36
  # @return [Symbol, Deeprails::Models::DefendSubmitEventParams::RunMode]
43
37
  required :run_mode, enum: -> { Deeprails::DefendSubmitEventParams::RunMode }
44
38
 
45
- # @!method initialize(model_input:, model_output:, model_used:, nametag:, run_mode:, request_options: {})
39
+ # @!attribute nametag
40
+ # An optional, user-defined tag for the event.
41
+ #
42
+ # @return [String, nil]
43
+ optional :nametag, String
44
+
45
+ # @!method initialize(model_input:, model_output:, model_used:, run_mode:, nametag: nil, request_options: {})
46
46
  # Some parameter documentations has been truncated, see
47
47
  # {Deeprails::Models::DefendSubmitEventParams} for more details.
48
48
  #
@@ -52,10 +52,10 @@ module Deeprails
52
52
  #
53
53
  # @param model_used [String] Model ID used to generate the output, like `gpt-4o` or `o3`.
54
54
  #
55
- # @param nametag [String] An optional, user-defined tag for the event.
56
- #
57
55
  # @param run_mode [Symbol, Deeprails::Models::DefendSubmitEventParams::RunMode] Run mode for the workflow event. The run mode allows the user to optimize for s
58
56
  #
57
+ # @param nametag [String] An optional, user-defined tag for the event.
58
+ #
59
59
  # @param request_options [Deeprails::RequestOptions, Hash{Symbol=>Object}]
60
60
 
61
61
  class ModelInput < Deeprails::Internal::Type::BaseModel
@@ -94,7 +94,7 @@ module Deeprails
94
94
  # Use this endpoint to submit a model input and output pair to a workflow for
95
95
  # evaluation
96
96
  #
97
- # @overload submit_event(workflow_id, model_input:, model_output:, model_used:, nametag:, run_mode:, request_options: {})
97
+ # @overload submit_event(workflow_id, model_input:, model_output:, model_used:, run_mode:, nametag: nil, request_options: {})
98
98
  #
99
99
  # @param workflow_id [String] Workflow ID associated with this event.
100
100
  #
@@ -104,10 +104,10 @@ module Deeprails
104
104
  #
105
105
  # @param model_used [String] Model ID used to generate the output, like `gpt-4o` or `o3`.
106
106
  #
107
- # @param nametag [String] An optional, user-defined tag for the event.
108
- #
109
107
  # @param run_mode [Symbol, Deeprails::Models::DefendSubmitEventParams::RunMode] Run mode for the workflow event. The run mode allows the user to optimize for s
110
108
  #
109
+ # @param nametag [String] An optional, user-defined tag for the event.
110
+ #
111
111
  # @param request_options [Deeprails::RequestOptions, Hash{Symbol=>Object}, nil]
112
112
  #
113
113
  # @return [Deeprails::Models::WorkflowEventResponse]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Deeprails
4
- VERSION = "0.2.1"
4
+ VERSION = "0.3.0"
5
5
  end
@@ -35,10 +35,6 @@ module Deeprails
35
35
  sig { returns(String) }
36
36
  attr_accessor :model_used
37
37
 
38
- # An optional, user-defined tag for the event.
39
- sig { returns(String) }
40
- attr_accessor :nametag
41
-
42
38
  # Run mode for the workflow event. The run mode allows the user to optimize for
43
39
  # speed, accuracy, and cost by determining which models are used to evaluate the
44
40
  # event. Available run modes include `precision_plus`, `precision`, `smart`, and
@@ -46,13 +42,20 @@ module Deeprails
46
42
  sig { returns(Deeprails::DefendSubmitEventParams::RunMode::OrSymbol) }
47
43
  attr_accessor :run_mode
48
44
 
45
+ # An optional, user-defined tag for the event.
46
+ sig { returns(T.nilable(String)) }
47
+ attr_reader :nametag
48
+
49
+ sig { params(nametag: String).void }
50
+ attr_writer :nametag
51
+
49
52
  sig do
50
53
  params(
51
54
  model_input: Deeprails::DefendSubmitEventParams::ModelInput::OrHash,
52
55
  model_output: String,
53
56
  model_used: String,
54
- nametag: String,
55
57
  run_mode: Deeprails::DefendSubmitEventParams::RunMode::OrSymbol,
58
+ nametag: String,
56
59
  request_options: Deeprails::RequestOptions::OrHash
57
60
  ).returns(T.attached_class)
58
61
  end
@@ -65,13 +68,13 @@ module Deeprails
65
68
  model_output:,
66
69
  # Model ID used to generate the output, like `gpt-4o` or `o3`.
67
70
  model_used:,
68
- # An optional, user-defined tag for the event.
69
- nametag:,
70
71
  # Run mode for the workflow event. The run mode allows the user to optimize for
71
72
  # speed, accuracy, and cost by determining which models are used to evaluate the
72
73
  # event. Available run modes include `precision_plus`, `precision`, `smart`, and
73
74
  # `economy`. Defaults to `smart`.
74
75
  run_mode:,
76
+ # An optional, user-defined tag for the event.
77
+ nametag: nil,
75
78
  request_options: {}
76
79
  )
77
80
  end
@@ -82,8 +85,8 @@ module Deeprails
82
85
  model_input: Deeprails::DefendSubmitEventParams::ModelInput,
83
86
  model_output: String,
84
87
  model_used: String,
85
- nametag: String,
86
88
  run_mode: Deeprails::DefendSubmitEventParams::RunMode::OrSymbol,
89
+ nametag: String,
87
90
  request_options: Deeprails::RequestOptions
88
91
  }
89
92
  )
@@ -93,8 +93,8 @@ module Deeprails
93
93
  model_input: Deeprails::DefendSubmitEventParams::ModelInput::OrHash,
94
94
  model_output: String,
95
95
  model_used: String,
96
- nametag: String,
97
96
  run_mode: Deeprails::DefendSubmitEventParams::RunMode::OrSymbol,
97
+ nametag: String,
98
98
  request_options: Deeprails::RequestOptions::OrHash
99
99
  ).returns(Deeprails::WorkflowEventResponse)
100
100
  end
@@ -109,13 +109,13 @@ module Deeprails
109
109
  model_output:,
110
110
  # Model ID used to generate the output, like `gpt-4o` or `o3`.
111
111
  model_used:,
112
- # An optional, user-defined tag for the event.
113
- nametag:,
114
112
  # Run mode for the workflow event. The run mode allows the user to optimize for
115
113
  # speed, accuracy, and cost by determining which models are used to evaluate the
116
114
  # event. Available run modes include `precision_plus`, `precision`, `smart`, and
117
115
  # `economy`. Defaults to `smart`.
118
116
  run_mode:,
117
+ # An optional, user-defined tag for the event.
118
+ nametag: nil,
119
119
  request_options: {}
120
120
  )
121
121
  end
@@ -5,8 +5,8 @@ module Deeprails
5
5
  model_input: Deeprails::DefendSubmitEventParams::ModelInput,
6
6
  model_output: String,
7
7
  model_used: String,
8
- nametag: String,
9
- run_mode: Deeprails::Models::DefendSubmitEventParams::run_mode
8
+ run_mode: Deeprails::Models::DefendSubmitEventParams::run_mode,
9
+ nametag: String
10
10
  }
11
11
  & Deeprails::Internal::Type::request_parameters
12
12
 
@@ -20,16 +20,18 @@ module Deeprails
20
20
 
21
21
  attr_accessor model_used: String
22
22
 
23
- attr_accessor nametag: String
24
-
25
23
  attr_accessor run_mode: Deeprails::Models::DefendSubmitEventParams::run_mode
26
24
 
25
+ attr_reader nametag: String?
26
+
27
+ def nametag=: (String) -> String
28
+
27
29
  def initialize: (
28
30
  model_input: Deeprails::DefendSubmitEventParams::ModelInput,
29
31
  model_output: String,
30
32
  model_used: String,
31
- nametag: String,
32
33
  run_mode: Deeprails::Models::DefendSubmitEventParams::run_mode,
34
+ ?nametag: String,
33
35
  ?request_options: Deeprails::request_opts
34
36
  ) -> void
35
37
 
@@ -37,8 +39,8 @@ module Deeprails
37
39
  model_input: Deeprails::DefendSubmitEventParams::ModelInput,
38
40
  model_output: String,
39
41
  model_used: String,
40
- nametag: String,
41
42
  run_mode: Deeprails::Models::DefendSubmitEventParams::run_mode,
43
+ nametag: String,
42
44
  request_options: Deeprails::RequestOptions
43
45
  }
44
46
 
@@ -28,8 +28,8 @@ module Deeprails
28
28
  model_input: Deeprails::DefendSubmitEventParams::ModelInput,
29
29
  model_output: String,
30
30
  model_used: String,
31
- nametag: String,
32
31
  run_mode: Deeprails::Models::DefendSubmitEventParams::run_mode,
32
+ ?nametag: String,
33
33
  ?request_options: Deeprails::request_opts
34
34
  ) -> Deeprails::WorkflowEventResponse
35
35
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: deeprails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Deeprails
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-10-09 00:00:00.000000000 Z
11
+ date: 2025-10-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: connection_pool