Socket
Book a DemoInstallSign in
Socket

@graphai/data_agents

Package Overview
Dependencies
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphai/data_agents

Data agents for GraphAI.

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
2
Created
Source

@graphai/data_agents for GraphAI

Data agents for GraphAI.

Install

yarn add @graphai/data_agents

Usage

import { GraphAI } from "graphai";
import { dataObjectMergeTemplateAgent } from "@graphai/data_agents";

const agents = { dataObjectMergeTemplateAgent };

const graph = new GraphAI(graph_data, agents);
const result = await graph.run();

Agents description

  • dataObjectMergeTemplateAgent - Merge object

Input/Output/Params Schema & samples

  • dataObjectMergeTemplateAgent

Input/Params example

  • dataObjectMergeTemplateAgent
{
  "inputs": {
    "array": [
      {
        "content1": "hello"
      },
      {
        "content2": "test"
      }
    ]
  },
  "params": {
    "flatResponse": true
  }
}
{
  "inputs": {
    "array": [
      {
        "content1": "hello"
      }
    ]
  },
  "params": {
    "flatResponse": true
  }
}
{
  "inputs": {
    "array": [
      {
        "content": "hello1"
      },
      {
        "content": "hello2"
      }
    ]
  },
  "params": {
    "flatResponse": true
  }
}
{
  "inputs": {
    "array": [
      {
        "a": 1,
        "b": 1
      },
      {
        "a": 2,
        "b": 2
      },
      {
        "a": 3,
        "b": 0,
        "c": 5
      }
    ]
  },
  "params": {
    "flatResponse": true
  }
}
{
  "inputs": {
    "array": [
      {
        "a": {
          "b": {
            "c": {
              "d": "e"
            }
          }
        }
      },
      {
        "b": {
          "c": {
            "d": {
              "e": "f"
            }
          }
        }
      },
      {
        "b": {
          "d": {
            "e": {
              "f": "g"
            }
          }
        }
      }
    ]
  },
  "params": {
    "flatResponse": true
  }
}
{
  "inputs": {
    "array": [
      {
        "content1": "hello"
      },
      {
        "content2": "test"
      }
    ]
  },
  "params": {}
}
{
  "inputs": {
    "array": [
      {
        "content1": "hello"
      }
    ]
  },
  "params": {}
}
{
  "inputs": {
    "array": [
      {
        "content": "hello1"
      },
      {
        "content": "hello2"
      }
    ]
  },
  "params": {}
}
{
  "inputs": {
    "array": [
      {
        "a": 1,
        "b": 1
      },
      {
        "a": 2,
        "b": 2
      },
      {
        "a": 3,
        "b": 0,
        "c": 5
      }
    ]
  },
  "params": {}
}
{
  "inputs": {
    "array": [
      {
        "a": {
          "b": {
            "c": {
              "d": "e"
            }
          }
        }
      },
      {
        "b": {
          "c": {
            "d": {
              "e": "f"
            }
          }
        }
      },
      {
        "b": {
          "d": {
            "e": {
              "f": "g"
            }
          }
        }
      }
    ]
  },
  "params": {}
}

FAQs

Package last updated on 04 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts