Skip to content

Commit

Permalink
Add gemini schema failure cases
Browse files Browse the repository at this point in the history
  • Loading branch information
samchon committed Nov 11, 2024
1 parent 9646f01 commit e85b861
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions errors/src/llm/llm.schema.gemini.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import typia, { tags } from "typia";

typia.llm.schema<number | string, "gemini">();
typia.llm.schema<
| {
type: "animal";
legs: number;
}
| {
type: "plant";
leaves: number;
}
>();
typia.llm.schema<Array<string | number>>();
typia.llm.schema<Array<number> | Array<string>>();
typia.llm.schema<string & (tags.Format<"uri"> | tags.Format<"email">)>();

0 comments on commit e85b861

Please sign in to comment.