Fix chat interface - restore continuous conversation flow

🎯 Major improvements to MissionControl component:
- Always keep input field visible and functional after AI responses
- Auto-clear input after submitting questions for better UX
- Add dynamic visual indicators (first question vs follow-up)
- Improve response layout with clear separation and hints
- Enable proper chat-like experience for continuous learning

🌟 Additional enhancements:
- Better language-specific messaging throughout interface
- Clearer visual hierarchy between input and response areas
- Intuitive flow that guides users to ask follow-up questions
- Maintains responsive design and accessibility

🔧 Technical changes:
- Enhanced MissionControl state management
- Improved component layout and styling
- Better TypeScript integration across components
- Updated tsconfig for stricter type checking
This commit is contained in:
rwiegand
2025-07-14 12:39:05 +02:00
parent b31492a354
commit f893530471
1798 changed files with 25329 additions and 92638 deletions

View File

@@ -1,12 +1,11 @@
import { APIResource } from "../../core/resource.js";
import { APIResource } from "../../resource.js";
import * as Core from "../../core.js";
import * as Shared from "../shared.js";
import * as GraderModelsAPI from "../graders/grader-models.js";
import * as ResponsesAPI from "../responses/responses.js";
import * as RunsAPI from "./runs/runs.js";
import { CreateEvalCompletionsRunDataSource, CreateEvalJSONLRunDataSource, EvalAPIError, RunCancelParams, RunCancelResponse, RunCreateParams, RunCreateResponse, RunDeleteParams, RunDeleteResponse, RunListParams, RunListResponse, RunListResponsesPage, RunRetrieveParams, RunRetrieveResponse, Runs } from "./runs/runs.js";
import { APIPromise } from "../../core/api-promise.js";
import { CursorPage, type CursorPageParams, PagePromise } from "../../core/pagination.js";
import { RequestOptions } from "../../internal/request-options.js";
import { CreateEvalCompletionsRunDataSource, CreateEvalJSONLRunDataSource, EvalAPIError, RunCancelResponse, RunCreateParams, RunCreateResponse, RunDeleteResponse, RunListParams, RunListResponse, RunListResponsesPage, RunRetrieveResponse, Runs } from "./runs/runs.js";
import { CursorPage, type CursorPageParams } from "../../pagination.js";
export declare class Evals extends APIResource {
runs: RunsAPI.Runs;
/**
@@ -17,25 +16,27 @@ export declare class Evals extends APIResource {
* We support several types of graders and datasources. For more information, see
* the [Evals guide](https://platform.openai.com/docs/guides/evals).
*/
create(body: EvalCreateParams, options?: RequestOptions): APIPromise<EvalCreateResponse>;
create(body: EvalCreateParams, options?: Core.RequestOptions): Core.APIPromise<EvalCreateResponse>;
/**
* Get an evaluation by ID.
*/
retrieve(evalID: string, options?: RequestOptions): APIPromise<EvalRetrieveResponse>;
retrieve(evalId: string, options?: Core.RequestOptions): Core.APIPromise<EvalRetrieveResponse>;
/**
* Update certain properties of an evaluation.
*/
update(evalID: string, body: EvalUpdateParams, options?: RequestOptions): APIPromise<EvalUpdateResponse>;
update(evalId: string, body: EvalUpdateParams, options?: Core.RequestOptions): Core.APIPromise<EvalUpdateResponse>;
/**
* List evaluations for a project.
*/
list(query?: EvalListParams | null | undefined, options?: RequestOptions): PagePromise<EvalListResponsesPage, EvalListResponse>;
list(query?: EvalListParams, options?: Core.RequestOptions): Core.PagePromise<EvalListResponsesPage, EvalListResponse>;
list(options?: Core.RequestOptions): Core.PagePromise<EvalListResponsesPage, EvalListResponse>;
/**
* Delete an evaluation.
*/
delete(evalID: string, options?: RequestOptions): APIPromise<EvalDeleteResponse>;
del(evalId: string, options?: Core.RequestOptions): Core.APIPromise<EvalDeleteResponse>;
}
export declare class EvalListResponsesPage extends CursorPage<EvalListResponse> {
}
export type EvalListResponsesPage = CursorPage<EvalListResponse>;
/**
* A CustomDataSourceConfig which specifies the schema of your `item` and
* optionally `sample` namespaces. The response schema defines the shape of the
@@ -49,9 +50,7 @@ export interface EvalCustomDataSourceConfig {
* The json schema for the run data source items. Learn how to build JSON schemas
* [here](https://json-schema.org/).
*/
schema: {
[key: string]: unknown;
};
schema: Record<string, unknown>;
/**
* The type of data source. Always `custom`.
*/
@@ -65,9 +64,7 @@ export interface EvalStoredCompletionsDataSourceConfig {
* The json schema for the run data source items. Learn how to build JSON schemas
* [here](https://json-schema.org/).
*/
schema: {
[key: string]: unknown;
};
schema: Record<string, unknown>;
/**
* The type of data source. Always `stored_completions`.
*/
@@ -138,9 +135,7 @@ export declare namespace EvalCreateResponse {
* The json schema for the run data source items. Learn how to build JSON schemas
* [here](https://json-schema.org/).
*/
schema: {
[key: string]: unknown;
};
schema: Record<string, unknown>;
/**
* The type of data source. Always `logs`.
*/
@@ -239,9 +234,7 @@ export declare namespace EvalRetrieveResponse {
* The json schema for the run data source items. Learn how to build JSON schemas
* [here](https://json-schema.org/).
*/
schema: {
[key: string]: unknown;
};
schema: Record<string, unknown>;
/**
* The type of data source. Always `logs`.
*/
@@ -340,9 +333,7 @@ export declare namespace EvalUpdateResponse {
* The json schema for the run data source items. Learn how to build JSON schemas
* [here](https://json-schema.org/).
*/
schema: {
[key: string]: unknown;
};
schema: Record<string, unknown>;
/**
* The type of data source. Always `logs`.
*/
@@ -441,9 +432,7 @@ export declare namespace EvalListResponse {
* The json schema for the run data source items. Learn how to build JSON schemas
* [here](https://json-schema.org/).
*/
schema: {
[key: string]: unknown;
};
schema: Record<string, unknown>;
/**
* The type of data source. Always `logs`.
*/
@@ -531,9 +520,7 @@ export declare namespace EvalCreateParams {
/**
* The json schema for each row in the data source.
*/
item_schema: {
[key: string]: unknown;
};
item_schema: Record<string, unknown>;
/**
* The type of data source. Always `custom`.
*/
@@ -556,9 +543,7 @@ export declare namespace EvalCreateParams {
/**
* Metadata filters for the logs data source.
*/
metadata?: {
[key: string]: unknown;
};
metadata?: Record<string, unknown>;
}
/**
* @deprecated Deprecated in favor of LogsDataSourceConfig.
@@ -571,9 +556,7 @@ export declare namespace EvalCreateParams {
/**
* Metadata filters for the stored completions data source.
*/
metadata?: {
[key: string]: unknown;
};
metadata?: Record<string, unknown>;
}
/**
* A LabelModelGrader object which uses a model to assign labels to each item in
@@ -711,7 +694,7 @@ export interface EvalListParams extends CursorPageParams {
order_by?: 'created_at' | 'updated_at';
}
export declare namespace Evals {
export { type EvalCustomDataSourceConfig as EvalCustomDataSourceConfig, type EvalStoredCompletionsDataSourceConfig as EvalStoredCompletionsDataSourceConfig, type EvalCreateResponse as EvalCreateResponse, type EvalRetrieveResponse as EvalRetrieveResponse, type EvalUpdateResponse as EvalUpdateResponse, type EvalListResponse as EvalListResponse, type EvalDeleteResponse as EvalDeleteResponse, type EvalListResponsesPage as EvalListResponsesPage, type EvalCreateParams as EvalCreateParams, type EvalUpdateParams as EvalUpdateParams, type EvalListParams as EvalListParams, };
export { Runs as Runs, type CreateEvalCompletionsRunDataSource as CreateEvalCompletionsRunDataSource, type CreateEvalJSONLRunDataSource as CreateEvalJSONLRunDataSource, type EvalAPIError as EvalAPIError, type RunCreateResponse as RunCreateResponse, type RunRetrieveResponse as RunRetrieveResponse, type RunListResponse as RunListResponse, type RunDeleteResponse as RunDeleteResponse, type RunCancelResponse as RunCancelResponse, type RunListResponsesPage as RunListResponsesPage, type RunCreateParams as RunCreateParams, type RunRetrieveParams as RunRetrieveParams, type RunListParams as RunListParams, type RunDeleteParams as RunDeleteParams, type RunCancelParams as RunCancelParams, };
export { type EvalCustomDataSourceConfig as EvalCustomDataSourceConfig, type EvalStoredCompletionsDataSourceConfig as EvalStoredCompletionsDataSourceConfig, type EvalCreateResponse as EvalCreateResponse, type EvalRetrieveResponse as EvalRetrieveResponse, type EvalUpdateResponse as EvalUpdateResponse, type EvalListResponse as EvalListResponse, type EvalDeleteResponse as EvalDeleteResponse, EvalListResponsesPage as EvalListResponsesPage, type EvalCreateParams as EvalCreateParams, type EvalUpdateParams as EvalUpdateParams, type EvalListParams as EvalListParams, };
export { Runs as Runs, type CreateEvalCompletionsRunDataSource as CreateEvalCompletionsRunDataSource, type CreateEvalJSONLRunDataSource as CreateEvalJSONLRunDataSource, type EvalAPIError as EvalAPIError, type RunCreateResponse as RunCreateResponse, type RunRetrieveResponse as RunRetrieveResponse, type RunListResponse as RunListResponse, type RunDeleteResponse as RunDeleteResponse, type RunCancelResponse as RunCancelResponse, RunListResponsesPage as RunListResponsesPage, type RunCreateParams as RunCreateParams, type RunListParams as RunListParams, };
}
//# sourceMappingURL=evals.d.ts.map