- createScorersPost - Create
- updateScorersScorerIdPatch - Update
- deleteScorerScorersScorerIdDelete - Delete Scorer
- getScorerScorersScorerIdGet - Get Scorer
- createLlmScorerVersionScorersScorerIdVersionLlmPost - Create Llm Scorer Version
- validateCodeScorerScorersCodeValidatePost - Validate Code Scorer
- validateCodeScorerLogRecordScorersCodeValidateLogRecordPost - Validate Code Scorer Log Record
- getValidateCodeScorerTaskResultScorersCodeValidateTaskIdGet - Get Validate Code Scorer Task Result
- createCodeScorerVersionScorersScorerIdVersionCodePost - Create Code Scorer Version
- getScorerVersionCodeScorersScorerIdVersionCodeGet - Get Scorer Version Code
- createPresetScorerVersionScorersScorerIdVersionPresetPost - Create Preset Scorer Version
- createLunaScorerVersionScorersScorerIdVersionLunaPost - Create Luna Scorer Version
- listScorersWithFiltersScorersListPost - List Scorers With Filters
- listTagsScorersTagsGet - List Tags
- getScorerVersionOrLatestScorersScorerIdVersionGet - Get Scorer Version Or Latest
- listAllVersionsForScorerScorersScorerIdVersionsGet - List All Versions For Scorer
- listProjectsForScorerRouteScorersScorerIdProjectsGet - List Projects For Scorer Route
- listProjectsForScorerVersionRouteScorersVersionsScorerVersionIdProjectsGet - List Projects For Scorer Version Route
- restoreScorerVersionScorersScorerIdVersionsVersionNumberRestorePost - Restore Scorer Version
- autogenLlmScorerScorersLlmAutogenPost - Autogen Llm Scorer
- manualLlmValidateScorersLlmValidatePost - Manual Llm Validate
- validateLlmScorerLogRecordScorersLlmValidateLogRecordPost - Validate Llm Scorer Log Record
Create
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.rows.createScorersPost({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
name: "<value>",
scorerType: "preset",
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { promptsCreateScorersPost } from "galileo-generated/funcs/promptsCreateScorersPost.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await promptsCreateScorersPost(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
name: "<value>",
scorerType: "preset",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("promptsCreateScorersPost failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
models.CreateScorerRequest | ✔️ | The request object to use for the request. |
security |
operations.CreateScorersPostSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.ScorerResponse>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
Update
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.rows.updateScorersScorerIdPatch({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
scorerId: "<value>",
body: {},
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { promptsUpdateScorersScorerIdPatch } from "galileo-generated/funcs/promptsUpdateScorersScorerIdPatch.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await promptsUpdateScorersScorerIdPatch(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
scorerId: "<value>",
body: {},
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("promptsUpdateScorersScorerIdPatch failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.UpdateScorersScorerIdPatchRequest | ✔️ | The request object to use for the request. |
security |
operations.UpdateScorersScorerIdPatchSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.ScorerResponse>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
Delete Scorer
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.rows.deleteScorerScorersScorerIdDelete({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
scorerId: "<value>",
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { promptsDeleteScorerScorersScorerIdDelete } from "galileo-generated/funcs/promptsDeleteScorerScorersScorerIdDelete.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await promptsDeleteScorerScorersScorerIdDelete(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
scorerId: "<value>",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("promptsDeleteScorerScorersScorerIdDelete failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.DeleteScorerScorersScorerIdDeleteRequest | ✔️ | The request object to use for the request. |
security |
operations.DeleteScorerScorersScorerIdDeleteSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.DeleteScorerResponse>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
Get Scorer
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.rows.getScorerScorersScorerIdGet({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
scorerId: "<value>",
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { promptsGetScorerScorersScorerIdGet } from "galileo-generated/funcs/promptsGetScorerScorersScorerIdGet.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await promptsGetScorerScorersScorerIdGet(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
scorerId: "<value>",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("promptsGetScorerScorersScorerIdGet failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.GetScorerScorersScorerIdGetRequest | ✔️ | The request object to use for the request. |
security |
operations.GetScorerScorersScorerIdGetSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.ScorerResponse>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
Create Llm Scorer Version
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.rows.createLlmScorerVersionScorersScorerIdVersionLlmPost({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
scorerId: "<value>",
body: {},
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { promptsCreateLlmScorerVersionScorersScorerIdVersionLlmPost } from "galileo-generated/funcs/promptsCreateLlmScorerVersionScorersScorerIdVersionLlmPost.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await promptsCreateLlmScorerVersionScorersScorerIdVersionLlmPost(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
scorerId: "<value>",
body: {},
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("promptsCreateLlmScorerVersionScorersScorerIdVersionLlmPost failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.CreateLlmScorerVersionScorersScorerIdVersionLlmPostRequest | ✔️ | The request object to use for the request. |
security |
operations.CreateLlmScorerVersionScorersScorerIdVersionLlmPostSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.BaseScorerVersionResponse>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
Validate a code scorer with optional simple input/output test.
import { GalileoGenerated } from "galileo-generated";
import { openAsBlob } from "node:fs";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.rows.validateCodeScorerScorersCodeValidatePost({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
file: await openAsBlob("example.file"),
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { promptsValidateCodeScorerScorersCodeValidatePost } from "galileo-generated/funcs/promptsValidateCodeScorerScorersCodeValidatePost.js";
import { openAsBlob } from "node:fs";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await promptsValidateCodeScorerScorersCodeValidatePost(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
file: await openAsBlob("example.file"),
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("promptsValidateCodeScorerScorersCodeValidatePost failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
models.BodyValidateCodeScorerScorersCodeValidatePost | ✔️ | The request object to use for the request. |
security |
operations.ValidateCodeScorerScorersCodeValidatePostSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.ValidateCodeScorerResponse>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
Validate a code scorer using actual log records.
import { GalileoGenerated } from "galileo-generated";
import { openAsBlob } from "node:fs";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.rows.validateCodeScorerLogRecordScorersCodeValidateLogRecordPost({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
file: await openAsBlob("example.file"),
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { promptsValidateCodeScorerLogRecordScorersCodeValidateLogRecordPost } from "galileo-generated/funcs/promptsValidateCodeScorerLogRecordScorersCodeValidateLogRecordPost.js";
import { openAsBlob } from "node:fs";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await promptsValidateCodeScorerLogRecordScorersCodeValidateLogRecordPost(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
file: await openAsBlob("example.file"),
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("promptsValidateCodeScorerLogRecordScorersCodeValidateLogRecordPost failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
models.BodyValidateCodeScorerLogRecordScorersCodeValidateLogRecordPost | ✔️ | The request object to use for the request. |
security |
operations.ValidateCodeScorerLogRecordScorersCodeValidateLogRecordPostSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.ValidateScorerLogRecordResponse>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
Poll for a code-scorer validation task result (returns status/result).
The validation job creates an entry in registered_scorer_task_results (pending) and the runner
will PATCH the internal task-results endpoint when it finishes. This GET allows clients to poll
the current task result.
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.rows.getValidateCodeScorerTaskResultScorersCodeValidateTaskIdGet({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
taskId: "<value>",
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { promptsGetValidateCodeScorerTaskResultScorersCodeValidateTaskIdGet } from "galileo-generated/funcs/promptsGetValidateCodeScorerTaskResultScorersCodeValidateTaskIdGet.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await promptsGetValidateCodeScorerTaskResultScorersCodeValidateTaskIdGet(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
taskId: "<value>",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("promptsGetValidateCodeScorerTaskResultScorersCodeValidateTaskIdGet failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.GetValidateCodeScorerTaskResultScorersCodeValidateTaskIdGetRequest | ✔️ | The request object to use for the request. |
security |
operations.GetValidateCodeScorerTaskResultScorersCodeValidateTaskIdGetSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.RegisteredScorerTaskResultResponse>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
Create Code Scorer Version
import { GalileoGenerated } from "galileo-generated";
import { openAsBlob } from "node:fs";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.rows.createCodeScorerVersionScorersScorerIdVersionCodePost({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
scorerId: "<value>",
body: {
file: await openAsBlob("example.file"),
},
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { promptsCreateCodeScorerVersionScorersScorerIdVersionCodePost } from "galileo-generated/funcs/promptsCreateCodeScorerVersionScorersScorerIdVersionCodePost.js";
import { openAsBlob } from "node:fs";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await promptsCreateCodeScorerVersionScorersScorerIdVersionCodePost(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
scorerId: "<value>",
body: {
file: await openAsBlob("example.file"),
},
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("promptsCreateCodeScorerVersionScorersScorerIdVersionCodePost failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.CreateCodeScorerVersionScorersScorerIdVersionCodePostRequest | ✔️ | The request object to use for the request. |
security |
operations.CreateCodeScorerVersionScorersScorerIdVersionCodePostSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.BaseScorerVersionResponse>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
Get Scorer Version Code
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.rows.getScorerVersionCodeScorersScorerIdVersionCodeGet({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
scorerId: "<value>",
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { promptsGetScorerVersionCodeScorersScorerIdVersionCodeGet } from "galileo-generated/funcs/promptsGetScorerVersionCodeScorersScorerIdVersionCodeGet.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await promptsGetScorerVersionCodeScorersScorerIdVersionCodeGet(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
scorerId: "<value>",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("promptsGetScorerVersionCodeScorersScorerIdVersionCodeGet failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.GetScorerVersionCodeScorersScorerIdVersionCodeGetRequest | ✔️ | The request object to use for the request. |
security |
operations.GetScorerVersionCodeScorersScorerIdVersionCodeGetSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<any>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
Create a preset scorer version.
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.rows.createPresetScorerVersionScorersScorerIdVersionPresetPost({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
scorerId: "<value>",
body: {},
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { promptsCreatePresetScorerVersionScorersScorerIdVersionPresetPost } from "galileo-generated/funcs/promptsCreatePresetScorerVersionScorersScorerIdVersionPresetPost.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await promptsCreatePresetScorerVersionScorersScorerIdVersionPresetPost(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
scorerId: "<value>",
body: {},
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("promptsCreatePresetScorerVersionScorersScorerIdVersionPresetPost failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.CreatePresetScorerVersionScorersScorerIdVersionPresetPostRequest | ✔️ | The request object to use for the request. |
security |
operations.CreatePresetScorerVersionScorersScorerIdVersionPresetPostSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.BaseScorerVersionResponse>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
Create Luna Scorer Version
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.rows.createLunaScorerVersionScorersScorerIdVersionLunaPost({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
scorerId: "<value>",
body: {
loraTaskId: 603023,
prompt: "<value>",
},
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { promptsCreateLunaScorerVersionScorersScorerIdVersionLunaPost } from "galileo-generated/funcs/promptsCreateLunaScorerVersionScorersScorerIdVersionLunaPost.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await promptsCreateLunaScorerVersionScorersScorerIdVersionLunaPost(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
scorerId: "<value>",
body: {
loraTaskId: 603023,
prompt: "<value>",
},
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("promptsCreateLunaScorerVersionScorersScorerIdVersionLunaPost failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.CreateLunaScorerVersionScorersScorerIdVersionLunaPostRequest | ✔️ | The request object to use for the request. |
security |
operations.CreateLunaScorerVersionScorersScorerIdVersionLunaPostSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.BaseScorerVersionResponse>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
List Scorers With Filters
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.rows.listScorersWithFiltersScorersListPost({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
body: {
filters: [
{
name: "creator",
operator: "eq",
value: [
"<value 1>",
],
},
],
},
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { promptsListScorersWithFiltersScorersListPost } from "galileo-generated/funcs/promptsListScorersWithFiltersScorersListPost.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await promptsListScorersWithFiltersScorersListPost(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
body: {
filters: [
{
name: "creator",
operator: "eq",
value: [
"<value 1>",
],
},
],
},
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("promptsListScorersWithFiltersScorersListPost failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.ListScorersWithFiltersScorersListPostRequest | ✔️ | The request object to use for the request. |
security |
operations.ListScorersWithFiltersScorersListPostSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.ListScorersResponse>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
List Tags
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.rows.listTagsScorersTagsGet({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { promptsListTagsScorersTagsGet } from "galileo-generated/funcs/promptsListTagsScorersTagsGet.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await promptsListTagsScorersTagsGet(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("promptsListTagsScorersTagsGet failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
security |
operations.ListTagsScorersTagsGetSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<string[]>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
Get Scorer Version Or Latest
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.rows.getScorerVersionOrLatestScorersScorerIdVersionGet({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
scorerId: "<value>",
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { promptsGetScorerVersionOrLatestScorersScorerIdVersionGet } from "galileo-generated/funcs/promptsGetScorerVersionOrLatestScorersScorerIdVersionGet.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await promptsGetScorerVersionOrLatestScorersScorerIdVersionGet(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
scorerId: "<value>",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("promptsGetScorerVersionOrLatestScorersScorerIdVersionGet failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.GetScorerVersionOrLatestScorersScorerIdVersionGetRequest | ✔️ | The request object to use for the request. |
security |
operations.GetScorerVersionOrLatestScorersScorerIdVersionGetSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.BaseScorerVersionResponse>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
List All Versions For Scorer
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.rows.listAllVersionsForScorerScorersScorerIdVersionsGet({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
scorerId: "<value>",
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { promptsListAllVersionsForScorerScorersScorerIdVersionsGet } from "galileo-generated/funcs/promptsListAllVersionsForScorerScorersScorerIdVersionsGet.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await promptsListAllVersionsForScorerScorersScorerIdVersionsGet(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
scorerId: "<value>",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("promptsListAllVersionsForScorerScorersScorerIdVersionsGet failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.ListAllVersionsForScorerScorersScorerIdVersionsGetRequest | ✔️ | The request object to use for the request. |
security |
operations.ListAllVersionsForScorerScorersScorerIdVersionsGetSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.ListScorerVersionsResponse>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
List all projects associated with a specific scorer.
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.rows.listProjectsForScorerRouteScorersScorerIdProjectsGet({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
scorerId: "<value>",
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { promptsListProjectsForScorerRouteScorersScorerIdProjectsGet } from "galileo-generated/funcs/promptsListProjectsForScorerRouteScorersScorerIdProjectsGet.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await promptsListProjectsForScorerRouteScorersScorerIdProjectsGet(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
scorerId: "<value>",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("promptsListProjectsForScorerRouteScorersScorerIdProjectsGet failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.ListProjectsForScorerRouteScorersScorerIdProjectsGetRequest | ✔️ | The request object to use for the request. |
security |
operations.ListProjectsForScorerRouteScorersScorerIdProjectsGetSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.ApiSchemasProjectV2GetProjectsPaginatedResponse>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
List all projects associated with a specific scorer version.
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.rows.listProjectsForScorerVersionRouteScorersVersionsScorerVersionIdProjectsGet({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
scorerVersionId: "<value>",
scorerId: "<value>",
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import {
promptsListProjectsForScorerVersionRouteScorersVersionsScorerVersionIdProjectsGet,
} from "galileo-generated/funcs/promptsListProjectsForScorerVersionRouteScorersVersionsScorerVersionIdProjectsGet.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await promptsListProjectsForScorerVersionRouteScorersVersionsScorerVersionIdProjectsGet(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
scorerVersionId: "<value>",
scorerId: "<value>",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("promptsListProjectsForScorerVersionRouteScorersVersionsScorerVersionIdProjectsGet failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.ListProjectsForScorerVersionRouteScorersVersionsScorerVersionIdProjectsGetRequest | ✔️ | The request object to use for the request. |
security |
operations.ListProjectsForScorerVersionRouteScorersVersionsScorerVersionIdProjectsGetSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.ApiSchemasProjectV2GetProjectsPaginatedResponse>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
List all scorers.
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.rows.restoreScorerVersionScorersScorerIdVersionsVersionNumberRestorePost({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
scorerId: "<value>",
versionNumber: 388789,
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { promptsRestoreScorerVersionScorersScorerIdVersionsVersionNumberRestorePost } from "galileo-generated/funcs/promptsRestoreScorerVersionScorersScorerIdVersionsVersionNumberRestorePost.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await promptsRestoreScorerVersionScorersScorerIdVersionsVersionNumberRestorePost(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
scorerId: "<value>",
versionNumber: 388789,
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("promptsRestoreScorerVersionScorersScorerIdVersionsVersionNumberRestorePost failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
operations.RestoreScorerVersionScorersScorerIdVersionsVersionNumberRestorePostRequest | ✔️ | The request object to use for the request. |
security |
operations.RestoreScorerVersionScorersScorerIdVersionsVersionNumberRestorePostSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.BaseScorerVersionResponse>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
Autogenerate an LLM scorer configuration.
Returns a Celery task ID that can be used to poll for the autogeneration results.
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.rows.autogenLlmScorerScorersLlmAutogenPost({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
instructions: "<value>",
modelName: "<value>",
outputType: "discrete",
cotEnabled: false,
scoreableNodeTypes: [
"<value 1>",
"<value 2>",
],
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { promptsAutogenLlmScorerScorersLlmAutogenPost } from "galileo-generated/funcs/promptsAutogenLlmScorerScorersLlmAutogenPost.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await promptsAutogenLlmScorerScorersLlmAutogenPost(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
instructions: "<value>",
modelName: "<value>",
outputType: "discrete",
cotEnabled: false,
scoreableNodeTypes: [
"<value 1>",
"<value 2>",
],
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("promptsAutogenLlmScorerScorersLlmAutogenPost failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
models.CreateLLMScorerAutogenRequest | ✔️ | The request object to use for the request. |
security |
operations.AutogenLlmScorerScorersLlmAutogenPostSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.GenerationResponse>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
Manual Llm Validate
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.rows.manualLlmValidateScorersLlmValidatePost({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
"key": "<value>",
"key1": "<value>",
"key2": "<value>",
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { promptsManualLlmValidateScorersLlmValidatePost } from "galileo-generated/funcs/promptsManualLlmValidateScorersLlmValidatePost.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await promptsManualLlmValidateScorersLlmValidatePost(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
"key": "<value>",
"key1": "<value>",
"key2": "<value>",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("promptsManualLlmValidateScorersLlmValidatePost failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
{ [k: string]: any } | ✔️ | The request object to use for the request. |
security |
operations.ManualLlmValidateScorersLlmValidatePostSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.GeneratedScorerValidationResponse>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |
Validate Llm Scorer Log Record
import { GalileoGenerated } from "galileo-generated";
const galileoGenerated = new GalileoGenerated();
async function run() {
const result = await galileoGenerated.rows.validateLlmScorerLogRecordScorersLlmValidateLogRecordPost({
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
logStreamId: "00000000-0000-0000-0000-000000000000",
filters: [
{
columnId: "<id>",
operator: "eq",
value: "example input",
caseSensitive: true,
type: "text",
},
],
sort: {
columnId: "<id>",
ascending: false,
},
query: "<value>",
response: "<value>",
chainPollTemplate: {
template: "<value>",
},
scorerConfiguration: {},
userPrompt: "<value>",
});
console.log(result);
}
run();The standalone function version of this method:
import { GalileoGeneratedCore } from "galileo-generated/core.js";
import { promptsValidateLlmScorerLogRecordScorersLlmValidateLogRecordPost } from "galileo-generated/funcs/promptsValidateLlmScorerLogRecordScorersLlmValidateLogRecordPost.js";
// Use `GalileoGeneratedCore` for best tree-shaking performance.
// You can create one instance of it to use across an application.
const galileoGenerated = new GalileoGeneratedCore();
async function run() {
const res = await promptsValidateLlmScorerLogRecordScorersLlmValidateLogRecordPost(galileoGenerated, {
apiKeyHeader: process.env["GALILEOGENERATED_API_KEY_HEADER"] ?? "",
}, {
logStreamId: "00000000-0000-0000-0000-000000000000",
filters: [
{
columnId: "<id>",
operator: "eq",
value: "example input",
caseSensitive: true,
type: "text",
},
],
sort: {
columnId: "<id>",
ascending: false,
},
query: "<value>",
response: "<value>",
chainPollTemplate: {
template: "<value>",
},
scorerConfiguration: {},
userPrompt: "<value>",
});
if (res.ok) {
const { value: result } = res;
console.log(result);
} else {
console.log("promptsValidateLlmScorerLogRecordScorersLlmValidateLogRecordPost failed:", res.error);
}
}
run();| Parameter | Type | Required | Description |
|---|---|---|---|
request |
models.ValidateLLMScorerLogRecordRequest | ✔️ | The request object to use for the request. |
security |
operations.ValidateLlmScorerLogRecordScorersLlmValidateLogRecordPostSecurity | ✔️ | The security requirements to use for the request. |
options |
RequestOptions | ➖ | Used to set various options for making HTTP requests. |
options.fetchOptions |
RequestInit | ➖ | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All Request options, except method and body, are allowed. |
options.retries |
RetryConfig | ➖ | Enables retrying HTTP requests under certain failure conditions. |
Promise<models.ValidateLLMScorerLogRecordResponse>
| Error Type | Status Code | Content Type |
|---|---|---|
| errors.HTTPValidationError | 422 | application/json |
| errors.GalileoGeneratedDefaultError | 4XX, 5XX | */* |