diff --git a/.github/workflows/builder.yml b/.github/workflows/builder.yml
index 5eb75618c..af790a05f 100644
--- a/.github/workflows/builder.yml
+++ b/.github/workflows/builder.yml
@@ -27,10 +27,10 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v3
- - name: Set up node v20
+ - name: Set up node v21
uses: actions/setup-node@v4
with:
- node-version: 20.x
+ node-version: 21.x
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
diff --git a/.github/workflows/e2e-tests.yml b/.github/workflows/e2e-tests.yml
index f2a25852c..92f369d92 100644
--- a/.github/workflows/e2e-tests.yml
+++ b/.github/workflows/e2e-tests.yml
@@ -29,7 +29,7 @@ jobs:
- name: Set up node v20
uses: actions/setup-node@v4
with:
- node-version: 20.x
+ node-version: 21.x
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
diff --git a/.github/workflows/formatter.yml b/.github/workflows/formatter.yml
index 852b085dc..23b012902 100644
--- a/.github/workflows/formatter.yml
+++ b/.github/workflows/formatter.yml
@@ -27,10 +27,10 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v3
- - name: Set up node v20
+ - name: Set up node v21
uses: actions/setup-node@v4
with:
- node-version: 20.x
+ node-version: 21.x
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
index 9e0589f79..41241a936 100644
--- a/.github/workflows/tests.yml
+++ b/.github/workflows/tests.yml
@@ -27,10 +27,10 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v3
- - name: Set up node v20
+ - name: Set up node v21
uses: actions/setup-node@v4
with:
- node-version: 20.x
+ node-version: 21.x
cache: 'pnpm'
- name: Install dependencies and build
run: pnpm build:genkit-tools
diff --git a/README.md b/README.md
index 1af64b3d3..8f076de7a 100644
--- a/README.md
+++ b/README.md
@@ -88,9 +88,14 @@ Find excellent examples of community-built plugins for OpenAI, Anthropic, Cohere
## Try Genkit on IDX
-
-
-Want to try Genkit without a local setup? [Explore it on Project IDX](https://idx.google.com/new/genkit), Google's AI-assisted workspace for full-stack app development in the cloud.
+Want to skip the local setup? Click below to try out Genkit using [Project IDX](https://idx.dev), Google's AI-assisted workspace for full-stack app development in the cloud.
+
+
+
+
## Sample apps
diff --git a/docs/dotprompt.md b/docs/dotprompt.md
index c0a286092..706ec906e 100644
--- a/docs/dotprompt.md
+++ b/docs/dotprompt.md
@@ -53,7 +53,7 @@ const result = await greetingPrompt.generate({
},
});
-console.log(result.text());
+console.log(result.text);
```
Dotprompt's syntax is based on the [Handlebars](https://handlebarsjs.com/guide/)
@@ -183,7 +183,7 @@ const myPrompt = promptRef("myPrompt");
const result = await myPrompt.generate({...});
// now strongly typed as MySchema
-result.output();
+result.output;
```
## Overriding Prompt Metadata
@@ -237,7 +237,7 @@ const menu = await createMenuPrompt.generate({
},
});
-console.log(menu.output());
+console.log(menu.output);
```
Output conformance is achieved by inserting additional instructions into the
@@ -340,7 +340,7 @@ const result = await describeImagePrompt.generate({
},
});
-console.log(result.text());
+console.log(result.text);
```
## Partials
diff --git a/docs/evaluation.md b/docs/evaluation.md
index aa750f04d..613a9f77f 100644
--- a/docs/evaluation.md
+++ b/docs/evaluation.md
@@ -204,7 +204,7 @@ export const synthesizeQuestions = defineFlow(
text: `Generate one question about the text below: ${chunks[i]}`,
},
});
- questions.push(qResponse.text());
+ questions.push(qResponse.text);
}
return questions;
}
diff --git a/docs/get-started.md b/docs/get-started.md
index 0b7c02b89..694f89c02 100644
--- a/docs/get-started.md
+++ b/docs/get-started.md
@@ -131,7 +131,7 @@ so that it can be used outside of a Node project.
// Handle the response from the model API. In this sample, we just convert
// it to a string, but more complicated flows might coerce the response into
// structured output or chain the response into another LLM call, etc.
- return llmResponse.text();
+ return llmResponse.text;
}
);
diff --git a/docs/models.md b/docs/models.md
index ccffe308a..c1731469d 100644
--- a/docs/models.md
+++ b/docs/models.md
@@ -109,7 +109,7 @@ configureGenkit(/* ... */);
prompt: 'Invent a menu item for a pirate themed restaurant.',
});
- console.log(await llmResponse.text());
+ console.log(await llmResponse.text);
})();
```
@@ -339,7 +339,7 @@ object's `output()` method:
```ts
type MenuItem = z.infer;
-const output: MenuItem | null = llmResponse.output();
+const output: MenuItem | null = llmResponse.output;
```
#### Handling errors
@@ -425,7 +425,7 @@ Handle each of these chunks as they become available:
```ts
for await (const responseChunkData of llmResponseStream.stream()) {
const responseChunk = responseChunkData as GenerateResponseChunk;
- console.log(responseChunk.text());
+ console.log(responseChunk.text);
}
```
@@ -454,7 +454,7 @@ const llmResponseStream = await generateStream({
for await (const responseChunkData of llmResponseStream.stream()) {
const responseChunk = responseChunkData as GenerateResponseChunk