@graphai/tools_agent
v1.0.5
Published
General tools agents
Readme
@graphai/tools_agent for GraphAI
General tools agents
Install
yarn add @graphai/tools_agentUsage
import { GraphAI } from "graphai";
import { toolsAgent } from "@graphai/tools_agent";
const agents = { toolsAgent };
const graph = new GraphAI(graph_data, agents);
const result = await graph.run();Agents description
- toolsAgent -
Input/Output/Params Schema & samples
Input/Params example
- toolsAgent
{
"inputs": {
"llmAgent": "openAIAgent",
"tools": [
{
"type": "function",
"function": {
"name": "lightAgent--toggleLight",
"description": "Switch of light",
"parameters": {
"type": "object",
"properties": {
"switch": {
"type": "boolean",
"description": "change light state"
}
}
}
}
}
],
"messages": [
{
"role": "system",
"content": "You are a light switch. Please follow the user's instructions."
}
],
"userInput": {
"text": "turn on the light.",
"message": {
"role": "user",
"content": "turn on the light."
}
}
},
"params": {}
}