@graphai/brave_search_agent 2.0.0 → 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -30,6 +30,20 @@ const result = await graph.run();
30
30
 
31
31
  ### Input/Params example
32
32
  - braveSearchAgent
33
+ - inputs
34
+ - query(string)
35
+ - The search query to send to Brave Search
36
+ - search_args(object)
37
+ - Additional search parameters to pass to the Brave Search API. See https://api-dashboard.search.brave.com/app/documentation/web-search/query
38
+ - params
39
+ - apiKey(string)
40
+ - Brave Search API key
41
+ - debug(boolean)
42
+ - Enable debug mode
43
+ - supressError(boolean)
44
+ - Suppress error and return onError object if the request fails
45
+ - search_args(object)
46
+ - Additional search parameters to pass to the Brave Search API. See https://api-dashboard.search.brave.com/app/documentation/web-search/query
33
47
 
34
48
  ```typescript
35
49
  {
@@ -62,7 +62,7 @@ const braveSearchAgent = async ({ namedInputs, params, config, }) => {
62
62
  onError: {
63
63
  message: `Brave Search HTTP error: ${status}`,
64
64
  status,
65
- error
65
+ error,
66
66
  },
67
67
  };
68
68
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphai/brave_search_agent",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "An agent that uses the Brave Search API",
5
5
  "main": "lib/index.js",
6
6
  "files": [
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "homepage": "https://github.com/receptron/graphai-agents/blob/main/net/brave_search_agent/README.md",
29
29
  "devDependencies": {
30
- "undici": "^6.21.1"
30
+ "undici": "^7.21.0"
31
31
  },
32
32
  "types": "./lib/index.d.ts",
33
33
  "directories": {