Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

fix(tools): correct probe test assertion order

Steven Enamakel44cafd35840e
diff --git a/app/src/features/conversations/tools/__probe.test.ts b/app/src/features/conversations/tools/__probe.test.ts
new file mode 100644
index 0000000000..f73c75eeb1
--- /dev/null
+++ b/app/src/features/conversations/tools/__probe.test.ts
@@ -0,0 +1,22 @@
+import { describe, expect, it } from 'vitest';
+
+import { describeToolCall, toolLabel } from './toolPresentation';
+
+describe('probe', () => {
+ it('prints labels', () => {
+ const a = describeToolCall({
+ name: 'GMAIL_FETCH_EMAILS',
+ args: JSON.stringify({ query: 'from:broker' }),
+ status: 'success',
+ });
+ console.log('GMAIL_FETCH_EMAILS ->', JSON.stringify(a), toolLabel(a));
+
+ const b = describeToolCall({
+ name: 'memory_hybrid_search',
+ args: JSON.stringify({ query: 'apple stock' }),
+ status: 'success',
+ });
+ console.log('memory_hybrid_search ->', JSON.stringify(b), toolLabel(b));
+ expect(true).toBe(true);
+ });
+});