Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

fix(python-sdk/monitor): expose goal and judge_enabled in create/update

firecrawl-spring[bot]588feb78938f
diff --git a/apps/python-sdk/firecrawl/v2/client.py b/apps/python-sdk/firecrawl/v2/client.py
index 478eb2218..13ea6a4ed 100644
--- a/apps/python-sdk/firecrawl/v2/client.py
+++ b/apps/python-sdk/firecrawl/v2/client.py
@@ -842,6 +842,8 @@ class FirecrawlClient:
webhook: Optional[Union[MonitorWebhookConfig, Dict[str, Any]]] = None,
notification: Optional[MonitorNotification] = None,
retention_days: Optional[int] = None,
+ goal: Optional[str] = None,
+ judge_enabled: Optional[bool] = None,
) -> Monitor:
"""Create a scheduled monitor."""
if isinstance(schedule, dict):
@@ -853,6 +855,8 @@ class FirecrawlClient:
webhook=webhook,
notification=notification,
retention_days=retention_days,
+ goal=goal,
+ judge_enabled=judge_enabled,
)
return monitor_module.create_monitor(self.http_client, request)
@@ -880,6 +884,8 @@ class FirecrawlClient:
notification: Optional[Union[MonitorNotification, Dict[str, Any]]] = None,
targets: Optional[List[Union[MonitorTarget, Dict[str, Any]]]] = None,
retention_days: Optional[int] = None,
+ goal: Optional[str] = None,
+ judge_enabled: Optional[bool] = None,
) -> Monitor:
"""Update a monitor."""
if isinstance(schedule, dict):
@@ -892,6 +898,8 @@ class FirecrawlClient:
notification=notification,
targets=targets,
retention_days=retention_days,
+ goal=goal,
+ judge_enabled=judge_enabled,
)
return monitor_module.update_monitor(self.http_client, monitor_id, request)
diff --git a/apps/python-sdk/firecrawl/v2/client_async.py b/apps/python-sdk/firecrawl/v2/client_async.py
index 3ab811494..528b78f4f 100644
--- a/apps/python-sdk/firecrawl/v2/client_async.py
+++ b/apps/python-sdk/firecrawl/v2/client_async.py
@@ -401,6 +401,8 @@ class AsyncFirecrawlClient:
webhook: Optional[Union[MonitorWebhookConfig, Dict[str, Any]]] = None,
notification: Optional[MonitorNotification] = None,
retention_days: Optional[int] = None,
+ goal: Optional[str] = None,
+ judge_enabled: Optional[bool] = None,
) -> Monitor:
if isinstance(schedule, dict):
schedule = MonitorSchedule(**schedule)
@@ -411,6 +413,8 @@ class AsyncFirecrawlClient:
webhook=webhook,
notification=notification,
retention_days=retention_days,
+ goal=goal,
+ judge_enabled=judge_enabled,
)
return await async_monitor.create_monitor(self.async_http_client, request)
@@ -440,6 +444,8 @@ class AsyncFirecrawlClient:
notification: Optional[Union[MonitorNotification, Dict[str, Any]]] = None,
targets: Optional[List[Union[MonitorTarget, Dict[str, Any]]]] = None,
retention_days: Optional[int] = None,
+ goal: Optional[str] = None,
+ judge_enabled: Optional[bool] = None,
) -> Monitor:
if isinstance(schedule, dict):
schedule = MonitorSchedule(**schedule)
@@ -451,6 +457,8 @@ class AsyncFirecrawlClient:
notification=notification,
targets=targets,
retention_days=retention_days,
+ goal=goal,
+ judge_enabled=judge_enabled,
)
return await async_monitor.update_monitor(
self.async_http_client,