mirror of
https://github.com/getcompanion-ai/co-mono.git
synced 2026-04-21 20:04:55 +00:00
Fix tsgo type issues: update tsgo, fix ReasoningEffort import, remove broken enum-test
This commit is contained in:
parent
0bc8d79216
commit
238c5d34e4
7 changed files with 289 additions and 835 deletions
|
|
@ -1,17 +0,0 @@
|
|||
import { Type } from "@sinclair/typebox";
|
||||
import { z } from "zod";
|
||||
import { zodToJsonSchema } from "zod-to-json-schema";
|
||||
import { StringEnum } from "../src/utils/typebox-helpers.js";
|
||||
|
||||
// Zod version
|
||||
const zodSchema = z.object({
|
||||
operation: z.enum(["add", "subtract", "multiply", "divide"]),
|
||||
});
|
||||
|
||||
// TypeBox with our StringEnum helper
|
||||
const typeboxHelper = Type.Object({
|
||||
operation: StringEnum(["add", "subtract", "multiply", "divide"]),
|
||||
});
|
||||
|
||||
console.log("Zod:", JSON.stringify(zodToJsonSchema(zodSchema), null, 2));
|
||||
console.log("\nTypeBox.StringEnum:", JSON.stringify(typeboxHelper, null, 2));
|
||||
Loading…
Add table
Add a link
Reference in a new issue