Skip to content

Commit 6e7792f

Browse files
committed
Merge branch 'main' into feat/upgrade-latest-nextjs-and-eslint
2 parents 82eaac4 + 80db5f7 commit 6e7792f

File tree

34 files changed

+2012
-907
lines changed

34 files changed

+2012
-907
lines changed

.changeset/light-parrots-work.md

Lines changed: 0 additions & 5 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# create-llama
22

3+
## 0.3.12
4+
5+
### Patch Changes
6+
7+
- 6edea6a: Optimize generated workflow code for Python
8+
- 8431b78: Optimize Typescript multi-agent code
9+
- 8431b78: Add form filling use case (Typescript)
10+
311
## 0.3.11
412

513
### Patch Changes

e2e/shared/multiagent_template.spec.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,6 @@ for (const agents of templateAgents) {
2626
process.platform !== "linux" || process.env.DATASOURCE === "--no-files",
2727
"The multiagent template currently only works with files. We also only run on Linux to speed up tests.",
2828
);
29-
test.skip(
30-
agents === "form_filling" && templateFramework !== "fastapi",
31-
"Form filling is currently only supported with FastAPI.",
32-
);
3329
let port: number;
3430
let externalPort: number;
3531
let cwd: string;

helpers/typescript.ts

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -134,19 +134,22 @@ export const installTSTemplate = async ({
134134
// Copy agents use case code for multiagent template
135135
if (agents) {
136136
console.log("\nCopying agent:", agents, "\n");
137+
const useCasePath = path.join(compPath, "agents", "typescript", agents);
138+
const agentsCodePath = path.join(useCasePath, "workflow");
137139

138-
const agentsCodePath = path.join(
139-
compPath,
140-
"agents",
141-
"typescript",
142-
agents,
143-
);
144-
140+
// Copy agent codes
145141
await copy("**", path.join(root, relativeEngineDestPath, "workflow"), {
146142
parents: true,
147143
cwd: agentsCodePath,
148144
rename: assetRelocator,
149145
});
146+
147+
// Copy use case files to project root
148+
await copy("*.*", path.join(root), {
149+
parents: true,
150+
cwd: useCasePath,
151+
rename: assetRelocator,
152+
});
150153
} else {
151154
console.log(
152155
red(

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-llama",
3-
"version": "0.3.11",
3+
"version": "0.3.12",
44
"description": "Create LlamaIndex-powered apps with one command",
55
"keywords": [
66
"rag",

questions/simple.ts

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -52,22 +52,19 @@ export const askSimpleQuestions = async (
5252
let useLlamaCloud = false;
5353

5454
if (appType !== "extractor") {
55-
// TODO: Add TS support for form filling use case
56-
if (appType !== "form_filling") {
57-
const { language: newLanguage } = await prompts(
58-
{
59-
type: "select",
60-
name: "language",
61-
message: "What language do you want to use?",
62-
choices: [
63-
{ title: "Python (FastAPI)", value: "fastapi" },
64-
{ title: "Typescript (NextJS)", value: "nextjs" },
65-
],
66-
},
67-
questionHandlers,
68-
);
69-
language = newLanguage;
70-
}
55+
const { language: newLanguage } = await prompts(
56+
{
57+
type: "select",
58+
name: "language",
59+
message: "What language do you want to use?",
60+
choices: [
61+
{ title: "Python (FastAPI)", value: "fastapi" },
62+
{ title: "Typescript (NextJS)", value: "nextjs" },
63+
],
64+
},
65+
questionHandlers,
66+
);
67+
language = newLanguage;
7168

7269
const { useLlamaCloud: newUseLlamaCloud } = await prompts(
7370
{

templates/components/agents/typescript/blog/factory.ts

Lines changed: 0 additions & 230 deletions
This file was deleted.

templates/components/agents/typescript/blog/tools.ts

Lines changed: 0 additions & 54 deletions
This file was deleted.

0 commit comments

Comments
 (0)