90893b0aa8
CI / check (pull_request) Failing after 1m47s
- Add proman.yaml with 8 packages in dependency order - Add @shazhou/proman as devDependency - Replace root scripts: build/test/check/format → proman commands - Keep typecheck script for standalone tsc --build Fixes #27
16 lines
536 B
TypeScript
16 lines
536 B
TypeScript
import { describe, expect, test } from "vitest";
|
|
import type { LlmToolCall } from "../src/llm/types.js";
|
|
|
|
/** Mirror OpenAI response shape for parser coverage via chatCompletionWithTools integration later. */
|
|
describe("LlmToolCall shape", () => {
|
|
test("tool call record fields", () => {
|
|
const call: LlmToolCall = {
|
|
id: "call_1",
|
|
name: "read_file",
|
|
arguments: '{"path":"README.md"}',
|
|
};
|
|
expect(call.name).toBe("read_file");
|
|
expect(JSON.parse(call.arguments)).toEqual({ path: "README.md" });
|
|
});
|
|
});
|