2.0.0 • Published 6 months ago

@graphai/brave_search_agent v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
6 months ago

@graphai/brave_search_agent for GraphAI

An agent that uses the Brave Search API

Install

yarn add @graphai/brave_search_agent

Usage

import { GraphAI } from "graphai";
import { braveSearchAgent } from "@graphai/brave_search_agent";

const agents = { braveSearchAgent };

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

Agents description

Input/Output/Params Schema & samples

Input/Params example

  • braveSearchAgent
{
  "inputs": {
    "query": "GraphAI framework"
  },
  "params": {}
}
{
  "inputs": {
    "query": "GraphAI vs TensorFlow",
    "search_args": {
      "country": "JP",
      "language": "ja"
    }
  },
  "params": {}
}
{
  "inputs": {
    "query": "GraphAI tutorials"
  },
  "params": {
    "debug": true
  }
}

Environment Variables

  • braveSearchAgent
    • BRAVE_SEARCH_API_TOKEN
2.0.0

6 months ago

0.0.1

7 months ago