diff --git a/seeds/graph-playground/docs/graphs/call-react-with-lambdas.md b/seeds/graph-playground/docs/graphs/call-react-with-lambdas.md
index 360c6625..f4f88efd 100644
--- a/seeds/graph-playground/docs/graphs/call-react-with-lambdas.md
+++ b/seeds/graph-playground/docs/graphs/call-react-with-lambdas.md
@@ -11,8 +11,8 @@ jsonata1["jsonata
id='jsonata-1'"] -- "result->tools" --> invoke4["invoke <
invoke4["invoke
id='invoke-4'"] -- "text->text" --> reactResponse{{"output
id='reactResponse'"}}:::output
userRequest[/"input
id='userRequest'"/]:::input -- "text->text" --> invoke4["invoke
id='invoke-4'"]
expressionjsonata1[expression]:::config -- "expression->expression" --o jsonata1
-$refimport2[$ref]:::config -- "$ref->$ref" --o import2
-$refimport3[$ref]:::config -- "$ref->$ref" --o import3
+pathimport2[path]:::config -- "path->path" --o import2
+pathimport3[path]:::config -- "path->path" --o import3
schemauserRequest[schema]:::config -- "schema->schema" --o userRequest
pathinvoke4[path]:::config -- "path->path" --o invoke4
schemareactResponse[schema]:::config -- "schema->schema" --o reactResponse
diff --git a/seeds/graph-playground/graphs/call-react-with-lambdas.json b/seeds/graph-playground/graphs/call-react-with-lambdas.json
index 0c39c8c5..20db6f12 100644
--- a/seeds/graph-playground/graphs/call-react-with-lambdas.json
+++ b/seeds/graph-playground/graphs/call-react-with-lambdas.json
@@ -46,14 +46,14 @@
"id": "import-2",
"type": "import",
"configuration": {
- "$ref": "search-summarize.json"
+ "path": "search-summarize.json"
}
},
{
"id": "import-3",
"type": "import",
"configuration": {
- "$ref": "math.json"
+ "path": "math.json"
}
},
{
@@ -108,6 +108,9 @@
"description": "A kit that provides a few necessary components for wiring boards that use PaLM API.",
"version": "0.0.1",
"url": "npm:@google-labs/llm-starter"
+ },
+ {
+ "url": "npm:@google-labs/core-kit"
}
]
}
\ No newline at end of file
diff --git a/seeds/graph-playground/src/boards/call-react-with-lambdas.ts b/seeds/graph-playground/src/boards/call-react-with-lambdas.ts
index d14ed940..85a04926 100644
--- a/seeds/graph-playground/src/boards/call-react-with-lambdas.ts
+++ b/seeds/graph-playground/src/boards/call-react-with-lambdas.ts
@@ -6,6 +6,7 @@
import { Board } from "@google-labs/breadboard";
import { Starter } from "@google-labs/llm-starter";
+import { Core } from "@google-labs/core-kit";
/**
* An example of a board that uses the `react-witih-lambdas.ts` board.
@@ -20,6 +21,7 @@ const board = new Board({
version: "0.0.1",
});
const kit = board.addKit(Starter);
+const core = board.addKit(Core);
const tools = kit
.jsonata(
@@ -39,8 +41,8 @@ const tools = kit
}
]`
)
- .wire("search<-board", board.import("search-summarize.json"))
- .wire("math<-board", board.import("math.json"));
+ .wire("search<-board", core.import({ path: "search-summarize.json" }))
+ .wire("math<-board", core.import({ path: "math.json" }));
// Include the `react-with-slot` board from a URL, wiring input to it.
// Slot the `tools` board into the `tools` slot.
@@ -63,7 +65,7 @@ board
})
.wire(
"text",
- board
+ core
.invoke({ path: `react-with-lambdas.json` })
.wire("tools<-result", tools)
.wire(