You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/codelab.md
+1-2Lines changed: 1 addition & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -290,7 +290,7 @@ const getJoke = defineTool(
290
290
291
291
The tool above is a simple example of a tool that retrieves a joke about a specific topic using the JokeAPI. The tool takes a jokeTopic as input and returns a joke as output. The tool uses the fetch function to make an HTTP request to the JokeAPI and returns the joke as a response.
292
292
293
-
We will not use dotprompt for this example. Let's modify our generate method to use the `getJoke` tool by adding the following code to the `index.ts` file:
293
+
Let's modify our generate method to use the `getJoke` tool by adding the following code to the `index.ts` file:
294
294
```typescript
295
295
exportconst myFlow =onFlow(
296
296
{
@@ -351,7 +351,6 @@ One important thing from the output above is that the joke is generated by the `
351
351
You can interact with the tools in the Genkit developer console:
0 commit comments