fix: add parameter validation to all tools to prevent undefined insertions (#14)
Co-authored-by: Letta <noreply@letta.com>
This commit is contained in:
@@ -78,4 +78,10 @@ describe("Bash tool", () => {
|
||||
expect(result.content).toBeDefined();
|
||||
expect(result.content[0].text).toBeDefined();
|
||||
});
|
||||
|
||||
test("throws error when command is missing", async () => {
|
||||
await expect(bash({} as any)).rejects.toThrow(
|
||||
/missing required parameter.*command/,
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user