@graphai/gemini_agent
v0.1.0
Published
Gemini agents for GraphAI.
Downloads
360
Readme
@graphai/gemini_agent for GraphAI
Gemini agents for GraphAI.
Install
yarn add @graphai/gemini_agent
Usage
import { GraphAI } from "graphai";
import { geminiAgent } from "@graphai/gemini_agent";
const agents = { geminiAgent };
const graph = new GraphAI(graph_data, agents);
const result = await graph.run();
Agents description
- geminiAgent - Gemini Agent
Input/Output/Params Schema & samples
Environment Variables
- geminiAgent
- GOOGLE_GENAI_API_KEY
GraphData Example
graphDataGeminiMath
{
"version": 0.5,
"nodes": {
"inputData": {
"value": "hello, let me know the answer 1 + 1"
},
"llm": {
"agent": "geminiAgent",
"inputs": {
"prompt": ":inputData"
}
}
}
}