Skip to content

Commit 6b49625

Browse files
committed
feat: Add Board for Each and Object Manipulator Board
1 parent dfd6372 commit 6b49625

File tree

4 files changed

+58
-22
lines changed

4 files changed

+58
-22
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
title: Board for Each
3+
aliases:
4+
tags:
5+
- breadboard/phase/2
6+
created: 2024-06-13T16:07:02
7+
modified: 2024-06-13T16:07:09
8+
---
9+
10+
A board that passes each object in an array through a board and returns the modified array.
11+
12+
- Inputs
13+
- An array
14+
- A board
15+
- Passes each object in the array through the provided board
16+
- Outputs
17+
- The modified array of objects
18+
19+
## Source
20+
21+
- [TypeScript](https://github.com/ExaDev/breadboard/blob/hackernews-simplified/packages/breadboard-web/src/boards/board-for-each.ts)
22+
- [JSON](https://github.com/ExaDev/breadboard/blob/hackernews-simplified/packages/breadboard-web/public/graphs/board-for-each.json)
23+
- [Open in Breadboard Web](https://breadboard-ai.web.app/?board=https://raw.githubusercontent.com/ExaDev/breadboard/hackernews-simplified/packages/breadboard-web/public/graphs/board-for-each.json)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
---
2+
title: Object Manipulator Board
3+
aliases: []
4+
tags:
5+
- breadboard/phase/2
6+
created: 2024-06-13T16:06:15
7+
modified: 2024-06-13T16:06:43
8+
---
9+
10+
A board that manipulates objects based on the provided keys.
11+
12+
- Input:
13+
- `keys`
14+
- The array of keys to include or exclude
15+
- `mode`
16+
- `include` or `exclude`
17+
- Whether to retain or remove the listed keys
18+
- `errorOnMissing`
19+
- Whether to throw error if any of the keys are not found
20+
- Output
21+
- Object with listed keys removed or retained
22+
23+
## Source
24+
25+
- [TypeScript](https://github.com/ExaDev/breadboard/blob/hackernews-simplified/packages/breadboard-web/src/boards/object-manipulator.ts)
26+
- [JSON](https://github.com/ExaDev/breadboard/blob/hackernews-simplified/packages/breadboard-web/public/graphs/object-manipulator.json)
27+
- [Open in Breadboard Web](https://breadboard-ai.web.app/?board=https://raw.githubusercontent.com/ExaDev/breadboard/hackernews-simplified/packages/breadboard-web/public/graphs/object-manipulator.json)

content/projects/Breadboard/Phase 2/Ollama.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Using Breadboard with Ollama
3-
aliases:
3+
aliases: []
44
tags:
55
- breadboard/phase/2
66
- LLM
@@ -9,7 +9,7 @@ tags:
99
- local_llm
1010
- ollama
1111
created: 2024-05-31T19:23:54
12-
modified: 2024-06-13T16:01:22
12+
modified: 2024-06-13T16:05:57
1313
---
1414

1515
This documentation provides an overview of how a well-designed breadboard can interact with multiple language models simultaneously.

content/projects/Breadboard/Phase 2/Simplified Hacker News Boards.md

+6-20
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,16 @@ tags:
66
- breadboard/phase/2
77
- hacker_news
88
created: 2024-06-13T08:45:47
9-
modified: 2024-06-13T09:16:56
9+
modified: 2024-06-13T16:07:02
1010
---
1111

1212
Simplified versions of the [HackerNews Tool](projects/Breadboard/Phase%202/HackerNews%20Tool.md) boards, with reduced inputs and outputs, for use with LLM function calling.
1313

1414
## [Simple Hacker News Search](projects/Breadboard/Phase%202/Simple%20Hacker%20News%20Search.md)
15+
1516
## Helper Boards
16-
- Object Manipulator Board
17-
- Input:
18-
- `keys`
19-
- The array of keys to include or exclude
20-
- `mode`
21-
- `include` or `exclude`
22-
- Whether to retain or remove the listed keys
23-
- `errorOnMissing`
24-
- Whether to throw error if any of the keys are not found
25-
- Output
26-
- Object with listed keys removed or retained
27-
- `forEach` Board
28-
- Inputs
29-
- An array
30-
- A board
31-
- Passes each object in the array through the provided board
32-
- Outputs
33-
- The modified array of objects
17+
18+
- [[Object Manipulator Board]]
19+
- [[Board for Each]]
3420
- Object Array Manipulator Board
35-
- A board that nests the Object Manipulator and forEach boards
21+
- A board that nests the Object Manipulator and forEach boards

0 commit comments

Comments
 (0)