@orq-ai/node 3.8.4 → 3.8.6
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/bin/mcp-server.js +104 -104
- package/bin/mcp-server.js.map +26 -26
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +16 -16
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +16 -16
- package/package.json +1 -1
- package/packages/orq-rc/README.md +95 -83
- package/packages/orq-rc/docs/sdks/evals/README.md +213 -0
- package/packages/orq-rc/docs/sdks/knowledge/README.md +87 -77
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/funcs/evalsRagasContextEntitiesRecall.ts +183 -0
- package/packages/orq-rc/src/funcs/evalsRagasContextRecall.ts +177 -0
- package/packages/orq-rc/src/funcs/evalsRagasNoiseSensitivity.ts +180 -0
- package/packages/orq-rc/src/funcs/{knowledgeCreate.ts → knowledgeChunkText.ts} +13 -11
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +9 -3
- package/packages/orq-rc/src/mcp-server/tools/evalsRagasContextEntitiesRecall.ts +37 -0
- package/packages/orq-rc/src/mcp-server/tools/{knowledgeCreate.ts → evalsRagasContextRecall.ts} +7 -6
- package/packages/orq-rc/src/mcp-server/tools/evalsRagasNoiseSensitivity.ts +36 -0
- package/packages/orq-rc/src/mcp-server/tools/knowledgeChunkText.ts +37 -0
- package/packages/orq-rc/src/models/errors/evalsragascontextentitiesrecall.ts +167 -0
- package/packages/orq-rc/src/models/errors/evalsragascontextrecall.ts +162 -0
- package/packages/orq-rc/src/models/errors/evalsragasnoisesensitivity.ts +164 -0
- package/packages/orq-rc/src/models/errors/index.ts +3 -0
- package/packages/orq-rc/src/models/operations/chunktext.ts +1623 -0
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/evalsragascontextentitiesrecall.ts +164 -0
- package/packages/orq-rc/src/models/operations/evalsragascontextrecall.ts +164 -0
- package/packages/orq-rc/src/models/operations/evalsragasnoisesensitivity.ts +166 -0
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +29 -28
- package/packages/orq-rc/src/models/operations/index.ts +4 -1
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/updateknowledge.ts +206 -266
- package/packages/orq-rc/src/sdk/evals.ts +45 -0
- package/packages/orq-rc/src/sdk/knowledge.ts +18 -15
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +16 -16
- package/packages/orq-rc/src/models/operations/createknowledge.ts +0 -846
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { OrqError } from "./orqerror.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Internal server error
|
|
10
|
+
*/
|
|
11
|
+
export type EvalsRagasContextEntitiesRecallEvalsResponseBodyData = {
|
|
12
|
+
message: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Internal server error
|
|
17
|
+
*/
|
|
18
|
+
export class EvalsRagasContextEntitiesRecallEvalsResponseBody extends OrqError {
|
|
19
|
+
/** The original data that was passed to this error instance. */
|
|
20
|
+
data$: EvalsRagasContextEntitiesRecallEvalsResponseBodyData;
|
|
21
|
+
|
|
22
|
+
constructor(
|
|
23
|
+
err: EvalsRagasContextEntitiesRecallEvalsResponseBodyData,
|
|
24
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
25
|
+
) {
|
|
26
|
+
const message = "message" in err && typeof err.message === "string"
|
|
27
|
+
? err.message
|
|
28
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
29
|
+
super(message, httpMeta);
|
|
30
|
+
this.data$ = err;
|
|
31
|
+
|
|
32
|
+
this.name = "EvalsRagasContextEntitiesRecallEvalsResponseBody";
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Evaluator not found
|
|
38
|
+
*/
|
|
39
|
+
export type EvalsRagasContextEntitiesRecallResponseBodyData = {
|
|
40
|
+
message: string;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Evaluator not found
|
|
45
|
+
*/
|
|
46
|
+
export class EvalsRagasContextEntitiesRecallResponseBody extends OrqError {
|
|
47
|
+
/** The original data that was passed to this error instance. */
|
|
48
|
+
data$: EvalsRagasContextEntitiesRecallResponseBodyData;
|
|
49
|
+
|
|
50
|
+
constructor(
|
|
51
|
+
err: EvalsRagasContextEntitiesRecallResponseBodyData,
|
|
52
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
53
|
+
) {
|
|
54
|
+
const message = "message" in err && typeof err.message === "string"
|
|
55
|
+
? err.message
|
|
56
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
57
|
+
super(message, httpMeta);
|
|
58
|
+
this.data$ = err;
|
|
59
|
+
|
|
60
|
+
this.name = "EvalsRagasContextEntitiesRecallResponseBody";
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/** @internal */
|
|
65
|
+
export const EvalsRagasContextEntitiesRecallEvalsResponseBody$inboundSchema:
|
|
66
|
+
z.ZodType<
|
|
67
|
+
EvalsRagasContextEntitiesRecallEvalsResponseBody,
|
|
68
|
+
z.ZodTypeDef,
|
|
69
|
+
unknown
|
|
70
|
+
> = z.object({
|
|
71
|
+
message: z.string(),
|
|
72
|
+
request$: z.instanceof(Request),
|
|
73
|
+
response$: z.instanceof(Response),
|
|
74
|
+
body$: z.string(),
|
|
75
|
+
})
|
|
76
|
+
.transform((v) => {
|
|
77
|
+
return new EvalsRagasContextEntitiesRecallEvalsResponseBody(v, {
|
|
78
|
+
request: v.request$,
|
|
79
|
+
response: v.response$,
|
|
80
|
+
body: v.body$,
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
/** @internal */
|
|
85
|
+
export type EvalsRagasContextEntitiesRecallEvalsResponseBody$Outbound = {
|
|
86
|
+
message: string;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
/** @internal */
|
|
90
|
+
export const EvalsRagasContextEntitiesRecallEvalsResponseBody$outboundSchema:
|
|
91
|
+
z.ZodType<
|
|
92
|
+
EvalsRagasContextEntitiesRecallEvalsResponseBody$Outbound,
|
|
93
|
+
z.ZodTypeDef,
|
|
94
|
+
EvalsRagasContextEntitiesRecallEvalsResponseBody
|
|
95
|
+
> = z.instanceof(EvalsRagasContextEntitiesRecallEvalsResponseBody)
|
|
96
|
+
.transform(v => v.data$)
|
|
97
|
+
.pipe(z.object({
|
|
98
|
+
message: z.string(),
|
|
99
|
+
}));
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* @internal
|
|
103
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
104
|
+
*/
|
|
105
|
+
export namespace EvalsRagasContextEntitiesRecallEvalsResponseBody$ {
|
|
106
|
+
/** @deprecated use `EvalsRagasContextEntitiesRecallEvalsResponseBody$inboundSchema` instead. */
|
|
107
|
+
export const inboundSchema =
|
|
108
|
+
EvalsRagasContextEntitiesRecallEvalsResponseBody$inboundSchema;
|
|
109
|
+
/** @deprecated use `EvalsRagasContextEntitiesRecallEvalsResponseBody$outboundSchema` instead. */
|
|
110
|
+
export const outboundSchema =
|
|
111
|
+
EvalsRagasContextEntitiesRecallEvalsResponseBody$outboundSchema;
|
|
112
|
+
/** @deprecated use `EvalsRagasContextEntitiesRecallEvalsResponseBody$Outbound` instead. */
|
|
113
|
+
export type Outbound =
|
|
114
|
+
EvalsRagasContextEntitiesRecallEvalsResponseBody$Outbound;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/** @internal */
|
|
118
|
+
export const EvalsRagasContextEntitiesRecallResponseBody$inboundSchema:
|
|
119
|
+
z.ZodType<
|
|
120
|
+
EvalsRagasContextEntitiesRecallResponseBody,
|
|
121
|
+
z.ZodTypeDef,
|
|
122
|
+
unknown
|
|
123
|
+
> = z.object({
|
|
124
|
+
message: z.string(),
|
|
125
|
+
request$: z.instanceof(Request),
|
|
126
|
+
response$: z.instanceof(Response),
|
|
127
|
+
body$: z.string(),
|
|
128
|
+
})
|
|
129
|
+
.transform((v) => {
|
|
130
|
+
return new EvalsRagasContextEntitiesRecallResponseBody(v, {
|
|
131
|
+
request: v.request$,
|
|
132
|
+
response: v.response$,
|
|
133
|
+
body: v.body$,
|
|
134
|
+
});
|
|
135
|
+
});
|
|
136
|
+
|
|
137
|
+
/** @internal */
|
|
138
|
+
export type EvalsRagasContextEntitiesRecallResponseBody$Outbound = {
|
|
139
|
+
message: string;
|
|
140
|
+
};
|
|
141
|
+
|
|
142
|
+
/** @internal */
|
|
143
|
+
export const EvalsRagasContextEntitiesRecallResponseBody$outboundSchema:
|
|
144
|
+
z.ZodType<
|
|
145
|
+
EvalsRagasContextEntitiesRecallResponseBody$Outbound,
|
|
146
|
+
z.ZodTypeDef,
|
|
147
|
+
EvalsRagasContextEntitiesRecallResponseBody
|
|
148
|
+
> = z.instanceof(EvalsRagasContextEntitiesRecallResponseBody)
|
|
149
|
+
.transform(v => v.data$)
|
|
150
|
+
.pipe(z.object({
|
|
151
|
+
message: z.string(),
|
|
152
|
+
}));
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* @internal
|
|
156
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
157
|
+
*/
|
|
158
|
+
export namespace EvalsRagasContextEntitiesRecallResponseBody$ {
|
|
159
|
+
/** @deprecated use `EvalsRagasContextEntitiesRecallResponseBody$inboundSchema` instead. */
|
|
160
|
+
export const inboundSchema =
|
|
161
|
+
EvalsRagasContextEntitiesRecallResponseBody$inboundSchema;
|
|
162
|
+
/** @deprecated use `EvalsRagasContextEntitiesRecallResponseBody$outboundSchema` instead. */
|
|
163
|
+
export const outboundSchema =
|
|
164
|
+
EvalsRagasContextEntitiesRecallResponseBody$outboundSchema;
|
|
165
|
+
/** @deprecated use `EvalsRagasContextEntitiesRecallResponseBody$Outbound` instead. */
|
|
166
|
+
export type Outbound = EvalsRagasContextEntitiesRecallResponseBody$Outbound;
|
|
167
|
+
}
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { OrqError } from "./orqerror.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Internal server error
|
|
10
|
+
*/
|
|
11
|
+
export type EvalsRagasContextRecallEvalsResponseBodyData = {
|
|
12
|
+
message: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Internal server error
|
|
17
|
+
*/
|
|
18
|
+
export class EvalsRagasContextRecallEvalsResponseBody extends OrqError {
|
|
19
|
+
/** The original data that was passed to this error instance. */
|
|
20
|
+
data$: EvalsRagasContextRecallEvalsResponseBodyData;
|
|
21
|
+
|
|
22
|
+
constructor(
|
|
23
|
+
err: EvalsRagasContextRecallEvalsResponseBodyData,
|
|
24
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
25
|
+
) {
|
|
26
|
+
const message = "message" in err && typeof err.message === "string"
|
|
27
|
+
? err.message
|
|
28
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
29
|
+
super(message, httpMeta);
|
|
30
|
+
this.data$ = err;
|
|
31
|
+
|
|
32
|
+
this.name = "EvalsRagasContextRecallEvalsResponseBody";
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Evaluator not found
|
|
38
|
+
*/
|
|
39
|
+
export type EvalsRagasContextRecallResponseBodyData = {
|
|
40
|
+
message: string;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Evaluator not found
|
|
45
|
+
*/
|
|
46
|
+
export class EvalsRagasContextRecallResponseBody extends OrqError {
|
|
47
|
+
/** The original data that was passed to this error instance. */
|
|
48
|
+
data$: EvalsRagasContextRecallResponseBodyData;
|
|
49
|
+
|
|
50
|
+
constructor(
|
|
51
|
+
err: EvalsRagasContextRecallResponseBodyData,
|
|
52
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
53
|
+
) {
|
|
54
|
+
const message = "message" in err && typeof err.message === "string"
|
|
55
|
+
? err.message
|
|
56
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
57
|
+
super(message, httpMeta);
|
|
58
|
+
this.data$ = err;
|
|
59
|
+
|
|
60
|
+
this.name = "EvalsRagasContextRecallResponseBody";
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/** @internal */
|
|
65
|
+
export const EvalsRagasContextRecallEvalsResponseBody$inboundSchema: z.ZodType<
|
|
66
|
+
EvalsRagasContextRecallEvalsResponseBody,
|
|
67
|
+
z.ZodTypeDef,
|
|
68
|
+
unknown
|
|
69
|
+
> = z.object({
|
|
70
|
+
message: z.string(),
|
|
71
|
+
request$: z.instanceof(Request),
|
|
72
|
+
response$: z.instanceof(Response),
|
|
73
|
+
body$: z.string(),
|
|
74
|
+
})
|
|
75
|
+
.transform((v) => {
|
|
76
|
+
return new EvalsRagasContextRecallEvalsResponseBody(v, {
|
|
77
|
+
request: v.request$,
|
|
78
|
+
response: v.response$,
|
|
79
|
+
body: v.body$,
|
|
80
|
+
});
|
|
81
|
+
});
|
|
82
|
+
|
|
83
|
+
/** @internal */
|
|
84
|
+
export type EvalsRagasContextRecallEvalsResponseBody$Outbound = {
|
|
85
|
+
message: string;
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
/** @internal */
|
|
89
|
+
export const EvalsRagasContextRecallEvalsResponseBody$outboundSchema: z.ZodType<
|
|
90
|
+
EvalsRagasContextRecallEvalsResponseBody$Outbound,
|
|
91
|
+
z.ZodTypeDef,
|
|
92
|
+
EvalsRagasContextRecallEvalsResponseBody
|
|
93
|
+
> = z.instanceof(EvalsRagasContextRecallEvalsResponseBody)
|
|
94
|
+
.transform(v => v.data$)
|
|
95
|
+
.pipe(z.object({
|
|
96
|
+
message: z.string(),
|
|
97
|
+
}));
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* @internal
|
|
101
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
102
|
+
*/
|
|
103
|
+
export namespace EvalsRagasContextRecallEvalsResponseBody$ {
|
|
104
|
+
/** @deprecated use `EvalsRagasContextRecallEvalsResponseBody$inboundSchema` instead. */
|
|
105
|
+
export const inboundSchema =
|
|
106
|
+
EvalsRagasContextRecallEvalsResponseBody$inboundSchema;
|
|
107
|
+
/** @deprecated use `EvalsRagasContextRecallEvalsResponseBody$outboundSchema` instead. */
|
|
108
|
+
export const outboundSchema =
|
|
109
|
+
EvalsRagasContextRecallEvalsResponseBody$outboundSchema;
|
|
110
|
+
/** @deprecated use `EvalsRagasContextRecallEvalsResponseBody$Outbound` instead. */
|
|
111
|
+
export type Outbound = EvalsRagasContextRecallEvalsResponseBody$Outbound;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/** @internal */
|
|
115
|
+
export const EvalsRagasContextRecallResponseBody$inboundSchema: z.ZodType<
|
|
116
|
+
EvalsRagasContextRecallResponseBody,
|
|
117
|
+
z.ZodTypeDef,
|
|
118
|
+
unknown
|
|
119
|
+
> = z.object({
|
|
120
|
+
message: z.string(),
|
|
121
|
+
request$: z.instanceof(Request),
|
|
122
|
+
response$: z.instanceof(Response),
|
|
123
|
+
body$: z.string(),
|
|
124
|
+
})
|
|
125
|
+
.transform((v) => {
|
|
126
|
+
return new EvalsRagasContextRecallResponseBody(v, {
|
|
127
|
+
request: v.request$,
|
|
128
|
+
response: v.response$,
|
|
129
|
+
body: v.body$,
|
|
130
|
+
});
|
|
131
|
+
});
|
|
132
|
+
|
|
133
|
+
/** @internal */
|
|
134
|
+
export type EvalsRagasContextRecallResponseBody$Outbound = {
|
|
135
|
+
message: string;
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
/** @internal */
|
|
139
|
+
export const EvalsRagasContextRecallResponseBody$outboundSchema: z.ZodType<
|
|
140
|
+
EvalsRagasContextRecallResponseBody$Outbound,
|
|
141
|
+
z.ZodTypeDef,
|
|
142
|
+
EvalsRagasContextRecallResponseBody
|
|
143
|
+
> = z.instanceof(EvalsRagasContextRecallResponseBody)
|
|
144
|
+
.transform(v => v.data$)
|
|
145
|
+
.pipe(z.object({
|
|
146
|
+
message: z.string(),
|
|
147
|
+
}));
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* @internal
|
|
151
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
152
|
+
*/
|
|
153
|
+
export namespace EvalsRagasContextRecallResponseBody$ {
|
|
154
|
+
/** @deprecated use `EvalsRagasContextRecallResponseBody$inboundSchema` instead. */
|
|
155
|
+
export const inboundSchema =
|
|
156
|
+
EvalsRagasContextRecallResponseBody$inboundSchema;
|
|
157
|
+
/** @deprecated use `EvalsRagasContextRecallResponseBody$outboundSchema` instead. */
|
|
158
|
+
export const outboundSchema =
|
|
159
|
+
EvalsRagasContextRecallResponseBody$outboundSchema;
|
|
160
|
+
/** @deprecated use `EvalsRagasContextRecallResponseBody$Outbound` instead. */
|
|
161
|
+
export type Outbound = EvalsRagasContextRecallResponseBody$Outbound;
|
|
162
|
+
}
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { OrqError } from "./orqerror.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Internal server error
|
|
10
|
+
*/
|
|
11
|
+
export type EvalsRagasNoiseSensitivityEvalsResponseBodyData = {
|
|
12
|
+
message: string;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* Internal server error
|
|
17
|
+
*/
|
|
18
|
+
export class EvalsRagasNoiseSensitivityEvalsResponseBody extends OrqError {
|
|
19
|
+
/** The original data that was passed to this error instance. */
|
|
20
|
+
data$: EvalsRagasNoiseSensitivityEvalsResponseBodyData;
|
|
21
|
+
|
|
22
|
+
constructor(
|
|
23
|
+
err: EvalsRagasNoiseSensitivityEvalsResponseBodyData,
|
|
24
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
25
|
+
) {
|
|
26
|
+
const message = "message" in err && typeof err.message === "string"
|
|
27
|
+
? err.message
|
|
28
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
29
|
+
super(message, httpMeta);
|
|
30
|
+
this.data$ = err;
|
|
31
|
+
|
|
32
|
+
this.name = "EvalsRagasNoiseSensitivityEvalsResponseBody";
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Evaluator not found
|
|
38
|
+
*/
|
|
39
|
+
export type EvalsRagasNoiseSensitivityResponseBodyData = {
|
|
40
|
+
message: string;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Evaluator not found
|
|
45
|
+
*/
|
|
46
|
+
export class EvalsRagasNoiseSensitivityResponseBody extends OrqError {
|
|
47
|
+
/** The original data that was passed to this error instance. */
|
|
48
|
+
data$: EvalsRagasNoiseSensitivityResponseBodyData;
|
|
49
|
+
|
|
50
|
+
constructor(
|
|
51
|
+
err: EvalsRagasNoiseSensitivityResponseBodyData,
|
|
52
|
+
httpMeta: { response: Response; request: Request; body: string },
|
|
53
|
+
) {
|
|
54
|
+
const message = "message" in err && typeof err.message === "string"
|
|
55
|
+
? err.message
|
|
56
|
+
: `API error occurred: ${JSON.stringify(err)}`;
|
|
57
|
+
super(message, httpMeta);
|
|
58
|
+
this.data$ = err;
|
|
59
|
+
|
|
60
|
+
this.name = "EvalsRagasNoiseSensitivityResponseBody";
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/** @internal */
|
|
65
|
+
export const EvalsRagasNoiseSensitivityEvalsResponseBody$inboundSchema:
|
|
66
|
+
z.ZodType<
|
|
67
|
+
EvalsRagasNoiseSensitivityEvalsResponseBody,
|
|
68
|
+
z.ZodTypeDef,
|
|
69
|
+
unknown
|
|
70
|
+
> = z.object({
|
|
71
|
+
message: z.string(),
|
|
72
|
+
request$: z.instanceof(Request),
|
|
73
|
+
response$: z.instanceof(Response),
|
|
74
|
+
body$: z.string(),
|
|
75
|
+
})
|
|
76
|
+
.transform((v) => {
|
|
77
|
+
return new EvalsRagasNoiseSensitivityEvalsResponseBody(v, {
|
|
78
|
+
request: v.request$,
|
|
79
|
+
response: v.response$,
|
|
80
|
+
body: v.body$,
|
|
81
|
+
});
|
|
82
|
+
});
|
|
83
|
+
|
|
84
|
+
/** @internal */
|
|
85
|
+
export type EvalsRagasNoiseSensitivityEvalsResponseBody$Outbound = {
|
|
86
|
+
message: string;
|
|
87
|
+
};
|
|
88
|
+
|
|
89
|
+
/** @internal */
|
|
90
|
+
export const EvalsRagasNoiseSensitivityEvalsResponseBody$outboundSchema:
|
|
91
|
+
z.ZodType<
|
|
92
|
+
EvalsRagasNoiseSensitivityEvalsResponseBody$Outbound,
|
|
93
|
+
z.ZodTypeDef,
|
|
94
|
+
EvalsRagasNoiseSensitivityEvalsResponseBody
|
|
95
|
+
> = z.instanceof(EvalsRagasNoiseSensitivityEvalsResponseBody)
|
|
96
|
+
.transform(v => v.data$)
|
|
97
|
+
.pipe(z.object({
|
|
98
|
+
message: z.string(),
|
|
99
|
+
}));
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* @internal
|
|
103
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
104
|
+
*/
|
|
105
|
+
export namespace EvalsRagasNoiseSensitivityEvalsResponseBody$ {
|
|
106
|
+
/** @deprecated use `EvalsRagasNoiseSensitivityEvalsResponseBody$inboundSchema` instead. */
|
|
107
|
+
export const inboundSchema =
|
|
108
|
+
EvalsRagasNoiseSensitivityEvalsResponseBody$inboundSchema;
|
|
109
|
+
/** @deprecated use `EvalsRagasNoiseSensitivityEvalsResponseBody$outboundSchema` instead. */
|
|
110
|
+
export const outboundSchema =
|
|
111
|
+
EvalsRagasNoiseSensitivityEvalsResponseBody$outboundSchema;
|
|
112
|
+
/** @deprecated use `EvalsRagasNoiseSensitivityEvalsResponseBody$Outbound` instead. */
|
|
113
|
+
export type Outbound = EvalsRagasNoiseSensitivityEvalsResponseBody$Outbound;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/** @internal */
|
|
117
|
+
export const EvalsRagasNoiseSensitivityResponseBody$inboundSchema: z.ZodType<
|
|
118
|
+
EvalsRagasNoiseSensitivityResponseBody,
|
|
119
|
+
z.ZodTypeDef,
|
|
120
|
+
unknown
|
|
121
|
+
> = z.object({
|
|
122
|
+
message: z.string(),
|
|
123
|
+
request$: z.instanceof(Request),
|
|
124
|
+
response$: z.instanceof(Response),
|
|
125
|
+
body$: z.string(),
|
|
126
|
+
})
|
|
127
|
+
.transform((v) => {
|
|
128
|
+
return new EvalsRagasNoiseSensitivityResponseBody(v, {
|
|
129
|
+
request: v.request$,
|
|
130
|
+
response: v.response$,
|
|
131
|
+
body: v.body$,
|
|
132
|
+
});
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
/** @internal */
|
|
136
|
+
export type EvalsRagasNoiseSensitivityResponseBody$Outbound = {
|
|
137
|
+
message: string;
|
|
138
|
+
};
|
|
139
|
+
|
|
140
|
+
/** @internal */
|
|
141
|
+
export const EvalsRagasNoiseSensitivityResponseBody$outboundSchema: z.ZodType<
|
|
142
|
+
EvalsRagasNoiseSensitivityResponseBody$Outbound,
|
|
143
|
+
z.ZodTypeDef,
|
|
144
|
+
EvalsRagasNoiseSensitivityResponseBody
|
|
145
|
+
> = z.instanceof(EvalsRagasNoiseSensitivityResponseBody)
|
|
146
|
+
.transform(v => v.data$)
|
|
147
|
+
.pipe(z.object({
|
|
148
|
+
message: z.string(),
|
|
149
|
+
}));
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* @internal
|
|
153
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
154
|
+
*/
|
|
155
|
+
export namespace EvalsRagasNoiseSensitivityResponseBody$ {
|
|
156
|
+
/** @deprecated use `EvalsRagasNoiseSensitivityResponseBody$inboundSchema` instead. */
|
|
157
|
+
export const inboundSchema =
|
|
158
|
+
EvalsRagasNoiseSensitivityResponseBody$inboundSchema;
|
|
159
|
+
/** @deprecated use `EvalsRagasNoiseSensitivityResponseBody$outboundSchema` instead. */
|
|
160
|
+
export const outboundSchema =
|
|
161
|
+
EvalsRagasNoiseSensitivityResponseBody$outboundSchema;
|
|
162
|
+
/** @deprecated use `EvalsRagasNoiseSensitivityResponseBody$Outbound` instead. */
|
|
163
|
+
export type Outbound = EvalsRagasNoiseSensitivityResponseBody$Outbound;
|
|
164
|
+
}
|
|
@@ -28,11 +28,14 @@ export * from "./evalslocalization.js";
|
|
|
28
28
|
export * from "./evalspii.js";
|
|
29
29
|
export * from "./evalsragascoherence.js";
|
|
30
30
|
export * from "./evalsragasconciseness.js";
|
|
31
|
+
export * from "./evalsragascontextentitiesrecall.js";
|
|
31
32
|
export * from "./evalsragascontextprecision.js";
|
|
33
|
+
export * from "./evalsragascontextrecall.js";
|
|
32
34
|
export * from "./evalsragascorrectness.js";
|
|
33
35
|
export * from "./evalsragasfaithfulness.js";
|
|
34
36
|
export * from "./evalsragasharmfulness.js";
|
|
35
37
|
export * from "./evalsragasmaliciousness.js";
|
|
38
|
+
export * from "./evalsragasnoisesensitivity.js";
|
|
36
39
|
export * from "./evalsragasresponserelevancy.js";
|
|
37
40
|
export * from "./evalsragassummarization.js";
|
|
38
41
|
export * from "./evalssentimentclassification.js";
|