You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
consttextContent=`You can use the Apify docs fetch tool to retrieve the full content of a document by its URL. The document fragment refers to the section of the content containing the relevant part for the search result item.
82
+
constinstructions=`You can use the Apify docs fetch tool to retrieve the full content of a document by its URL. The document fragment refers to the section of the content containing the relevant part for the search result item.
instructions: `You can use the Apify docs fetch tool to retrieve the full content of a document by its URL. The document fragment refers to the section of the content containing the relevant part for the search result item.`,
returnbuildMCPResponse({texts: [`No Actors were found for the search query "${parsed.keywords}".
149
-
Please try different keywords or simplify your query. Consider using more specific platform names (e.g., "Instagram", "Twitter") and data types (e.g., "posts", "products") rather than generic terms like "scraper" or "crawler".`]});
148
+
constinstructions=`No Actors were found for the search query "${parsed.keywords}".
149
+
Try a different query with different keywords, or adjust the limit and offset parameters.
150
+
You can also try using more specific or alternative keywords related to your search topic.`;
- **Number of Actors found:** ${actorCards.length}
@@ -165,16 +173,15 @@ Returns list of Actor cards with the following info:
165
173
166
174
If you need more detailed information about any of these Actors, including their input schemas and usage instructions, please use the ${HelperTools.ACTOR_GET_DETAILS} tool with the specific Actor name.
167
175
If the search did not return relevant results, consider refining your keywords, use broader terms or removing less important words from the keywords.
168
-
`];
176
+
`;
169
177
170
178
conststructuredContent={
171
179
actors: structuredActorCards,
172
180
query: parsed.keywords,
173
181
count: actorCards.length,
174
-
instructions: `If you need more detailed information about any of these Actors, including their input schemas and usage instructions, please use the ${HelperTools.ACTOR_GET_DETAILS} tool with the specific Actor name.
175
-
If the search did not return relevant results, consider refining your keywords, use broader terms or removing less important words from the keywords.`,
0 commit comments