ragie_ruby_sdk 1.0.13 → 1.0.14
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/README.md +4 -4
- data/docs/Answer.md +2 -2
- data/docs/CodeInterpreterEvidence.md +3 -3
- data/docs/FinalAnswer.md +4 -4
- data/docs/FinalAnswerEvidenceInner.md +10 -10
- data/docs/FinalAnswerStepsInner.md +3 -3
- data/docs/PlanStep.md +1 -1
- data/docs/RagieEvidence.md +7 -7
- data/docs/SearchStep.md +1 -1
- data/docs/SurrenderStep.md +1 -1
- data/lib/ragie_ruby_sdk/models/answer.rb +2 -17
- data/lib/ragie_ruby_sdk/models/code_interpreter_evidence.rb +3 -0
- data/lib/ragie_ruby_sdk/models/final_answer.rb +4 -51
- data/lib/ragie_ruby_sdk/models/plan_step.rb +1 -17
- data/lib/ragie_ruby_sdk/models/ragie_evidence.rb +7 -0
- data/lib/ragie_ruby_sdk/models/search_step.rb +1 -0
- data/lib/ragie_ruby_sdk/models/surrender_step.rb +1 -0
- data/lib/ragie_ruby_sdk/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 17873019808725418e224defcf9e3818132ee8addcefb0141f70f65eb3367077
|
|
4
|
+
data.tar.gz: 73d8514f89ce01aa8912fe9a9c10b12116073fc3e4cfb619a53f4f63882b2702
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 4c9bf30d59bfe88509f9696075480fc3f8efebc5d24953e21a74779cf64adcfd14c18ab834ad6ab4d07279b98c5fcc2392d46a37f76190139d0be728ddd2dab9
|
|
7
|
+
data.tar.gz: af09b17a96e59577570352f306bd754a3eb5325a7c106e6ce5c654b744074c22646fc91a4bc9b8e8e6cd5747d661969b744cb1dcfff889f9ad193824e56ae7b9
|
data/README.md
CHANGED
|
@@ -7,7 +7,7 @@ No description provided (generated by Openapi Generator https://github.com/opena
|
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
8
8
|
|
|
9
9
|
- API version: 1.0.0
|
|
10
|
-
- Package version: 1.0.
|
|
10
|
+
- Package version: 1.0.13
|
|
11
11
|
- Generator version: 7.16.0-SNAPSHOT
|
|
12
12
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
|
13
13
|
|
|
@@ -24,16 +24,16 @@ gem build ragie_ruby_sdk.gemspec
|
|
|
24
24
|
Then either install the gem locally:
|
|
25
25
|
|
|
26
26
|
```shell
|
|
27
|
-
gem install ./ragie_ruby_sdk-1.0.
|
|
27
|
+
gem install ./ragie_ruby_sdk-1.0.13.gem
|
|
28
28
|
```
|
|
29
29
|
|
|
30
|
-
(for development, run `gem install --dev ./ragie_ruby_sdk-1.0.
|
|
30
|
+
(for development, run `gem install --dev ./ragie_ruby_sdk-1.0.13.gem` to install the development dependencies)
|
|
31
31
|
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
|
33
33
|
|
|
34
34
|
Finally add this to the Gemfile:
|
|
35
35
|
|
|
36
|
-
gem 'ragie_ruby_sdk', '~> 1.0.
|
|
36
|
+
gem 'ragie_ruby_sdk', '~> 1.0.13'
|
|
37
37
|
|
|
38
38
|
### Install from Git
|
|
39
39
|
|
data/docs/Answer.md
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **text** | **String** |
|
|
8
|
-
| **evidence** | **Array<String>** |
|
|
7
|
+
| **text** | **String** | An answer to a question. | |
|
|
8
|
+
| **evidence** | **Array<String>** | The evidence used to derive the answer. | [optional] |
|
|
9
9
|
|
|
10
10
|
## Example
|
|
11
11
|
|
|
@@ -6,9 +6,9 @@
|
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **type** | **String** | | [optional][default to 'code_interpreter'] |
|
|
8
8
|
| **text** | **String** | | |
|
|
9
|
-
| **code** | **String** |
|
|
10
|
-
| **code_issue** | **String** |
|
|
11
|
-
| **code_result** | **String** |
|
|
9
|
+
| **code** | **String** | The code that was executed. | |
|
|
10
|
+
| **code_issue** | **String** | The issue that the code was written to solve. | |
|
|
11
|
+
| **code_result** | **String** | The result of the code that was executed. | |
|
|
12
12
|
|
|
13
13
|
## Example
|
|
14
14
|
|
data/docs/FinalAnswer.md
CHANGED
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
| Name | Type | Description | Notes |
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
|
-
| **text** | **String** |
|
|
8
|
-
| **evidence** | [**Array<FinalAnswerEvidenceInner>**](FinalAnswerEvidenceInner.md) |
|
|
9
|
-
| **steps** | [**Array<FinalAnswerStepsInner>**](FinalAnswerStepsInner.md) |
|
|
10
|
-
| **usage** | [**AgentHoppsModelsModelsUsage**](AgentHoppsModelsModelsUsage.md) |
|
|
7
|
+
| **text** | **String** | The final answer to the question. | |
|
|
8
|
+
| **evidence** | [**Array<FinalAnswerEvidenceInner>**](FinalAnswerEvidenceInner.md) | The evidence used to derive the answer. | [optional] |
|
|
9
|
+
| **steps** | [**Array<FinalAnswerStepsInner>**](FinalAnswerStepsInner.md) | The steps that led to the answer. | [optional] |
|
|
10
|
+
| **usage** | [**AgentHoppsModelsModelsUsage**](AgentHoppsModelsModelsUsage.md) | The usage of the models. | [optional] |
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
@@ -6,16 +6,16 @@
|
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **type** | **String** | | [optional][default to 'code_interpreter'] |
|
|
8
8
|
| **text** | **String** | | |
|
|
9
|
-
| **code** | **String** |
|
|
10
|
-
| **code_issue** | **String** |
|
|
11
|
-
| **code_result** | **String** |
|
|
12
|
-
| **id** | **String** |
|
|
13
|
-
| **index** | **Integer** |
|
|
14
|
-
| **document_id** | **String** |
|
|
15
|
-
| **document_name** | **String** |
|
|
16
|
-
| **metadata** | **Hash<String, Object>** |
|
|
17
|
-
| **document_metadata** | **Hash<String, Object>** |
|
|
18
|
-
| **links** | [**Hash<String, SearchResultLink>**](SearchResultLink.md) |
|
|
9
|
+
| **code** | **String** | The code that was executed. | |
|
|
10
|
+
| **code_issue** | **String** | The issue that the code was written to solve. | |
|
|
11
|
+
| **code_result** | **String** | The result of the code that was executed. | |
|
|
12
|
+
| **id** | **String** | The chunk id of the evidence. | |
|
|
13
|
+
| **index** | **Integer** | The index of the chunk in the document. | |
|
|
14
|
+
| **document_id** | **String** | The document id of the document containing the chunk being used as evidence. | |
|
|
15
|
+
| **document_name** | **String** | The name of the document that contains the chunk being used as evidence. | |
|
|
16
|
+
| **metadata** | **Hash<String, Object>** | The metadata of the chunk being used as evidence. | [optional] |
|
|
17
|
+
| **document_metadata** | **Hash<String, Object>** | The metadata of the document that contains the evidence. | [optional] |
|
|
18
|
+
| **links** | [**Hash<String, SearchResultLink>**](SearchResultLink.md) | The links to the evidence. | [optional] |
|
|
19
19
|
|
|
20
20
|
## Example
|
|
21
21
|
|
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
| **current_question** | **String** | | |
|
|
10
10
|
| **other_resolved_question_ids** | **Array<String>** | A list of questions ids that are no longer relevant to the current answer referenced by their IDs. | [optional] |
|
|
11
11
|
| **answer** | [**Answer**](Answer.md) | | |
|
|
12
|
-
| **search** | [**Search**](Search.md) |
|
|
13
|
-
| **questions_to_answer** | **Array<String>** |
|
|
12
|
+
| **search** | [**Search**](Search.md) | The search request to be made. | |
|
|
13
|
+
| **questions_to_answer** | **Array<String>** | The questions that need to be answered to answer the original question. | [optional] |
|
|
14
14
|
| **code_issue** | **String** | The natural language description of the code issue you need to solve. | |
|
|
15
15
|
| **code** | **String** | The code you generated to solve the code issue. | [optional][default to ''] |
|
|
16
16
|
| **code_result** | **String** | The result of the code you generated after executing it. | [optional][default to ''] |
|
|
17
|
-
| **partial_answer** | [**Answer**](Answer.md) |
|
|
17
|
+
| **partial_answer** | [**Answer**](Answer.md) | The a potential partial answer when a full answer was not possible. | |
|
|
18
18
|
| **eval_passed** | **Boolean** | | |
|
|
19
19
|
| **eval_reason** | **String** | | |
|
|
20
20
|
|
data/docs/PlanStep.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
| **type** | **String** | | [optional][default to 'plan'] |
|
|
8
8
|
| **think** | **String** | | |
|
|
9
9
|
| **current_question** | **String** | | |
|
|
10
|
-
| **questions_to_answer** | **Array<String>** |
|
|
10
|
+
| **questions_to_answer** | **Array<String>** | The questions that need to be answered to answer the original question. | [optional] |
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
data/docs/RagieEvidence.md
CHANGED
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
|
7
7
|
| **type** | **String** | | [optional][default to 'ragie'] |
|
|
8
8
|
| **text** | **String** | | |
|
|
9
|
-
| **id** | **String** |
|
|
10
|
-
| **index** | **Integer** |
|
|
11
|
-
| **document_id** | **String** |
|
|
12
|
-
| **document_name** | **String** |
|
|
13
|
-
| **metadata** | **Hash<String, Object>** |
|
|
14
|
-
| **document_metadata** | **Hash<String, Object>** |
|
|
15
|
-
| **links** | [**Hash<String, SearchResultLink>**](SearchResultLink.md) |
|
|
9
|
+
| **id** | **String** | The chunk id of the evidence. | |
|
|
10
|
+
| **index** | **Integer** | The index of the chunk in the document. | |
|
|
11
|
+
| **document_id** | **String** | The document id of the document containing the chunk being used as evidence. | |
|
|
12
|
+
| **document_name** | **String** | The name of the document that contains the chunk being used as evidence. | |
|
|
13
|
+
| **metadata** | **Hash<String, Object>** | The metadata of the chunk being used as evidence. | [optional] |
|
|
14
|
+
| **document_metadata** | **Hash<String, Object>** | The metadata of the document that contains the evidence. | [optional] |
|
|
15
|
+
| **links** | [**Hash<String, SearchResultLink>**](SearchResultLink.md) | The links to the evidence. | [optional] |
|
|
16
16
|
|
|
17
17
|
## Example
|
|
18
18
|
|
data/docs/SearchStep.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
| **type** | **String** | | [optional][default to 'search'] |
|
|
8
8
|
| **think** | **String** | | |
|
|
9
9
|
| **current_question** | **String** | | |
|
|
10
|
-
| **search** | [**Search**](Search.md) |
|
|
10
|
+
| **search** | [**Search**](Search.md) | The search request to be made. | |
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
data/docs/SurrenderStep.md
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
| **type** | **String** | | [optional][default to 'surrender'] |
|
|
8
8
|
| **think** | **String** | | |
|
|
9
9
|
| **current_question** | **String** | | |
|
|
10
|
-
| **partial_answer** | [**Answer**](Answer.md) |
|
|
10
|
+
| **partial_answer** | [**Answer**](Answer.md) | The a potential partial answer when a full answer was not possible. | |
|
|
11
11
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
@@ -15,8 +15,10 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module RagieRubySdk
|
|
17
17
|
class Answer
|
|
18
|
+
# An answer to a question.
|
|
18
19
|
attr_accessor :text
|
|
19
20
|
|
|
21
|
+
# The evidence used to derive the answer.
|
|
20
22
|
attr_accessor :evidence
|
|
21
23
|
|
|
22
24
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -77,8 +79,6 @@ module RagieRubySdk
|
|
|
77
79
|
if (value = attributes[:'evidence']).is_a?(Array)
|
|
78
80
|
self.evidence = value
|
|
79
81
|
end
|
|
80
|
-
else
|
|
81
|
-
self.evidence = nil
|
|
82
82
|
end
|
|
83
83
|
end
|
|
84
84
|
|
|
@@ -91,10 +91,6 @@ module RagieRubySdk
|
|
|
91
91
|
invalid_properties.push('invalid value for "text", text cannot be nil.')
|
|
92
92
|
end
|
|
93
93
|
|
|
94
|
-
if @evidence.nil?
|
|
95
|
-
invalid_properties.push('invalid value for "evidence", evidence cannot be nil.')
|
|
96
|
-
end
|
|
97
|
-
|
|
98
94
|
invalid_properties
|
|
99
95
|
end
|
|
100
96
|
|
|
@@ -103,7 +99,6 @@ module RagieRubySdk
|
|
|
103
99
|
def valid?
|
|
104
100
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
105
101
|
return false if @text.nil?
|
|
106
|
-
return false if @evidence.nil?
|
|
107
102
|
true
|
|
108
103
|
end
|
|
109
104
|
|
|
@@ -117,16 +112,6 @@ module RagieRubySdk
|
|
|
117
112
|
@text = text
|
|
118
113
|
end
|
|
119
114
|
|
|
120
|
-
# Custom attribute writer method with validation
|
|
121
|
-
# @param [Object] evidence Value to be assigned
|
|
122
|
-
def evidence=(evidence)
|
|
123
|
-
if evidence.nil?
|
|
124
|
-
fail ArgumentError, 'evidence cannot be nil'
|
|
125
|
-
end
|
|
126
|
-
|
|
127
|
-
@evidence = evidence
|
|
128
|
-
end
|
|
129
|
-
|
|
130
115
|
# Checks equality by comparing each attribute.
|
|
131
116
|
# @param [Object] Object to be compared
|
|
132
117
|
def ==(o)
|
|
@@ -19,10 +19,13 @@ module RagieRubySdk
|
|
|
19
19
|
|
|
20
20
|
attr_accessor :text
|
|
21
21
|
|
|
22
|
+
# The code that was executed.
|
|
22
23
|
attr_accessor :code
|
|
23
24
|
|
|
25
|
+
# The issue that the code was written to solve.
|
|
24
26
|
attr_accessor :code_issue
|
|
25
27
|
|
|
28
|
+
# The result of the code that was executed.
|
|
26
29
|
attr_accessor :code_result
|
|
27
30
|
|
|
28
31
|
class EnumAttributeValidator
|
|
@@ -15,12 +15,16 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module RagieRubySdk
|
|
17
17
|
class FinalAnswer
|
|
18
|
+
# The final answer to the question.
|
|
18
19
|
attr_accessor :text
|
|
19
20
|
|
|
21
|
+
# The evidence used to derive the answer.
|
|
20
22
|
attr_accessor :evidence
|
|
21
23
|
|
|
24
|
+
# The steps that led to the answer.
|
|
22
25
|
attr_accessor :steps
|
|
23
26
|
|
|
27
|
+
# The usage of the models.
|
|
24
28
|
attr_accessor :usage
|
|
25
29
|
|
|
26
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
@@ -85,22 +89,16 @@ module RagieRubySdk
|
|
|
85
89
|
if (value = attributes[:'evidence']).is_a?(Array)
|
|
86
90
|
self.evidence = value
|
|
87
91
|
end
|
|
88
|
-
else
|
|
89
|
-
self.evidence = nil
|
|
90
92
|
end
|
|
91
93
|
|
|
92
94
|
if attributes.key?(:'steps')
|
|
93
95
|
if (value = attributes[:'steps']).is_a?(Array)
|
|
94
96
|
self.steps = value
|
|
95
97
|
end
|
|
96
|
-
else
|
|
97
|
-
self.steps = nil
|
|
98
98
|
end
|
|
99
99
|
|
|
100
100
|
if attributes.key?(:'usage')
|
|
101
101
|
self.usage = attributes[:'usage']
|
|
102
|
-
else
|
|
103
|
-
self.usage = nil
|
|
104
102
|
end
|
|
105
103
|
end
|
|
106
104
|
|
|
@@ -113,18 +111,6 @@ module RagieRubySdk
|
|
|
113
111
|
invalid_properties.push('invalid value for "text", text cannot be nil.')
|
|
114
112
|
end
|
|
115
113
|
|
|
116
|
-
if @evidence.nil?
|
|
117
|
-
invalid_properties.push('invalid value for "evidence", evidence cannot be nil.')
|
|
118
|
-
end
|
|
119
|
-
|
|
120
|
-
if @steps.nil?
|
|
121
|
-
invalid_properties.push('invalid value for "steps", steps cannot be nil.')
|
|
122
|
-
end
|
|
123
|
-
|
|
124
|
-
if @usage.nil?
|
|
125
|
-
invalid_properties.push('invalid value for "usage", usage cannot be nil.')
|
|
126
|
-
end
|
|
127
|
-
|
|
128
114
|
invalid_properties
|
|
129
115
|
end
|
|
130
116
|
|
|
@@ -133,9 +119,6 @@ module RagieRubySdk
|
|
|
133
119
|
def valid?
|
|
134
120
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
135
121
|
return false if @text.nil?
|
|
136
|
-
return false if @evidence.nil?
|
|
137
|
-
return false if @steps.nil?
|
|
138
|
-
return false if @usage.nil?
|
|
139
122
|
true
|
|
140
123
|
end
|
|
141
124
|
|
|
@@ -149,36 +132,6 @@ module RagieRubySdk
|
|
|
149
132
|
@text = text
|
|
150
133
|
end
|
|
151
134
|
|
|
152
|
-
# Custom attribute writer method with validation
|
|
153
|
-
# @param [Object] evidence Value to be assigned
|
|
154
|
-
def evidence=(evidence)
|
|
155
|
-
if evidence.nil?
|
|
156
|
-
fail ArgumentError, 'evidence cannot be nil'
|
|
157
|
-
end
|
|
158
|
-
|
|
159
|
-
@evidence = evidence
|
|
160
|
-
end
|
|
161
|
-
|
|
162
|
-
# Custom attribute writer method with validation
|
|
163
|
-
# @param [Object] steps Value to be assigned
|
|
164
|
-
def steps=(steps)
|
|
165
|
-
if steps.nil?
|
|
166
|
-
fail ArgumentError, 'steps cannot be nil'
|
|
167
|
-
end
|
|
168
|
-
|
|
169
|
-
@steps = steps
|
|
170
|
-
end
|
|
171
|
-
|
|
172
|
-
# Custom attribute writer method with validation
|
|
173
|
-
# @param [Object] usage Value to be assigned
|
|
174
|
-
def usage=(usage)
|
|
175
|
-
if usage.nil?
|
|
176
|
-
fail ArgumentError, 'usage cannot be nil'
|
|
177
|
-
end
|
|
178
|
-
|
|
179
|
-
@usage = usage
|
|
180
|
-
end
|
|
181
|
-
|
|
182
135
|
# Checks equality by comparing each attribute.
|
|
183
136
|
# @param [Object] Object to be compared
|
|
184
137
|
def ==(o)
|
|
@@ -21,6 +21,7 @@ module RagieRubySdk
|
|
|
21
21
|
|
|
22
22
|
attr_accessor :current_question
|
|
23
23
|
|
|
24
|
+
# The questions that need to be answered to answer the original question.
|
|
24
25
|
attr_accessor :questions_to_answer
|
|
25
26
|
|
|
26
27
|
class EnumAttributeValidator
|
|
@@ -119,8 +120,6 @@ module RagieRubySdk
|
|
|
119
120
|
if (value = attributes[:'questions_to_answer']).is_a?(Array)
|
|
120
121
|
self.questions_to_answer = value
|
|
121
122
|
end
|
|
122
|
-
else
|
|
123
|
-
self.questions_to_answer = nil
|
|
124
123
|
end
|
|
125
124
|
end
|
|
126
125
|
|
|
@@ -137,10 +136,6 @@ module RagieRubySdk
|
|
|
137
136
|
invalid_properties.push('invalid value for "current_question", current_question cannot be nil.')
|
|
138
137
|
end
|
|
139
138
|
|
|
140
|
-
if @questions_to_answer.nil?
|
|
141
|
-
invalid_properties.push('invalid value for "questions_to_answer", questions_to_answer cannot be nil.')
|
|
142
|
-
end
|
|
143
|
-
|
|
144
139
|
invalid_properties
|
|
145
140
|
end
|
|
146
141
|
|
|
@@ -152,7 +147,6 @@ module RagieRubySdk
|
|
|
152
147
|
return false unless type_validator.valid?(@type)
|
|
153
148
|
return false if @think.nil?
|
|
154
149
|
return false if @current_question.nil?
|
|
155
|
-
return false if @questions_to_answer.nil?
|
|
156
150
|
true
|
|
157
151
|
end
|
|
158
152
|
|
|
@@ -186,16 +180,6 @@ module RagieRubySdk
|
|
|
186
180
|
@current_question = current_question
|
|
187
181
|
end
|
|
188
182
|
|
|
189
|
-
# Custom attribute writer method with validation
|
|
190
|
-
# @param [Object] questions_to_answer Value to be assigned
|
|
191
|
-
def questions_to_answer=(questions_to_answer)
|
|
192
|
-
if questions_to_answer.nil?
|
|
193
|
-
fail ArgumentError, 'questions_to_answer cannot be nil'
|
|
194
|
-
end
|
|
195
|
-
|
|
196
|
-
@questions_to_answer = questions_to_answer
|
|
197
|
-
end
|
|
198
|
-
|
|
199
183
|
# Checks equality by comparing each attribute.
|
|
200
184
|
# @param [Object] Object to be compared
|
|
201
185
|
def ==(o)
|
|
@@ -19,18 +19,25 @@ module RagieRubySdk
|
|
|
19
19
|
|
|
20
20
|
attr_accessor :text
|
|
21
21
|
|
|
22
|
+
# The chunk id of the evidence.
|
|
22
23
|
attr_accessor :id
|
|
23
24
|
|
|
25
|
+
# The index of the chunk in the document.
|
|
24
26
|
attr_accessor :index
|
|
25
27
|
|
|
28
|
+
# The document id of the document containing the chunk being used as evidence.
|
|
26
29
|
attr_accessor :document_id
|
|
27
30
|
|
|
31
|
+
# The name of the document that contains the chunk being used as evidence.
|
|
28
32
|
attr_accessor :document_name
|
|
29
33
|
|
|
34
|
+
# The metadata of the chunk being used as evidence.
|
|
30
35
|
attr_accessor :metadata
|
|
31
36
|
|
|
37
|
+
# The metadata of the document that contains the evidence.
|
|
32
38
|
attr_accessor :document_metadata
|
|
33
39
|
|
|
40
|
+
# The links to the evidence.
|
|
34
41
|
attr_accessor :links
|
|
35
42
|
|
|
36
43
|
class EnumAttributeValidator
|