diff --git a/package.json b/package.json index d59e933..f626c67 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@wrtnio/schema", - "version": "3.1.0", + "version": "3.2.0", "description": "JSON and LLM function calling schemas extended for Wrtn Studio Pro", "main": "lib/index.js", "module": "./lib/index.mjs", @@ -31,13 +31,13 @@ }, "homepage": "https://github.com/wrtnio/schema#readme", "dependencies": { - "@samchon/openapi": "^2.1.2" + "@samchon/openapi": "^2.2.1" }, "devDependencies": { - "@nestia/core": "^4.2.0", + "@nestia/core": "^4.4.2", "@nestia/e2e": "^0.7.0", - "@nestia/fetcher": "^4.2.0", - "@nestia/sdk": "^4.2.0", + "@nestia/fetcher": "^4.4.2", + "@nestia/sdk": "^4.4.2", "@nestjs/common": "^10.4.12", "@nestjs/core": "^10.4.12", "@nestjs/platform-express": "^10.4.12", @@ -52,9 +52,9 @@ "rollup": "^4.22.0", "source-map-support": "^0.5.21", "ts-patch": "^3.2.1", - "typescript": "5.5.4", + "typescript": "~5.7.2", "typescript-transform-paths": "^3.5.2", - "typia": "^7.3.0" + "typia": "^7.4.1" }, "files": [ "lib", diff --git a/src/ISwaggerOperation.ts b/src/ISwaggerOperation.ts index 43ecefd..21bc0ed 100644 --- a/src/ISwaggerOperation.ts +++ b/src/ISwaggerOperation.ts @@ -31,6 +31,14 @@ declare module "@samchon/openapi" { * if the property is `true`, the API is only available in the development environment. */ "x-wrtn-experimental"?: boolean; + + /** + * List of keywords selecting the operation for benchmarks. + * + * `x-wrtn-function-select-benchmarks` is a property which means a list of keywords + * that may cause the LLM function calling selection to be benchmarked. + */ + "x-wrtn-function-select-benchmarks"?: string[]; } } } diff --git a/test/features/test_http_llm_separate_parameters.ts b/test/features/test_http_llm_separate_parameters.ts index a6b4b51..6921a5f 100644 --- a/test/features/test_http_llm_separate_parameters.ts +++ b/test/features/test_http_llm_separate_parameters.ts @@ -10,7 +10,7 @@ export const test_http_llm_separate_parameters = async (): Promise => { ).then((r) => r.json()), ); for (const path of Object.keys(document.paths ?? {})) - if (path !== "/connector/notion/database-item/{databaseId}") + if (path !== "/connector/notion/page/bookmark") delete document.paths?.[path]; const app = HttpOpenAi.application({ @@ -22,10 +22,8 @@ export const test_http_llm_separate_parameters = async (): Promise => { }, }); const func = app.functions.find( - (f) => - f.method === "post" && - f.path === "/connector/notion/database-item/{databaseId}", + (f) => f.method === "post" && f.path === "/connector/notion/page/bookmark", ); if (func === undefined) throw new Error("Function not found"); - TestValidator.equals("human")(func.separated?.human.at(0)?.index)(1); + TestValidator.equals("human")(func.separated?.human.at(0)?.index)(0); };