Skip to content

Commit

Permalink
Remove test that belongs in API.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmoseley committed Jun 23, 2024
1 parent 1752bf0 commit 120215f
Showing 1 changed file with 0 additions and 37 deletions.
37 changes: 0 additions & 37 deletions content.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -271,40 +271,3 @@ test("test streaming content", { timeout: 180000 }, async () => {

await catalog.delete();
});

test("e2e content without any catalogs", { timeout: 180000 }, async () => {
testClient.configureOrg({
companyName: "Cortex Click",
companyInfo:
"Cortex Click provides an AI platform for go-to-market. Cortex click allows you to index your enterprise knowledge base, and create agents called Cortexes that automate sales and marketing processes like SEO, content writing, RFP generation, customer support, sales document genearation such as security questionairres and more.",
personality: [
"friendly and helpful",
"expert sales and marketing professional",
"experienced software developer",
],
rules: [
"never say anything disparaging about AI or LLMs",
"do not offer discounts",
],
});

const cortex = await testClient.configureCortex(
`cortex-${Math.floor(Math.random() * 10000)}`,
{
friendlyName: "Cortex AI",
instructions: ["answer questions about the cortex click AI GTM platform"],
public: true,
},
);

// create content
const title = "Overview of the Cortex Click AI GTM Platform";
const prompt =
"Write a blog post about the Cortex Click AI GTM Platform. Elaborate on scenarios, customers, and appropriate verticals. Make sure to mention the impact that AI can have on sales and marketing teams.";
const content = await cortex.generateContent({ title, prompt });

expect(content.content.length).toBeGreaterThan(1);
expect(content.title).toBe(title);
expect(content.version).toBe(0);
expect(content.commands.length).toBe(1);
});

0 comments on commit 120215f

Please sign in to comment.