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