Skip to content

Using boards as kits with Build API #2542

Answered by aomarks
TinaNikou asked this question in Q&A
Discussion options

You must be logged in to vote

I think this should work for now! However I have filed #2571 for myself which I think is what you'll want for the cleaner solution. This will allow you to do this:

import {board} from '@breadboard-ai/build';
import {geminiText} from '@google-labs/gemini-kit';

const prompt = input();
const completion = geminiText({prompt});
export default board({inputs: {prompt}, outputs: {completion}, ...});

Under the hood this will automatically create an invoke node configured in the correct way to call the gemini text board. I'll bump this up in priority since I think it's important that boards act exactly like a discrete component (just import it and call it, that's it!).

Replies: 2 comments 12 replies

Comment options

You must be logged in to vote
4 replies
@TinaNikou
Comment options

@aomarks
Comment options

@dglazkov
Comment options

@aomarks
Comment options

Comment options

You must be logged in to vote
8 replies
@aomarks
Comment options

Answer selected by TinaNikou
@dglazkov
Comment options

@TinaNikou
Comment options

@aomarks
Comment options

@TinaNikou
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants