Initial commit: KidsAI Explorer with complete functionality
- Complete KidsAI Explorer application - Multi-language support (English/German) - AI-powered educational guidance using OpenAI - Interactive chat interface for children - Proper placeholder translation fixes - Mobile-responsive design - Educational framework for critical thinking
This commit is contained in:
52
node_modules/openai/resources/evals/runs/runs.mjs
generated
vendored
Normal file
52
node_modules/openai/resources/evals/runs/runs.mjs
generated
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
||||
import { APIResource } from "../../../core/resource.mjs";
|
||||
import * as OutputItemsAPI from "./output-items.mjs";
|
||||
import { OutputItems, } from "./output-items.mjs";
|
||||
import { CursorPage } from "../../../core/pagination.mjs";
|
||||
import { path } from "../../../internal/utils/path.mjs";
|
||||
export class Runs extends APIResource {
|
||||
constructor() {
|
||||
super(...arguments);
|
||||
this.outputItems = new OutputItemsAPI.OutputItems(this._client);
|
||||
}
|
||||
/**
|
||||
* Kicks off a new run for a given evaluation, specifying the data source, and what
|
||||
* model configuration to use to test. The datasource will be validated against the
|
||||
* schema specified in the config of the evaluation.
|
||||
*/
|
||||
create(evalID, body, options) {
|
||||
return this._client.post(path `/evals/${evalID}/runs`, { body, ...options });
|
||||
}
|
||||
/**
|
||||
* Get an evaluation run by ID.
|
||||
*/
|
||||
retrieve(runID, params, options) {
|
||||
const { eval_id } = params;
|
||||
return this._client.get(path `/evals/${eval_id}/runs/${runID}`, options);
|
||||
}
|
||||
/**
|
||||
* Get a list of runs for an evaluation.
|
||||
*/
|
||||
list(evalID, query = {}, options) {
|
||||
return this._client.getAPIList(path `/evals/${evalID}/runs`, (CursorPage), {
|
||||
query,
|
||||
...options,
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Delete an eval run.
|
||||
*/
|
||||
delete(runID, params, options) {
|
||||
const { eval_id } = params;
|
||||
return this._client.delete(path `/evals/${eval_id}/runs/${runID}`, options);
|
||||
}
|
||||
/**
|
||||
* Cancel an ongoing evaluation run.
|
||||
*/
|
||||
cancel(runID, params, options) {
|
||||
const { eval_id } = params;
|
||||
return this._client.post(path `/evals/${eval_id}/runs/${runID}`, options);
|
||||
}
|
||||
}
|
||||
Runs.OutputItems = OutputItems;
|
||||
//# sourceMappingURL=runs.mjs.map
|
||||
Reference in New Issue
Block a user