test4.ts

Test 4: Test Agent Interaction

import { interactAgent } from "../src/interactAgent";
import assert from "assert";

describe("Agent Interaction Tests", () => {
  it("should interact with an agent successfully", async () => {
    const agentName = "TestAgent";
    const query = "What is the market cap of TST?";

    const response = await interactAgent(agentName, query);
    assert.ok(response);
    assert.strictEqual(typeof response, "string");
  });
});

Last updated