@graphai/llm_agents
v0.1.2
Published
LLM agents for GraphAI.
Downloads
506
Readme
@graphai/llm_agents for GraphAI
LLM agents for GraphAI.
Install
yarn add @graphai/llm_agents
Usage
import { GraphAI } from "graphai";
import {
anthropicAgent,
geminiAgent,
groqAgent,
openAIAgent,
openAIImageAgent,
replicateAgent,
slashGPTAgent,
tokenBoundStringsAgent
} from "@graphai/llm_agents";
const agents = {
anthropicAgent,
geminiAgent,
groqAgent,
openAIAgent,
openAIImageAgent,
replicateAgent,
slashGPTAgent,
tokenBoundStringsAgent
};
const graph = new GraphAI(graph_data, agents);
const result = await graph.run();
Agents description
- anthropicAgent - Anthropic Agent
- geminiAgent - Gemini Agent
- groqAgent - Groq Agent
- openAIAgent - OpenAI Agent
- openAIImageAgent - OpenAI Image Agent
- replicateAgent - Replicate Agent
- slashGPTAgent - Slash GPT Agent
- tokenBoundStringsAgent - token bound Agent
Input/Output/Params Schema & samples
- anthropicAgent
- geminiAgent
- groqAgent
- openAIAgent
- openAIImageAgent
- replicateAgent
- slashGPTAgent
- tokenBoundStringsAgent
Environment Variables
- anthropicAgent
- ANTHROPIC_API_KEY
- geminiAgent
- GOOGLE_GENAI_API_KEY
- groqAgent
- GROQ_API_KEY
- openAIAgent
- OPENAI_API_KEY
- openAIImageAgent
- OPENAI_API_KEY
- replicateAgent
- REPLICATE_API_TOKEN