3.1.0 • Published 2 years ago
@paulkinlan/claude-breadboard-kit v3.1.0
"Google Labs Breadboard" Kit for the Claude API
The Claude Breadboard Kit is a collection of Breadboard nodes that are helpful for building LLM-based (Generative AI) applications using the Claude API.
Installing
Claude Breadboard Kit requires Node version >=v19.0.0. To install:
npm install @paulkinlan/claude-breadboard-kitNode Types
Here are all node handlers that are included in the Claude Breadboard Kit
The generateCompletion node
This is an Claude API text completion node. To produce useful output, the node needs an CLAUDE_API_KEY input and the text input and the model to run it against (although it defaults to claude-2).
Example:
Given this input:
{
"CLAUDE_API_KEY": "<your API key>",
"text": "How much wood can a woodchuck chuck?"
}The node will produce this output:
{
"completion": " The exact amount a woodchuck can chuck is unknown, but it is believed that they can chuck about 700 pounds of wood in a day."
}Inputs:
CLAUDE_API_KEYrequired, must contain the Claude API key.textrequired, sent as the prompt for the completion.modelthe name of the model Claude that you want to use.
Outputs:
completion- result of the Claude API text completion.