@orq-ai/node 4.11.3 → 4.11.7
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/README.md +40 -36
- package/funcs/modelsImportLitellm.d.ts +17 -0
- package/funcs/modelsImportLitellm.d.ts.map +1 -0
- package/funcs/modelsImportLitellm.js +118 -0
- package/funcs/modelsImportLitellm.js.map +1 -0
- package/funcs/modelsListLitellm.d.ts +18 -0
- package/funcs/modelsListLitellm.d.ts.map +1 -0
- package/funcs/modelsListLitellm.js +105 -0
- package/funcs/modelsListLitellm.js.map +1 -0
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/http.d.ts +1 -1
- package/lib/http.d.ts.map +1 -1
- package/lib/http.js +1 -1
- package/lib/http.js.map +1 -1
- package/lib/security.d.ts +5 -4
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js +6 -7
- package/lib/security.js.map +1 -1
- package/models/components/evaluatorresponsefunction.js +2 -2
- package/models/components/evaluatorresponsehttp.js +2 -2
- package/models/components/evaluatorresponsejsonschema.js +2 -2
- package/models/components/evaluatorresponsellm.js +2 -2
- package/models/components/evaluatorresponsepython.js +2 -2
- package/models/components/evaluatorresponseragas.js +2 -2
- package/models/components/evaluatorresponsetypescript.js +2 -2
- package/models/components/index.d.ts +4 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +4 -0
- package/models/components/index.js.map +1 -1
- package/models/components/litellmmodel.d.ts +18 -0
- package/models/components/litellmmodel.d.ts.map +1 -0
- package/models/components/litellmmodel.js +60 -0
- package/models/components/litellmmodel.js.map +1 -0
- package/models/components/litellmmodelinfo.d.ts +44 -0
- package/models/components/litellmmodelinfo.d.ts.map +1 -0
- package/models/components/litellmmodelinfo.js +83 -0
- package/models/components/litellmmodelinfo.js.map +1 -0
- package/models/components/litellmparams.d.ts +18 -0
- package/models/components/litellmparams.d.ts.map +1 -0
- package/models/components/litellmparams.js +59 -0
- package/models/components/litellmparams.js.map +1 -0
- package/models/components/modeldocument.d.ts +39 -0
- package/models/components/modeldocument.d.ts.map +1 -0
- package/models/components/modeldocument.js +99 -0
- package/models/components/modeldocument.js.map +1 -0
- package/models/components/reasoningpart.js +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.js +4 -4
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createprompt.d.ts +3 -0
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +3 -0
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/deploymentinvoke.d.ts +3 -0
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +3 -0
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deployments.d.ts +3 -0
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +3 -0
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +3 -0
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +3 -0
- package/models/operations/deploymentstream.js.map +1 -1
- package/models/operations/getallprompts.d.ts +3 -0
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +3 -0
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getoneprompt.d.ts +3 -0
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +3 -0
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +3 -0
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +3 -0
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/invokeeval.d.ts +1 -1
- package/models/operations/invokeeval.d.ts.map +1 -1
- package/models/operations/invokeeval.js +1 -1
- package/models/operations/invokeeval.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +4 -4
- package/models/operations/listdatasets.js +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listpromptversions.d.ts +3 -0
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +3 -0
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.js +3 -3
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrievedatapoint.js +4 -4
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.js +1 -1
- package/models/operations/streamrunagent.js +1 -1
- package/models/operations/updatedatapoint.js +4 -4
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateprompt.d.ts +3 -0
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +3 -0
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +3 -3
- package/packages/orq-rc/src/funcs/agentsResponsesCreate.ts +2 -0
- package/packages/orq-rc/src/funcs/agentsResponsesGet.ts +2 -0
- package/packages/orq-rc/src/funcs/modelsImportLitellm.ts +166 -0
- package/packages/orq-rc/src/funcs/modelsListLitellm.ts +144 -0
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/lib/http.ts +3 -1
- package/packages/orq-rc/src/lib/security.ts +10 -5
- package/packages/orq-rc/src/models/components/agentstartedstreamingevent.ts +6 -0
- package/packages/orq-rc/src/models/components/config.ts +44 -0
- package/packages/orq-rc/src/models/components/evaluatorresponsefunction.ts +2 -2
- package/packages/orq-rc/src/models/components/evaluatorresponsehttp.ts +2 -2
- package/packages/orq-rc/src/models/components/evaluatorresponsejsonschema.ts +2 -2
- package/packages/orq-rc/src/models/components/evaluatorresponsellm.ts +2 -2
- package/packages/orq-rc/src/models/components/evaluatorresponsepython.ts +2 -2
- package/packages/orq-rc/src/models/components/evaluatorresponseragas.ts +2 -2
- package/packages/orq-rc/src/models/components/evaluatorresponsetypescript.ts +2 -2
- package/packages/orq-rc/src/models/components/filepurpose.ts +1 -0
- package/packages/orq-rc/src/models/components/index.ts +5 -0
- package/packages/orq-rc/src/models/components/litellmmodel.ts +50 -0
- package/packages/orq-rc/src/models/components/litellmmodelinfo.ts +97 -0
- package/packages/orq-rc/src/models/components/litellmparams.ts +43 -0
- package/packages/orq-rc/src/models/components/modeldocument.ts +115 -0
- package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
- package/packages/orq-rc/src/models/operations/createagentrequest.ts +123 -40
- package/packages/orq-rc/src/models/operations/createdataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +4 -4
- package/packages/orq-rc/src/models/operations/createdatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/createeval.ts +179 -175
- package/packages/orq-rc/src/models/operations/createknowledge.ts +18 -10
- package/packages/orq-rc/src/models/operations/createprompt.ts +2 -0
- package/packages/orq-rc/src/models/operations/createrouterresponse.ts +108 -0
- package/packages/orq-rc/src/models/operations/createtool.ts +6 -6
- package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +2 -0
- package/packages/orq-rc/src/models/operations/deployments.ts +2 -0
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +2 -0
- package/packages/orq-rc/src/models/operations/getallmemories.ts +1 -1
- package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +1 -1
- package/packages/orq-rc/src/models/operations/getallmemorystores.ts +1 -1
- package/packages/orq-rc/src/models/operations/getallprompts.ts +3 -1
- package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
- package/packages/orq-rc/src/models/operations/getevals.ts +1 -1
- package/packages/orq-rc/src/models/operations/getoneprompt.ts +2 -0
- package/packages/orq-rc/src/models/operations/getpromptversion.ts +2 -0
- package/packages/orq-rc/src/models/operations/getv2evaluatorsidversions.ts +1 -1
- package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/getv2toolstoolidversions.ts +1 -1
- package/packages/orq-rc/src/models/operations/invokeeval.ts +2 -2
- package/packages/orq-rc/src/models/operations/listagents.ts +6 -0
- package/packages/orq-rc/src/models/operations/listchunks.ts +1 -1
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +5 -5
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +1 -1
- package/packages/orq-rc/src/models/operations/listpromptversions.ts +3 -1
- package/packages/orq-rc/src/models/operations/modelcreate.ts +2 -0
- package/packages/orq-rc/src/models/operations/modelcreateautorouter.ts +2 -0
- package/packages/orq-rc/src/models/operations/modelcreateawsbedrock.ts +2 -0
- package/packages/orq-rc/src/models/operations/modelcreateopenailike.ts +2 -0
- package/packages/orq-rc/src/models/operations/modelcreatevertex.ts +2 -0
- package/packages/orq-rc/src/models/operations/modelupdate.ts +2 -0
- package/packages/orq-rc/src/models/operations/modelupdateautorouter.ts +2 -0
- package/packages/orq-rc/src/models/operations/modelupdateawsbedrock.ts +2 -0
- package/packages/orq-rc/src/models/operations/modelupdateopenailike.ts +2 -0
- package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +6 -0
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/retrievetool.ts +6 -6
- package/packages/orq-rc/src/models/operations/runagent.ts +93 -33
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +99 -33
- package/packages/orq-rc/src/models/operations/updateagent.ts +125 -40
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +4 -4
- package/packages/orq-rc/src/models/operations/updatedataset.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateprompt.ts +2 -0
- package/packages/orq-rc/src/models/operations/updatetool.ts +7 -7
- package/packages/orq-rc/src/sdk/feedback.ts +0 -6
- package/packages/orq-rc/src/sdk/models.ts +35 -0
- package/packages/orq-rc/src/sdk/orqresponses.ts +4 -0
- package/sdk/feedback.d.ts +1 -4
- package/sdk/feedback.d.ts.map +1 -1
- package/sdk/feedback.js +1 -4
- package/sdk/feedback.js.map +1 -1
- package/sdk/models.d.ts +17 -0
- package/sdk/models.d.ts.map +1 -1
- package/sdk/models.js +20 -0
- package/sdk/models.js.map +1 -1
- package/src/funcs/modelsImportLitellm.ts +166 -0
- package/src/funcs/modelsListLitellm.ts +144 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/http.ts +3 -1
- package/src/lib/security.ts +10 -5
- package/src/models/components/evaluatorresponsefunction.ts +2 -2
- package/src/models/components/evaluatorresponsehttp.ts +2 -2
- package/src/models/components/evaluatorresponsejsonschema.ts +2 -2
- package/src/models/components/evaluatorresponsellm.ts +2 -2
- package/src/models/components/evaluatorresponsepython.ts +2 -2
- package/src/models/components/evaluatorresponseragas.ts +2 -2
- package/src/models/components/evaluatorresponsetypescript.ts +2 -2
- package/src/models/components/index.ts +4 -0
- package/src/models/components/litellmmodel.ts +50 -0
- package/src/models/components/litellmmodelinfo.ts +97 -0
- package/src/models/components/litellmparams.ts +43 -0
- package/src/models/components/modeldocument.ts +112 -0
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +4 -4
- package/src/models/operations/createdatasource.ts +1 -1
- package/src/models/operations/createprompt.ts +3 -0
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/deploymentinvoke.ts +3 -0
- package/src/models/operations/deployments.ts +3 -0
- package/src/models/operations/deploymentstream.ts +3 -0
- package/src/models/operations/getallprompts.ts +3 -0
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getoneprompt.ts +3 -0
- package/src/models/operations/getpromptversion.ts +3 -0
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/invokeeval.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +4 -4
- package/src/models/operations/listdatasets.ts +1 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listpromptversions.ts +3 -0
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +3 -3
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +4 -4
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +1 -1
- package/src/models/operations/streamrunagent.ts +1 -1
- package/src/models/operations/updatedatapoint.ts +4 -4
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateprompt.ts +3 -0
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/feedback.ts +1 -4
- package/src/sdk/models.ts +35 -0
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { OrqCore } from "../core.js";
|
|
7
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
8
|
+
import * as M from "../lib/matchers.js";
|
|
9
|
+
import { compactMap } from "../lib/primitives.js";
|
|
10
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
11
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
12
|
+
import { pathToFunc } from "../lib/url.js";
|
|
13
|
+
import {
|
|
14
|
+
ConnectionError,
|
|
15
|
+
InvalidRequestError,
|
|
16
|
+
RequestAbortedError,
|
|
17
|
+
RequestTimeoutError,
|
|
18
|
+
UnexpectedClientError,
|
|
19
|
+
} from "../models/errors/httpclienterrors.js";
|
|
20
|
+
import { OrqError } from "../models/errors/orqerror.js";
|
|
21
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
22
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
23
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
24
|
+
import { Result } from "../types/fp.js";
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* List models from configured LiteLLM instance
|
|
28
|
+
*
|
|
29
|
+
* @remarks
|
|
30
|
+
* Fetches the list of models from the LiteLLM instance configured for the workspace. Requires a stored LiteLLM integration.
|
|
31
|
+
*/
|
|
32
|
+
export function modelsListLitellm(
|
|
33
|
+
client: OrqCore,
|
|
34
|
+
options?: RequestOptions,
|
|
35
|
+
): APIPromise<
|
|
36
|
+
Result<
|
|
37
|
+
Array<{ [k: string]: any }>,
|
|
38
|
+
| OrqError
|
|
39
|
+
| ResponseValidationError
|
|
40
|
+
| ConnectionError
|
|
41
|
+
| RequestAbortedError
|
|
42
|
+
| RequestTimeoutError
|
|
43
|
+
| InvalidRequestError
|
|
44
|
+
| UnexpectedClientError
|
|
45
|
+
| SDKValidationError
|
|
46
|
+
>
|
|
47
|
+
> {
|
|
48
|
+
return new APIPromise($do(
|
|
49
|
+
client,
|
|
50
|
+
options,
|
|
51
|
+
));
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
async function $do(
|
|
55
|
+
client: OrqCore,
|
|
56
|
+
options?: RequestOptions,
|
|
57
|
+
): Promise<
|
|
58
|
+
[
|
|
59
|
+
Result<
|
|
60
|
+
Array<{ [k: string]: any }>,
|
|
61
|
+
| OrqError
|
|
62
|
+
| ResponseValidationError
|
|
63
|
+
| ConnectionError
|
|
64
|
+
| RequestAbortedError
|
|
65
|
+
| RequestTimeoutError
|
|
66
|
+
| InvalidRequestError
|
|
67
|
+
| UnexpectedClientError
|
|
68
|
+
| SDKValidationError
|
|
69
|
+
>,
|
|
70
|
+
APICall,
|
|
71
|
+
]
|
|
72
|
+
> {
|
|
73
|
+
const path = pathToFunc("/v2/models/litellm/models")();
|
|
74
|
+
|
|
75
|
+
const headers = new Headers(compactMap({
|
|
76
|
+
Accept: "application/json",
|
|
77
|
+
}));
|
|
78
|
+
|
|
79
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
80
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
81
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
82
|
+
|
|
83
|
+
const context = {
|
|
84
|
+
options: client._options,
|
|
85
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
86
|
+
operationID: "ModelListLitellm",
|
|
87
|
+
oAuth2Scopes: null,
|
|
88
|
+
|
|
89
|
+
resolvedSecurity: requestSecurity,
|
|
90
|
+
|
|
91
|
+
securitySource: client._options.apiKey,
|
|
92
|
+
retryConfig: options?.retries
|
|
93
|
+
|| client._options.retryConfig
|
|
94
|
+
|| { strategy: "none" },
|
|
95
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
const requestRes = client._createRequest(context, {
|
|
99
|
+
security: requestSecurity,
|
|
100
|
+
method: "GET",
|
|
101
|
+
baseURL: options?.serverURL,
|
|
102
|
+
path: path,
|
|
103
|
+
headers: headers,
|
|
104
|
+
userAgent: client._options.userAgent,
|
|
105
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 600000,
|
|
106
|
+
}, options);
|
|
107
|
+
if (!requestRes.ok) {
|
|
108
|
+
return [requestRes, { status: "invalid" }];
|
|
109
|
+
}
|
|
110
|
+
const req = requestRes.value;
|
|
111
|
+
|
|
112
|
+
const doResult = await client._do(req, {
|
|
113
|
+
context,
|
|
114
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
115
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
116
|
+
retryConfig: context.retryConfig,
|
|
117
|
+
retryCodes: context.retryCodes,
|
|
118
|
+
});
|
|
119
|
+
if (!doResult.ok) {
|
|
120
|
+
return [doResult, { status: "request-error", request: req }];
|
|
121
|
+
}
|
|
122
|
+
const response = doResult.value;
|
|
123
|
+
|
|
124
|
+
const [result] = await M.match<
|
|
125
|
+
Array<{ [k: string]: any }>,
|
|
126
|
+
| OrqError
|
|
127
|
+
| ResponseValidationError
|
|
128
|
+
| ConnectionError
|
|
129
|
+
| RequestAbortedError
|
|
130
|
+
| RequestTimeoutError
|
|
131
|
+
| InvalidRequestError
|
|
132
|
+
| UnexpectedClientError
|
|
133
|
+
| SDKValidationError
|
|
134
|
+
>(
|
|
135
|
+
M.json(200, z.array(z.record(z.any()))),
|
|
136
|
+
M.fail([404, "4XX"]),
|
|
137
|
+
M.fail([500, "5XX"]),
|
|
138
|
+
)(response, req);
|
|
139
|
+
if (!result.ok) {
|
|
140
|
+
return [result, { status: "complete", request: req, response }];
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
return [result, { status: "complete", request: req, response }];
|
|
144
|
+
}
|
|
@@ -58,7 +58,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
58
58
|
export const SDK_METADATA = {
|
|
59
59
|
language: "typescript",
|
|
60
60
|
openapiDocVersion: "2.0",
|
|
61
|
-
sdkVersion: "4.12.0-rc.
|
|
62
|
-
genVersion: "2.
|
|
63
|
-
userAgent: "speakeasy-sdk/typescript 4.12.0-rc.
|
|
61
|
+
sdkVersion: "4.12.0-rc.12",
|
|
62
|
+
genVersion: "2.916.4",
|
|
63
|
+
userAgent: "speakeasy-sdk/typescript 4.12.0-rc.12 2.916.4 2.0 @orq-ai/node",
|
|
64
64
|
} as const;
|
|
@@ -45,8 +45,10 @@ export class HTTPClient {
|
|
|
45
45
|
private requestHooks: BeforeRequestHook[] = [];
|
|
46
46
|
private requestErrorHooks: RequestErrorHook[] = [];
|
|
47
47
|
private responseHooks: ResponseHook[] = [];
|
|
48
|
+
private options: HTTPClientOptions;
|
|
48
49
|
|
|
49
|
-
constructor(
|
|
50
|
+
constructor(options: HTTPClientOptions = {}) {
|
|
51
|
+
this.options = options;
|
|
50
52
|
this.fetcher = options.fetcher || DEFAULT_FETCHER;
|
|
51
53
|
}
|
|
52
54
|
|
|
@@ -13,17 +13,22 @@ type OAuth2PasswordFlow = {
|
|
|
13
13
|
tokenURL: string;
|
|
14
14
|
};
|
|
15
15
|
|
|
16
|
-
export
|
|
17
|
-
Incomplete
|
|
18
|
-
UnrecognisedSecurityType
|
|
19
|
-
}
|
|
16
|
+
export const SecurityErrorCode = {
|
|
17
|
+
Incomplete: "incomplete",
|
|
18
|
+
UnrecognisedSecurityType: "unrecognized_security_type",
|
|
19
|
+
} as const;
|
|
20
|
+
export type SecurityErrorCode =
|
|
21
|
+
(typeof SecurityErrorCode)[keyof typeof SecurityErrorCode];
|
|
20
22
|
|
|
21
23
|
export class SecurityError extends Error {
|
|
24
|
+
public code: SecurityErrorCode;
|
|
25
|
+
|
|
22
26
|
constructor(
|
|
23
|
-
|
|
27
|
+
code: SecurityErrorCode,
|
|
24
28
|
message: string,
|
|
25
29
|
) {
|
|
26
30
|
super(message);
|
|
31
|
+
this.code = code;
|
|
27
32
|
this.name = "SecurityError";
|
|
28
33
|
}
|
|
29
34
|
|
|
@@ -188,6 +188,10 @@ export type Settings = {
|
|
|
188
188
|
* If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
|
|
189
189
|
*/
|
|
190
190
|
toolApprovalRequired: ToolApprovalRequired;
|
|
191
|
+
/**
|
|
192
|
+
* When enabled, this agent is exposed as a selectable target in AI Chat for users to consume.
|
|
193
|
+
*/
|
|
194
|
+
chatExposed?: boolean | undefined;
|
|
191
195
|
tools?: Array<Tools> | undefined;
|
|
192
196
|
/**
|
|
193
197
|
* Configuration for an evaluator applied to the agent
|
|
@@ -432,6 +436,7 @@ export const Settings$inboundSchema: z.ZodType<
|
|
|
432
436
|
tool_approval_required: ToolApprovalRequired$inboundSchema.default(
|
|
433
437
|
"respect_tool",
|
|
434
438
|
),
|
|
439
|
+
chat_exposed: z.boolean().optional(),
|
|
435
440
|
tools: z.array(z.lazy(() => Tools$inboundSchema)).optional(),
|
|
436
441
|
evaluators: z.array(z.lazy(() => Evaluators$inboundSchema)).optional(),
|
|
437
442
|
guardrails: z.array(z.lazy(() => Guardrails$inboundSchema)).optional(),
|
|
@@ -441,6 +446,7 @@ export const Settings$inboundSchema: z.ZodType<
|
|
|
441
446
|
"max_execution_time": "maxExecutionTime",
|
|
442
447
|
"max_cost": "maxCost",
|
|
443
448
|
"tool_approval_required": "toolApprovalRequired",
|
|
449
|
+
"chat_exposed": "chatExposed",
|
|
444
450
|
});
|
|
445
451
|
});
|
|
446
452
|
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
|
|
11
|
+
export type Config = {
|
|
12
|
+
allowFork: boolean;
|
|
13
|
+
allowVersionPin: boolean;
|
|
14
|
+
autoGrantNewProjects: boolean;
|
|
15
|
+
mode: string;
|
|
16
|
+
projectIds?: Array<string> | null | undefined;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const Config$inboundSchema: z.ZodType<Config, z.ZodTypeDef, unknown> = z
|
|
21
|
+
.object({
|
|
22
|
+
allow_fork: z.boolean(),
|
|
23
|
+
allow_version_pin: z.boolean(),
|
|
24
|
+
auto_grant_new_projects: z.boolean(),
|
|
25
|
+
mode: z.string(),
|
|
26
|
+
project_ids: z.nullable(z.array(z.string())).optional(),
|
|
27
|
+
}).transform((v) => {
|
|
28
|
+
return remap$(v, {
|
|
29
|
+
"allow_fork": "allowFork",
|
|
30
|
+
"allow_version_pin": "allowVersionPin",
|
|
31
|
+
"auto_grant_new_projects": "autoGrantNewProjects",
|
|
32
|
+
"project_ids": "projectIds",
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
export function configFromJSON(
|
|
37
|
+
jsonString: string,
|
|
38
|
+
): SafeParseResult<Config, SDKValidationError> {
|
|
39
|
+
return safeParse(
|
|
40
|
+
jsonString,
|
|
41
|
+
(x) => Config$inboundSchema.parse(JSON.parse(x)),
|
|
42
|
+
`Failed to parse 'Config' from JSON`,
|
|
43
|
+
);
|
|
44
|
+
}
|
|
@@ -856,8 +856,8 @@ export const EvaluatorResponseFunction$inboundSchema: z.ZodType<
|
|
|
856
856
|
> = z.object({
|
|
857
857
|
_id: z.string(),
|
|
858
858
|
description: z.string(),
|
|
859
|
-
created: z.string().default("2026-07-
|
|
860
|
-
updated: z.string().default("2026-07-
|
|
859
|
+
created: z.string().default("2026-07-10T05:18:09.327Z"),
|
|
860
|
+
updated: z.string().default("2026-07-10T05:18:09.327Z"),
|
|
861
861
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
862
862
|
guardrail_config: z.any().optional(),
|
|
863
863
|
type: z.literal("function_eval"),
|
|
@@ -42,8 +42,8 @@ export const EvaluatorResponseHttp$inboundSchema: z.ZodType<
|
|
|
42
42
|
> = z.object({
|
|
43
43
|
_id: z.string(),
|
|
44
44
|
description: z.string(),
|
|
45
|
-
created: z.string().default("2026-07-
|
|
46
|
-
updated: z.string().default("2026-07-
|
|
45
|
+
created: z.string().default("2026-07-10T05:18:09.327Z"),
|
|
46
|
+
updated: z.string().default("2026-07-10T05:18:09.327Z"),
|
|
47
47
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
48
48
|
guardrail_config: z.any().optional(),
|
|
49
49
|
type: z.literal("http_eval"),
|
|
@@ -28,8 +28,8 @@ export const EvaluatorResponseJsonSchema$inboundSchema: z.ZodType<
|
|
|
28
28
|
> = z.object({
|
|
29
29
|
_id: z.string(),
|
|
30
30
|
description: z.string(),
|
|
31
|
-
created: z.string().default("2026-07-
|
|
32
|
-
updated: z.string().default("2026-07-
|
|
31
|
+
created: z.string().default("2026-07-10T05:18:09.327Z"),
|
|
32
|
+
updated: z.string().default("2026-07-10T05:18:09.327Z"),
|
|
33
33
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
34
34
|
guardrail_config: z.any().optional(),
|
|
35
35
|
type: z.literal("json_schema"),
|
|
@@ -267,8 +267,8 @@ export const EvaluatorResponseLlm$inboundSchema: z.ZodType<
|
|
|
267
267
|
> = z.object({
|
|
268
268
|
_id: z.string(),
|
|
269
269
|
description: z.string(),
|
|
270
|
-
created: z.string().default("2026-07-
|
|
271
|
-
updated: z.string().default("2026-07-
|
|
270
|
+
created: z.string().default("2026-07-10T05:18:09.327Z"),
|
|
271
|
+
updated: z.string().default("2026-07-10T05:18:09.327Z"),
|
|
272
272
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
273
273
|
guardrail_config: z.any().optional(),
|
|
274
274
|
type: z.literal("llm_eval"),
|
|
@@ -28,8 +28,8 @@ export const EvaluatorResponsePython$inboundSchema: z.ZodType<
|
|
|
28
28
|
> = z.object({
|
|
29
29
|
_id: z.string(),
|
|
30
30
|
description: z.string(),
|
|
31
|
-
created: z.string().default("2026-07-
|
|
32
|
-
updated: z.string().default("2026-07-
|
|
31
|
+
created: z.string().default("2026-07-10T05:18:09.327Z"),
|
|
32
|
+
updated: z.string().default("2026-07-10T05:18:09.327Z"),
|
|
33
33
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
34
34
|
guardrail_config: z.any().optional(),
|
|
35
35
|
code: z.string(),
|
|
@@ -50,8 +50,8 @@ export const EvaluatorResponseRagas$inboundSchema: z.ZodType<
|
|
|
50
50
|
> = z.object({
|
|
51
51
|
_id: z.string(),
|
|
52
52
|
description: z.string(),
|
|
53
|
-
created: z.string().default("2026-07-
|
|
54
|
-
updated: z.string().default("2026-07-
|
|
53
|
+
created: z.string().default("2026-07-10T05:18:09.327Z"),
|
|
54
|
+
updated: z.string().default("2026-07-10T05:18:09.327Z"),
|
|
55
55
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
56
56
|
guardrail_config: z.any().optional(),
|
|
57
57
|
type: z.literal("ragas"),
|
|
@@ -28,8 +28,8 @@ export const EvaluatorResponseTypescript$inboundSchema: z.ZodType<
|
|
|
28
28
|
> = z.object({
|
|
29
29
|
_id: z.string(),
|
|
30
30
|
description: z.string(),
|
|
31
|
-
created: z.string().default("2026-07-
|
|
32
|
-
updated: z.string().default("2026-07-
|
|
31
|
+
created: z.string().default("2026-07-10T05:18:09.327Z"),
|
|
32
|
+
updated: z.string().default("2026-07-10T05:18:09.327Z"),
|
|
33
33
|
updated_by_id: z.nullable(z.string()).optional(),
|
|
34
34
|
guardrail_config: z.any().optional(),
|
|
35
35
|
code: z.string(),
|
|
@@ -10,6 +10,7 @@ export const FilePurpose = {
|
|
|
10
10
|
FilePurposeRetrieval: "FILE_PURPOSE_RETRIEVAL",
|
|
11
11
|
FilePurposeKnowledgeDatasource: "FILE_PURPOSE_KNOWLEDGE_DATASOURCE",
|
|
12
12
|
FilePurposeBatch: "FILE_PURPOSE_BATCH",
|
|
13
|
+
FilePurposeCodeInterpreter: "FILE_PURPOSE_CODE_INTERPRETER",
|
|
13
14
|
} as const;
|
|
14
15
|
export type FilePurpose = ClosedEnum<typeof FilePurpose>;
|
|
15
16
|
|
|
@@ -38,6 +38,7 @@ export * from "./budgetsortfield.js";
|
|
|
38
38
|
export * from "./budgetusage.js";
|
|
39
39
|
export * from "./checkbudgetsrequest.js";
|
|
40
40
|
export * from "./checkbudgetsresponse.js";
|
|
41
|
+
export * from "./config.js";
|
|
41
42
|
export * from "./conversationparam.js";
|
|
42
43
|
export * from "./createagentresponse.js";
|
|
43
44
|
export * from "./createapikeyrequest.js";
|
|
@@ -138,12 +139,16 @@ export * from "./listtracefacetsresponse.js";
|
|
|
138
139
|
export * from "./listtracefacetvaluesresponse.js";
|
|
139
140
|
export * from "./listtracefieldsresponse.js";
|
|
140
141
|
export * from "./listtracespansresponse.js";
|
|
142
|
+
export * from "./litellmmodel.js";
|
|
143
|
+
export * from "./litellmmodelinfo.js";
|
|
144
|
+
export * from "./litellmparams.js";
|
|
141
145
|
export * from "./managementkey.js";
|
|
142
146
|
export * from "./managementkeystatus.js";
|
|
143
147
|
export * from "./managementpermissionmode.js";
|
|
144
148
|
export * from "./memoryparam.js";
|
|
145
149
|
export * from "./modelbudgetscope.js";
|
|
146
150
|
export * from "./modelconfigurationresponse.js";
|
|
151
|
+
export * from "./modeldocument.js";
|
|
147
152
|
export * from "./modelmetadata.js";
|
|
148
153
|
export * from "./modelparameterdocument.js";
|
|
149
154
|
export * from "./modelref.js";
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import {
|
|
8
|
+
LiteLLMModelInfo,
|
|
9
|
+
LiteLLMModelInfo$Outbound,
|
|
10
|
+
LiteLLMModelInfo$outboundSchema,
|
|
11
|
+
} from "./litellmmodelinfo.js";
|
|
12
|
+
import {
|
|
13
|
+
LiteLLMParams,
|
|
14
|
+
LiteLLMParams$Outbound,
|
|
15
|
+
LiteLLMParams$outboundSchema,
|
|
16
|
+
} from "./litellmparams.js";
|
|
17
|
+
|
|
18
|
+
export type LiteLLMModel = {
|
|
19
|
+
litellmParams: LiteLLMParams;
|
|
20
|
+
modelInfo: LiteLLMModelInfo;
|
|
21
|
+
modelName: string;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** @internal */
|
|
25
|
+
export type LiteLLMModel$Outbound = {
|
|
26
|
+
litellm_params: LiteLLMParams$Outbound;
|
|
27
|
+
model_info: LiteLLMModelInfo$Outbound;
|
|
28
|
+
model_name: string;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
/** @internal */
|
|
32
|
+
export const LiteLLMModel$outboundSchema: z.ZodType<
|
|
33
|
+
LiteLLMModel$Outbound,
|
|
34
|
+
z.ZodTypeDef,
|
|
35
|
+
LiteLLMModel
|
|
36
|
+
> = z.object({
|
|
37
|
+
litellmParams: LiteLLMParams$outboundSchema,
|
|
38
|
+
modelInfo: LiteLLMModelInfo$outboundSchema,
|
|
39
|
+
modelName: z.string(),
|
|
40
|
+
}).transform((v) => {
|
|
41
|
+
return remap$(v, {
|
|
42
|
+
litellmParams: "litellm_params",
|
|
43
|
+
modelInfo: "model_info",
|
|
44
|
+
modelName: "model_name",
|
|
45
|
+
});
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
export function liteLLMModelToJSON(liteLLMModel: LiteLLMModel): string {
|
|
49
|
+
return JSON.stringify(LiteLLMModel$outboundSchema.parse(liteLLMModel));
|
|
50
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type LiteLLMModelInfo = {
|
|
9
|
+
dbModel: boolean | null;
|
|
10
|
+
id: string | null;
|
|
11
|
+
inputCostPerToken?: number | undefined;
|
|
12
|
+
key: string | null;
|
|
13
|
+
litellmProvider: string | null;
|
|
14
|
+
maxInputTokens?: number | undefined;
|
|
15
|
+
maxOutputTokens?: number | undefined;
|
|
16
|
+
mode: string | null;
|
|
17
|
+
outputCostPerToken?: number | undefined;
|
|
18
|
+
supportedOpenaiParams?: Array<string> | null | undefined;
|
|
19
|
+
supportsFunctionCalling?: boolean | undefined;
|
|
20
|
+
supportsNativeStreaming?: boolean | undefined;
|
|
21
|
+
supportsReasoning?: boolean | undefined;
|
|
22
|
+
supportsResponseSchema?: boolean | undefined;
|
|
23
|
+
supportsSystemMessages?: boolean | undefined;
|
|
24
|
+
supportsToolChoice?: boolean | undefined;
|
|
25
|
+
supportsVision?: boolean | undefined;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/** @internal */
|
|
29
|
+
export type LiteLLMModelInfo$Outbound = {
|
|
30
|
+
db_model: boolean | null;
|
|
31
|
+
id: string | null;
|
|
32
|
+
input_cost_per_token?: number | undefined;
|
|
33
|
+
key: string | null;
|
|
34
|
+
litellm_provider: string | null;
|
|
35
|
+
max_input_tokens?: number | undefined;
|
|
36
|
+
max_output_tokens?: number | undefined;
|
|
37
|
+
mode: string | null;
|
|
38
|
+
output_cost_per_token?: number | undefined;
|
|
39
|
+
supported_openai_params?: Array<string> | null | undefined;
|
|
40
|
+
supports_function_calling?: boolean | undefined;
|
|
41
|
+
supports_native_streaming?: boolean | undefined;
|
|
42
|
+
supports_reasoning?: boolean | undefined;
|
|
43
|
+
supports_response_schema?: boolean | undefined;
|
|
44
|
+
supports_system_messages?: boolean | undefined;
|
|
45
|
+
supports_tool_choice?: boolean | undefined;
|
|
46
|
+
supports_vision?: boolean | undefined;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const LiteLLMModelInfo$outboundSchema: z.ZodType<
|
|
51
|
+
LiteLLMModelInfo$Outbound,
|
|
52
|
+
z.ZodTypeDef,
|
|
53
|
+
LiteLLMModelInfo
|
|
54
|
+
> = z.object({
|
|
55
|
+
dbModel: z.nullable(z.boolean()),
|
|
56
|
+
id: z.nullable(z.string()),
|
|
57
|
+
inputCostPerToken: z.number().optional(),
|
|
58
|
+
key: z.nullable(z.string()),
|
|
59
|
+
litellmProvider: z.nullable(z.string()),
|
|
60
|
+
maxInputTokens: z.number().int().optional(),
|
|
61
|
+
maxOutputTokens: z.number().int().optional(),
|
|
62
|
+
mode: z.nullable(z.string()),
|
|
63
|
+
outputCostPerToken: z.number().optional(),
|
|
64
|
+
supportedOpenaiParams: z.nullable(z.array(z.string())).optional(),
|
|
65
|
+
supportsFunctionCalling: z.boolean().optional(),
|
|
66
|
+
supportsNativeStreaming: z.boolean().optional(),
|
|
67
|
+
supportsReasoning: z.boolean().optional(),
|
|
68
|
+
supportsResponseSchema: z.boolean().optional(),
|
|
69
|
+
supportsSystemMessages: z.boolean().optional(),
|
|
70
|
+
supportsToolChoice: z.boolean().optional(),
|
|
71
|
+
supportsVision: z.boolean().optional(),
|
|
72
|
+
}).transform((v) => {
|
|
73
|
+
return remap$(v, {
|
|
74
|
+
dbModel: "db_model",
|
|
75
|
+
inputCostPerToken: "input_cost_per_token",
|
|
76
|
+
litellmProvider: "litellm_provider",
|
|
77
|
+
maxInputTokens: "max_input_tokens",
|
|
78
|
+
maxOutputTokens: "max_output_tokens",
|
|
79
|
+
outputCostPerToken: "output_cost_per_token",
|
|
80
|
+
supportedOpenaiParams: "supported_openai_params",
|
|
81
|
+
supportsFunctionCalling: "supports_function_calling",
|
|
82
|
+
supportsNativeStreaming: "supports_native_streaming",
|
|
83
|
+
supportsReasoning: "supports_reasoning",
|
|
84
|
+
supportsResponseSchema: "supports_response_schema",
|
|
85
|
+
supportsSystemMessages: "supports_system_messages",
|
|
86
|
+
supportsToolChoice: "supports_tool_choice",
|
|
87
|
+
supportsVision: "supports_vision",
|
|
88
|
+
});
|
|
89
|
+
});
|
|
90
|
+
|
|
91
|
+
export function liteLLMModelInfoToJSON(
|
|
92
|
+
liteLLMModelInfo: LiteLLMModelInfo,
|
|
93
|
+
): string {
|
|
94
|
+
return JSON.stringify(
|
|
95
|
+
LiteLLMModelInfo$outboundSchema.parse(liteLLMModelInfo),
|
|
96
|
+
);
|
|
97
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
|
|
8
|
+
export type LiteLLMParams = {
|
|
9
|
+
mergeReasoningContentInChoices: boolean;
|
|
10
|
+
model: string;
|
|
11
|
+
useInPassThrough: boolean;
|
|
12
|
+
useLitellmProxy: boolean;
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
/** @internal */
|
|
16
|
+
export type LiteLLMParams$Outbound = {
|
|
17
|
+
merge_reasoning_content_in_choices: boolean;
|
|
18
|
+
model: string;
|
|
19
|
+
use_in_pass_through: boolean;
|
|
20
|
+
use_litellm_proxy: boolean;
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const LiteLLMParams$outboundSchema: z.ZodType<
|
|
25
|
+
LiteLLMParams$Outbound,
|
|
26
|
+
z.ZodTypeDef,
|
|
27
|
+
LiteLLMParams
|
|
28
|
+
> = z.object({
|
|
29
|
+
mergeReasoningContentInChoices: z.boolean(),
|
|
30
|
+
model: z.string(),
|
|
31
|
+
useInPassThrough: z.boolean(),
|
|
32
|
+
useLitellmProxy: z.boolean(),
|
|
33
|
+
}).transform((v) => {
|
|
34
|
+
return remap$(v, {
|
|
35
|
+
mergeReasoningContentInChoices: "merge_reasoning_content_in_choices",
|
|
36
|
+
useInPassThrough: "use_in_pass_through",
|
|
37
|
+
useLitellmProxy: "use_litellm_proxy",
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
export function liteLLMParamsToJSON(liteLLMParams: LiteLLMParams): string {
|
|
42
|
+
return JSON.stringify(LiteLLMParams$outboundSchema.parse(liteLLMParams));
|
|
43
|
+
}
|