2.0.1 • Published 5 months ago
@graphai/llm_agents v2.0.1
@graphai/llm_agents for GraphAI
LLM agents for GraphAI.
Install
yarn add @graphai/llm_agents
Agent | APIKEY | Stream | Tools | Web | History |
---|---|---|---|---|---|
anthropicAgent | ANTHROPIC_API_KEY | Y | Y | Y(*1) | Y |
geminiAgent | GOOGLE_GENAI_API_KEY | Y | Y | Y | Y |
groqAgent | GROQ_API_KEY | Y | Y | Y(*1) | Y |
openAIAgent | OPENAI_API_KEY | Y | Y | Y(*1) | Y |
replicateAgent | REPLICATE_API_TOKEN | N | N | N | N |
(*1) dangerouslyAllowBrowser
Usage
import { GraphAI } from "graphai";
import {
anthropicAgent,
geminiAgent,
groqAgent,
openAIAgent,
openAIFetchAgent,
openAIImageAgent,
replicateAgent
} from "@graphai/llm_agents";
const agents = {
anthropicAgent,
geminiAgent,
groqAgent,
openAIAgent,
openAIFetchAgent,
openAIImageAgent,
replicateAgent
};
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
- openAIFetchAgent - OpenAI Fetch Agent
- openAIImageAgent - OpenAI Image Agent
- replicateAgent - Replicate Agent
Input/Output/Params Schema & samples
Input/Params example
- openAIAgent
{
"inputs": {
"prompt": "this is response result"
},
"params": {}
}
- openAIFetchAgent
{
"inputs": {
"prompt": "this is response result"
},
"params": {}
}
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
Related Agent Packages
1.0.2
8 months ago
1.0.1
8 months ago
1.0.0
8 months ago
1.0.5
5 months ago
1.0.4
6 months ago
1.0.3
6 months ago
2.0.1
5 months ago
2.0.0
5 months ago
0.2.10
9 months ago
0.2.1
11 months ago
0.1.2
12 months ago
0.2.0
11 months ago
0.2.7
9 months ago
0.2.6
10 months ago
0.2.9
9 months ago
0.2.8
9 months ago
0.2.3
10 months ago
0.2.2
10 months ago
0.2.5
10 months ago
0.2.4
10 months ago
0.1.1
12 months ago
0.1.0
12 months ago
0.0.22
1 year ago
0.0.20
1 year ago
0.0.21
1 year ago
0.0.19
1 year ago
0.0.18
1 year ago
0.0.17
1 year ago
0.0.16
1 year ago
0.0.15
1 year ago
0.0.14
1 year ago
0.0.13
1 year ago
0.0.12
1 year ago
0.0.11
1 year ago
0.0.10
1 year ago
0.0.9
1 year ago
0.0.8
1 year ago
0.0.7
1 year ago
0.0.6
1 year ago
0.0.5
1 year ago
0.0.4
1 year ago
0.0.3
1 year ago
0.0.2
1 year ago
0.0.1
1 year ago