@mindstudio-ai/agent 0.1.102 → 0.1.103
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/dist/cli.js +14 -10
- package/dist/index.d.ts +14 -0
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/dist/postinstall.js +14 -10
- package/llms.txt +4 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -6121,6 +6121,8 @@ interface SearchGoogleStepInput {
|
|
|
6121
6121
|
dateRange?: "hour" | "day" | "week" | "month" | "year" | "any";
|
|
6122
6122
|
/** Number of results to return (1-100, default: 30) */
|
|
6123
6123
|
numResults?: number;
|
|
6124
|
+
/** Read the page content of the first N results in this same step (0-10, default 0 = off), rather than following up with a Scrape URL step per result. Each page is a full scrape, so this costs substantially more than the search alone. */
|
|
6125
|
+
fetchTopN?: number;
|
|
6124
6126
|
}
|
|
6125
6127
|
interface SearchGoogleStepOutput {
|
|
6126
6128
|
/** List of search result entries */
|
|
@@ -6131,7 +6133,17 @@ interface SearchGoogleStepOutput {
|
|
|
6131
6133
|
description: string;
|
|
6132
6134
|
/** URL of the search result page */
|
|
6133
6135
|
url: string;
|
|
6136
|
+
/** Page content, only present when fetchTopN covered this result */
|
|
6137
|
+
content?: string;
|
|
6134
6138
|
}[];
|
|
6139
|
+
/** Google's "People also ask" entries, when Google returned any */
|
|
6140
|
+
peopleAlsoAsk?: {
|
|
6141
|
+
question?: string;
|
|
6142
|
+
snippet?: string;
|
|
6143
|
+
link?: string;
|
|
6144
|
+
}[];
|
|
6145
|
+
/** Google's related-search suggestions, when Google returned any */
|
|
6146
|
+
relatedSearches?: string[];
|
|
6135
6147
|
}
|
|
6136
6148
|
interface SearchGoogleCalendarEventsStepInput {
|
|
6137
6149
|
/** Text search term */
|
|
@@ -9390,6 +9402,8 @@ interface StepMethods {
|
|
|
9390
9402
|
* - Defaults to us/english, but can optionally specify country and/or language.
|
|
9391
9403
|
* - Defaults to any time, but can optionally specify last hour, last day, week, month, or year.
|
|
9392
9404
|
* - Defaults to top 30 results, but can specify 1 to 100 results to return.
|
|
9405
|
+
* - Set fetchTopN to also read the page content of the first N results in the same step, instead of following up with a separate Scrape URL step per result. Costs meaningfully more (each page is a full scrape), so ask for the fewest you need.
|
|
9406
|
+
* - Also returns Google's "people also ask" and related searches when available, which are useful for choosing a follow-up query.
|
|
9393
9407
|
*
|
|
9394
9408
|
* @example
|
|
9395
9409
|
* ```typescript
|
package/dist/index.js
CHANGED
|
@@ -3175,9 +3175,13 @@ var stepMetadata = {
|
|
|
3175
3175
|
"searchGoogle": {
|
|
3176
3176
|
stepType: "searchGoogle",
|
|
3177
3177
|
description: "Search the web using Google and return structured results.",
|
|
3178
|
-
usageNotes:
|
|
3179
|
-
|
|
3180
|
-
|
|
3178
|
+
usageNotes: `- Defaults to us/english, but can optionally specify country and/or language.
|
|
3179
|
+
- Defaults to any time, but can optionally specify last hour, last day, week, month, or year.
|
|
3180
|
+
- Defaults to top 30 results, but can specify 1 to 100 results to return.
|
|
3181
|
+
- Set fetchTopN to also read the page content of the first N results in the same step, instead of following up with a separate Scrape URL step per result. Costs meaningfully more (each page is a full scrape), so ask for the fewest you need.
|
|
3182
|
+
- Also returns Google's "people also ask" and related searches when available, which are useful for choosing a follow-up query.`,
|
|
3183
|
+
inputSchema: { "type": "object", "properties": { "query": { "type": "string", "description": "The search query to send to Google" }, "exportType": { "enum": ["text", "json"], "type": "string", "description": 'Format for the variable value: "text" or "json"' }, "countryCode": { "type": "string", "description": "Google gl country code (defaults to US)" }, "languageCode": { "type": "string", "description": 'Google hl language code (defaults to "en")' }, "dateRange": { "enum": ["hour", "day", "week", "month", "year", "any"], "type": "string", "description": 'Time range filter: "hour", "day", "week", "month", "year", or "any"' }, "numResults": { "type": "number", "description": "Number of results to return (1-100, default: 30)" }, "fetchTopN": { "type": "number", "description": "Read the page content of the first N results in this same step (0-10, default 0 = off), rather than following up with a Scrape URL step per result. Each page is a full scrape, so this costs substantially more than the search alone." } }, "required": ["query", "exportType"] },
|
|
3184
|
+
outputSchema: { "type": "object", "properties": { "results": { "type": "array", "items": { "type": "object", "properties": { "title": { "type": "string", "description": "Title of the search result" }, "description": { "type": "string", "description": "Snippet/description of the search result" }, "url": { "type": "string", "description": "URL of the search result page" }, "content": { "type": "string", "description": "Page content, only present when fetchTopN covered this result" } }, "required": ["title", "description", "url"] }, "description": "List of search result entries" }, "peopleAlsoAsk": { "type": "array", "items": { "type": "object", "properties": { "question": { "type": "string" }, "snippet": { "type": "string" }, "link": { "type": "string" } } }, "description": `Google's "People also ask" entries, when Google returned any` }, "relatedSearches": { "type": "array", "items": { "type": "string" }, "description": "Google's related-search suggestions, when Google returned any" } }, "required": ["results"] }
|
|
3181
3185
|
},
|
|
3182
3186
|
"searchGoogleCalendarEvents": {
|
|
3183
3187
|
stepType: "searchGoogleCalendarEvents",
|