-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
268 additions
and
107 deletions.
There are no files selected for viewing
239 changes: 239 additions & 0 deletions
239
seeds/team-experiments/graphs/bgl/insta/chat-with-tools.bgl.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,239 @@ | ||
{ | ||
"title": "Simple Chat Bot ", | ||
"description": "This is the simplest possible chatbot", | ||
"version": "0.0.1", | ||
"nodes": [ | ||
{ | ||
"id": "curry-dea06ed9", | ||
"type": "curry", | ||
"metadata": { | ||
"visual": { | ||
"x": -337, | ||
"y": 79 | ||
} | ||
}, | ||
"configuration": { | ||
"$board": { | ||
"kind": "board", | ||
"path": "#940f7c71-f50a-4cd5-ad9b-0c9d07702ab5" | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "repeater-b5a64681", | ||
"type": "repeater", | ||
"metadata": { | ||
"visual": { | ||
"x": 60, | ||
"y": 0 | ||
} | ||
} | ||
} | ||
], | ||
"edges": [ | ||
{ | ||
"from": "curry-dea06ed9", | ||
"to": "repeater-b5a64681", | ||
"out": "board", | ||
"in": "worker" | ||
} | ||
], | ||
"graphs": { | ||
"940f7c71-f50a-4cd5-ad9b-0c9d07702ab5": { | ||
"title": "Single Turn", | ||
"description": "A blank board. Use it as a starting point for your creations.", | ||
"version": "0.0.1", | ||
"nodes": [ | ||
{ | ||
"type": "input", | ||
"id": "input", | ||
"configuration": { | ||
"schema": { | ||
"type": "object", | ||
"properties": { | ||
"context": { | ||
"type": "string", | ||
"title": "Incoming Conversation Context", | ||
"examples": [] | ||
} | ||
}, | ||
"required": [] | ||
} | ||
}, | ||
"metadata": { | ||
"visual": { | ||
"x": -308, | ||
"y": -21 | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "output", | ||
"id": "output", | ||
"configuration": { | ||
"schema": { | ||
"type": "object", | ||
"properties": { | ||
"context": { | ||
"type": "string", | ||
"title": "Outgoing Context", | ||
"examples": [] | ||
} | ||
}, | ||
"required": [] | ||
} | ||
}, | ||
"metadata": { | ||
"visual": { | ||
"x": 457, | ||
"y": -29 | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "human-48580446", | ||
"type": "human", | ||
"metadata": { | ||
"visual": { | ||
"x": -77, | ||
"y": -108 | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "jsonata-0e5b6fa8", | ||
"type": "jsonata", | ||
"configuration": { | ||
"raw": "on", | ||
"expression": "{ \"model\": \"gemini-1.5-pro-latest\" }" | ||
}, | ||
"metadata": { | ||
"visual": { | ||
"x": -69, | ||
"y": 120 | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "toolWorker-7793ced3", | ||
"type": "toolWorker", | ||
"metadata": { | ||
"visual": { | ||
"x": 184, | ||
"y": -216 | ||
} | ||
}, | ||
"configuration": { | ||
"instruction": "You are a super-helpful chat bot who uses tools to help users. In cases where the tool is not applicable, you improvise and try to answer the question anyway. In situations when the user just wants to have a conversation, just have a conversation.", | ||
"tools": [ | ||
"https://raw.githubusercontent.com/google/labs-prototypes/main/seeds/team-experiments/graphs/bgl/insta/mock-get-page.json" | ||
] | ||
} | ||
} | ||
], | ||
"edges": [ | ||
{ | ||
"from": "input", | ||
"to": "human-48580446", | ||
"out": "context", | ||
"in": "context" | ||
}, | ||
{ | ||
"from": "human-48580446", | ||
"to": "toolWorker-7793ced3", | ||
"out": "context", | ||
"in": "context" | ||
}, | ||
{ | ||
"from": "toolWorker-7793ced3", | ||
"to": "output", | ||
"out": "context", | ||
"in": "context" | ||
}, | ||
{ | ||
"from": "jsonata-0e5b6fa8", | ||
"to": "toolWorker-7793ced3", | ||
"out": "model", | ||
"in": "model" | ||
} | ||
], | ||
"url": "file://fsapi~insta/chat-with-tools.bgl.json#940f7c71-f50a-4cd5-ad9b-0c9d07702ab5" | ||
}, | ||
"546708aa-d1c8-4f3a-9c27-45f54f1a7e24": { | ||
"title": "Get Web Page", | ||
"description": "Given a URL, replies with the text contents of the Web page.", | ||
"version": "0.0.1", | ||
"nodes": [ | ||
{ | ||
"type": "input", | ||
"id": "input", | ||
"configuration": { | ||
"schema": { | ||
"type": "object", | ||
"properties": { | ||
"text": { | ||
"type": "string", | ||
"title": "text" | ||
} | ||
} | ||
} | ||
}, | ||
"metadata": { | ||
"visual": { | ||
"x": -218, | ||
"y": 71 | ||
} | ||
} | ||
}, | ||
{ | ||
"type": "output", | ||
"id": "output", | ||
"configuration": { | ||
"schema": { | ||
"type": "object", | ||
"properties": { | ||
"text": { | ||
"type": "string", | ||
"title": "text" | ||
} | ||
} | ||
} | ||
}, | ||
"metadata": { | ||
"visual": { | ||
"x": 357, | ||
"y": 24 | ||
} | ||
} | ||
}, | ||
{ | ||
"id": "promptTemplate-edab9017", | ||
"type": "promptTemplate", | ||
"metadata": { | ||
"visual": { | ||
"x": 17, | ||
"y": -21 | ||
} | ||
}, | ||
"configuration": { | ||
"template": "{\"url\":\"{{url}}\",\"content\":\"Show docs\\nBREADBOARD\\nA GENERATIVE AI PROTOTYPE FRAMEWORK\\nGET STARTED →\\nMake Anything\\n\\nBreadboard lets you design sophisticated Generative AI experiences. Build complex workflows visually, free from API wrangling.\\n\\nDebug On the Fly\\n\\nStart making boards and see them visualized in real time.\\n\\nFlexible Kits\\n\\nNo need to reinvent the wheel. From AI to webcam capture, we’ve got you covered.\\n\\nOpen Source\\n\\nWant to contribute? Feel free! Breadboard is completely open source on GitHub.\\n\\nThe Happy Path\\n\\nIf you're eager to start making boards with Breadboard as quickly as possible, here's a yellow brick road that will take you there. It's not quite a tutorial, but more like a step-by-step onboarding guide with some of the best practices baked in.\\n\\nGET GOING →\\nGenerate Web Apps\\n\\nMade something awesome? Share it with others and let them play with it immediately!\\n\\nCopyright 2024 Google LLC. Code licensed under Apache License 2.0\"}" | ||
} | ||
} | ||
], | ||
"edges": [ | ||
{ | ||
"from": "input", | ||
"out": "text", | ||
"to": "promptTemplate-edab9017", | ||
"in": "url" | ||
}, | ||
{ | ||
"from": "promptTemplate-edab9017", | ||
"to": "output", | ||
"out": "prompt", | ||
"in": "text" | ||
} | ||
] | ||
} | ||
} | ||
} |
Oops, something went wrong.