@fonoster/common 0.17.1 → 0.18.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.
- package/dist/protos/applications.proto +56 -31
- package/package.json +3 -3
|
@@ -35,8 +35,8 @@ service Applications {
|
|
|
35
35
|
rpc UpdateApplication(UpdateApplicationRequest) returns (UpdateApplicationResponse) {}
|
|
36
36
|
// Delete an application
|
|
37
37
|
rpc DeleteApplication(DeleteApplicationRequest) returns (DeleteApplicationResponse) {}
|
|
38
|
-
// Evaluate the intelligence for an Autopilot application
|
|
39
|
-
rpc EvaluateIntelligence(EvaluateIntelligenceRequest) returns (
|
|
38
|
+
// Evaluate the intelligence for an Autopilot application (server streaming)
|
|
39
|
+
rpc EvaluateIntelligence(EvaluateIntelligenceRequest) returns (stream EvaluateIntelligenceEvent);
|
|
40
40
|
// Create an Ephemeral Agent to perform test calls to an application
|
|
41
41
|
rpc CreateTestToken(google.protobuf.Empty) returns (TestTokenResponse) {}
|
|
42
42
|
}
|
|
@@ -166,39 +166,64 @@ message EvaluateIntelligenceRequest {
|
|
|
166
166
|
ProductContainer intelligence = 1;
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
//
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
}
|
|
169
|
+
// Expected text comparison type for eval steps
|
|
170
|
+
enum ExpectedTextType {
|
|
171
|
+
EXACT = 0;
|
|
172
|
+
SIMILAR = 1;
|
|
173
|
+
}
|
|
175
174
|
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
175
|
+
// Tool evaluation report for a single tool call
|
|
176
|
+
message ToolEvaluationReport {
|
|
177
|
+
string expected_tool = 1;
|
|
178
|
+
string actual_tool = 2;
|
|
179
|
+
bool passed = 3;
|
|
180
|
+
google.protobuf.Struct expected_parameters = 4;
|
|
181
|
+
google.protobuf.Struct actual_parameters = 5;
|
|
182
|
+
string error_message = 6;
|
|
183
|
+
}
|
|
184
184
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
185
|
+
// Step evaluation report for a single conversation step
|
|
186
|
+
message StepEvaluationReport {
|
|
187
|
+
string human_input = 1;
|
|
188
|
+
string expected_response = 2;
|
|
189
|
+
string ai_response = 3;
|
|
190
|
+
ExpectedTextType evaluation_type = 4;
|
|
191
|
+
bool passed = 5;
|
|
192
|
+
string error_message = 6;
|
|
193
|
+
repeated ToolEvaluationReport tool_evaluations = 7;
|
|
194
|
+
}
|
|
194
195
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
196
|
+
// Scenario evaluation report (full scenario with all steps)
|
|
197
|
+
message ScenarioEvaluationReport {
|
|
198
|
+
string scenario_ref = 1;
|
|
199
|
+
bool overall_passed = 2;
|
|
200
|
+
repeated StepEvaluationReport steps = 3;
|
|
201
|
+
}
|
|
200
202
|
|
|
201
|
-
|
|
203
|
+
// Streaming event: one step result for a scenario
|
|
204
|
+
message StepEvaluationResult {
|
|
205
|
+
string scenario_ref = 1;
|
|
206
|
+
StepEvaluationReport report = 2;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
// Streaming event: scenario completed summary
|
|
210
|
+
message ScenarioSummary {
|
|
211
|
+
string scenario_ref = 1;
|
|
212
|
+
bool overall_passed = 2;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
// Streaming event: eval error
|
|
216
|
+
message EvalError {
|
|
217
|
+
string message = 1;
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
// Single event in the EvaluateIntelligence server stream
|
|
221
|
+
message EvaluateIntelligenceEvent {
|
|
222
|
+
oneof event {
|
|
223
|
+
StepEvaluationResult step_result = 1;
|
|
224
|
+
ScenarioSummary scenario_summary = 2;
|
|
225
|
+
EvalError eval_error = 3;
|
|
226
|
+
}
|
|
202
227
|
}
|
|
203
228
|
|
|
204
229
|
message TestTokenResponse {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fonoster/common",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.18.0",
|
|
4
4
|
"description": "Common library for Fonoster projects",
|
|
5
5
|
"author": "Pedro Sanders <psanders@fonoster.com>",
|
|
6
6
|
"homepage": "https://github.com/fonoster/fonoster#readme",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"clean": "rimraf ./dist node_modules tsconfig.tsbuildinfo"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@fonoster/logger": "^0.
|
|
21
|
+
"@fonoster/logger": "^0.18.0",
|
|
22
22
|
"@grpc/grpc-js": "~1.10.11",
|
|
23
23
|
"@grpc/proto-loader": "^0.7.15",
|
|
24
24
|
"@influxdata/influxdb-client": "^1.35.0",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"devDependencies": {
|
|
50
50
|
"@types/nodemailer": "^6.4.21"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "051f172b266db965cf1d1366f563da995a29a93d"
|
|
53
53
|
}
|