Skip to content

Commit

Permalink
Merge pull request #1354 from samchon/feat/recursive
Browse files Browse the repository at this point in the history
Recursive type supporting from the LLM schema.
  • Loading branch information
samchon authored Nov 11, 2024
2 parents b12380e + 30c7cea commit 9cdb790
Show file tree
Hide file tree
Showing 127 changed files with 9,584 additions and 875 deletions.
2 changes: 1 addition & 1 deletion benchmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@
"suppress-warnings": "^1.0.2",
"tstl": "^3.0.0",
"uuid": "^9.0.1",
"typia": "../typia-6.11.4.tgz"
"typia": "../typia-6.12.0.tgz"
}
}
2 changes: 1 addition & 1 deletion errors/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@
"typescript": "^5.3.2"
},
"dependencies": {
"typia": "../typia-6.11.4.tgz"
"typia": "../typia-6.12.0.tgz"
}
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "typia",
"version": "6.11.4",
"version": "6.12.0",
"description": "Superfast runtime validators with only one line",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand Down Expand Up @@ -67,7 +67,7 @@
},
"homepage": "https://typia.io",
"dependencies": {
"@samchon/openapi": "^1.1.2",
"@samchon/openapi": "^1.2.2",
"commander": "^10.0.0",
"comment-json": "^4.2.3",
"inquirer": "^8.2.5",
Expand Down
3 changes: 2 additions & 1 deletion src/functional/Namespace/llm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@ import { LlmSchemaSeparator } from "@samchon/openapi/lib/utils/LlmSchemaSeparato
export const application = () => ({
finalize: (
app: ILlmApplication,
options?: ILlmApplication.IOptions,
options?: Omit<ILlmApplication.IOptions, "recursive">,
): void => {
app.options = {
separate: options?.separate ?? null,
recursive: 3,
};
if (app.options.separate === null) return;
for (const func of app.functions)
Expand Down
6 changes: 4 additions & 2 deletions src/llm.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ import * as Namespace from "./functional/Namespace";
* @reference https://platform.openai.com/docs/guides/function-calling
* @author Jeongho Nam - https://github.com/samchon
*/
function application(options?: ILlmApplication.IOptions): never;
function application(
options?: Omit<ILlmApplication.IOptions, "recursive">,
): never;

/**
* TypeScript functions to LLM function calling application.
Expand Down Expand Up @@ -79,7 +81,7 @@ function application(options?: ILlmApplication.IOptions): never;
* @author Jeongho Nam - https://github.com/samchon
*/
function application<App extends object>(
options?: ILlmApplication.IOptions,
options?: Omit<ILlmApplication.IOptions, "recursive">,
): ILlmApplication;

/**
Expand Down
22 changes: 0 additions & 22 deletions src/programmers/internal/llm_schema_array.ts

This file was deleted.

61 changes: 0 additions & 61 deletions src/programmers/internal/llm_schema_escaped.ts

This file was deleted.

17 changes: 0 additions & 17 deletions src/programmers/internal/llm_schema_native.ts

This file was deleted.

129 changes: 0 additions & 129 deletions src/programmers/internal/llm_schema_object.ts

This file was deleted.

Loading

0 comments on commit 9cdb790

Please sign in to comment.