@graphai/groq_agent
v0.1.2
Published
Groq agents for GraphAI.
Downloads
505
Readme
@graphai/groq_agent for GraphAI
Groq agents for GraphAI.
Install
yarn add @graphai/groq_agent
Usage
import { GraphAI } from "graphai";
import { groqAgent } from "@graphai/groq_agent";
const agents = { groqAgent };
const graph = new GraphAI(graph_data, agents);
const result = await graph.run();
Agents description
- groqAgent - Groq Agent
Input/Output/Params Schema & samples
Environment Variables
- groqAgent
- GROQ_API_KEY
GraphData Example
graphDataGroqMath
{
"version": 0.5,
"nodes": {
"inputData": {
"value": "hello, let me know the answer 1 + 1"
},
"llm": {
"agent": "groqAgent",
"inputs": {
"prompt": ":inputData"
},
"params": {
"model": "llama3-8b-8192"
}
}
}
}