2.0.0 • Published 6 months ago
@graphai/brave_search_agent v2.0.0
@graphai/brave_search_agent for GraphAI
An agent that uses the Brave Search API
Install
yarn add @graphai/brave_search_agentUsage
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
- braveSearchAgent - An agent that uses the Brave Search API. https://api-dashboard.search.brave.com/app/documentation/web-search/get-started
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