Skip to content

Commit

Permalink
[graph-playground] Use Core Kit in react.
Browse files Browse the repository at this point in the history
  • Loading branch information
dglazkov committed Oct 19, 2023
1 parent e9daa1c commit 359f4dd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions seeds/graph-playground/graphs/react.json
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,9 @@
}
],
"kits": [
{
"url": "npm:@google-labs/core-kit"
},
{
"title": "LLM Starter Kit",
"description": "A kit that provides a few necessary components for wiring boards that use PaLM API.",
Expand Down
4 changes: 3 additions & 1 deletion seeds/graph-playground/src/boards/react.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,10 @@
import { Board } from "@google-labs/breadboard";
import { Starter } from "@google-labs/llm-starter";
import { ReActHelper } from "../react.js";
import { Core } from "@google-labs/core-kit";

const board = new Board();
const core = board.addKit(Core);
const kit = board.addKit(Starter);
const reAct = board.addKit(ReActHelper);

Expand Down Expand Up @@ -163,7 +165,7 @@ const search = () => {
)
);

return board
return core
.passthrough()
.wire("search->question", summarizingTemplate)
.wire("search->query", searchURLTemplate);
Expand Down

0 comments on commit 359f4dd

Please sign in to comment.