Back to packages list

Vals using @google-labs/breadboard

Description from the NPM package:
A library for rapid generative AI application prototyping

Usage

curl https://karfau.web.val.run
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { email } from "https://esm.town/v/std/email";
import { asRuntimeKit, base, Board, board, code, Probe, ProbeMessage } from "npm:@google-labs/breadboard@0.11.2";
import { Core, core } from "npm:@google-labs/core-kit@0.4.0";
const newBoard = await board(() => {
const { result } = core.runJavascript({
code: "function name() { return { name: \"Hello\" };}",
"name": "name",
});
const output = base.output({});
console.log(result);
return result.to(output);
}).serialize({ "title": "test" });

Usage

curl https://karfau.web.val.run
1
2
3
4
5
6
7
8
9
10
11
12
import { email } from "https://esm.town/v/std/email";
import { asRuntimeKit, base, Board, board, code, Probe, ProbeMessage } from "npm:@google-labs/breadboard@0.12.1";
import { Core, core } from "npm:@google-labs/core-kit@0.5.0";
const { result } = core.runJavascript({
code: "function name() { return \"Hello\"; }",
"name": "name",
});
const output = base.output({});
console.log(result);
console.log("" + result.to(output));
1
Next