Skip to content

Commit

Permalink
Fix wrong function name in the compilation error messages. (#1488)
Browse files Browse the repository at this point in the history
* Fix #1486: object alias type case in LLM.

* Fix JSON schema problem

* Fix wrong function name in the compilation error messages.

* Spell check only in PR
  • Loading branch information
samchon authored Feb 4, 2025
1 parent b7ddefa commit c5a0ed6
Show file tree
Hide file tree
Showing 7 changed files with 49 additions and 12 deletions.
1 change: 0 additions & 1 deletion .github/workflows/spell-check.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
name: spell-check
on:
push:
pull_request:

jobs:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20.x
- name: Root Install
run: npm install
- name: Root
run: npm install && npm run build
- name: Build
working-directory: website
run: npm install && npm run build
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "typia",
"version": "7.6.2",
"version": "7.6.3",
"description": "Superfast runtime validators with only one line",
"main": "lib/index.js",
"typings": "lib/index.d.ts",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export namespace LlmApplicationOfValidateTransformer {
});
if (result.success === false)
throw TransformerError.from({
code: "typia.llm.application",
code: "typia.llm.applicationOfValidate",
errors: result.errors,
});
return result.data;
Expand Down
2 changes: 1 addition & 1 deletion src/transformers/features/llm/LlmApplicationTransformer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export namespace LlmApplicationTransformer {
});
if (result.success === false)
throw TransformerError.from({
code: "typia.llm.applicationOfValidate",
code: "typia.llm.application",
errors: result.errors,
});
return result.data;
Expand Down
48 changes: 43 additions & 5 deletions test/src/debug/llm.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,48 @@
import typia from "typia";

interface Application {
type FinishEvaluateMessageType = {
/**
* Something interesting.
* @title type
* @description tool names
*/
something(): void;
}
type: "finish_evaluation";
/**
* @title reasoning
* @description the reason why you evaluate the agent's performance
*/
reasoning: string;
/**
* @title evaluations
* @description the evaluations of the agent's performance
*/
evaluations: {
/**
* @title criteria
* @description the criteria to be evaluated
*/
criteria: string;
/**
* @title evaluation
* @description the evaluation of the criteria
* @enum yes, no
*/
evaluation: "yes" | "no";
}[];
/**
* @title final_decision
* @description the final decision of the evaluation
*/
final_decision: string;
/**
* @title score
* @description the score of the evaluation
*/
score: number;
};

typia.llm.applicationOfValidate<Application, "chatgpt">();
typia.llm.applicationOfValidate<
{
call(input: FinishEvaluateMessageType): void;
},
"chatgpt"
>();
2 changes: 1 addition & 1 deletion website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"tgrid": "^1.0.3",
"tstl": "^3.0.0",
"typescript": "~5.7.3",
"typia": "latest"
"typia": "../"
},
"devDependencies": {
"@rspack/cli": "^1.0.0",
Expand Down

0 comments on commit c5a0ed6

Please sign in to comment.