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
exportconstRAG_WEB_BROWSER_ADDITIONAL_DESC=`This tool provides general web browsing functionality, for specific sites like e-commerce, social media it is always better to search for a specific Actor`;
51
53
52
54
exportconstdefaults={
53
55
actors: [
54
-
ACTOR_RAG_WEB_BROWSER,
56
+
RAG_WEB_BROWSER,
55
57
],
56
58
};
57
59
58
-
exportconstACTOR_ADDITIONAL_INSTRUCTIONS='Never call/execute tool/Actor unless confirmed by the user.';
description: `This tool calls the Actor "${actorDefinitionPruned.actorFullName}" and retrieves its output results. Use this tool instead of the "${HelperTools.ACTOR_CALL}" if user requests to use this specific Actor.
179
-
Actor description: ${actorDefinitionPruned.description}
180
-
Instructions: ${ACTOR_ADDITIONAL_INSTRUCTIONS}`,
181
-
inputSchema: actorDefinitionPruned.input
182
-
// So Actor without input schema works - MCP client expects JSON schema valid output
returnbuildMCPResponse([`The scraping Actor (${ACTOR_RAG_WEB_BROWSER}) did not return any output for the URL: ${parsed.url}. Please check the Actor run for more details: ${run.id}`]);
71
+
returnbuildMCPResponse([`The scraping Actor (${RAG_WEB_BROWSER}) did not return any output for the URL: ${parsed.url}. Please check the Actor run for more details: ${run.id}`]);
returnbuildMCPResponse([`The scraping Actor (${ACTOR_RAG_WEB_BROWSER}) returned an HTTP status ${firstItem.crawl.httpStatusCode} (${firstItem.crawl.httpStatusMessage}) for the URL: ${parsed.url}. Please check the Actor run for more details: ${run.id}`]);
76
+
returnbuildMCPResponse([`The scraping Actor (${RAG_WEB_BROWSER}) returned an HTTP status ${firstItem.crawl.httpStatusCode} (${firstItem.crawl.httpStatusMessage}) for the URL: ${parsed.url}. Please check the Actor run for more details: ${run.id}`]);
77
77
}
78
78
79
79
if(!firstItem.html){
80
-
returnbuildMCPResponse([`The scraping Actor (${ACTOR_RAG_WEB_BROWSER}) did not return any HTML content for the URL: ${parsed.url}. Please check the Actor run for more details: ${run.id}`]);
80
+
returnbuildMCPResponse([`The scraping Actor (${RAG_WEB_BROWSER}) did not return any HTML content for the URL: ${parsed.url}. Please check the Actor run for more details: ${run.id}`]);
0 commit comments