feat: support extractionGoal from portal in browser executor
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -82,7 +82,10 @@ async def execute_browser_scrape(job: dict, send_text, **_kwargs) -> dict:
|
||||
target_room = job["targetRoom"]
|
||||
config = job.get("config", {})
|
||||
url = config.get("url", "")
|
||||
extraction_goal = config.get("extractionGoal", "")
|
||||
goal = config.get("goal", config.get("query", f"Scrape content from {url}"))
|
||||
if extraction_goal:
|
||||
goal += f"\n\nExtract the following: {extraction_goal}"
|
||||
extraction_schema = config.get("extractionSchema")
|
||||
browser_profile = job.get("browserProfile")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user