The open-source agent harness - the runtime layer that turns an LLM into a working agent.
import { number } from "../../../../src/core/schemas/builders";
import { itSchemaIdentity } from "../utils/itSchema";
import { itValidate } from "../utils/itValidate";
describe("number", () => {
itSchemaIdentity(number(), 42);
itValidate("non-number", number(), "hello", [
{
path: [],
message: 'Expected number. Received "hello".',
},
]);
});