firecrawl 1.16.0__tar.gz → 1.17.0__tar.gz

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.

Potentially problematic release.


This version of firecrawl might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: firecrawl
3
- Version: 1.16.0
3
+ Version: 1.17.0
4
4
  Summary: Python SDK for Firecrawl API
5
5
  Home-page: https://github.com/mendableai/firecrawl
6
6
  Author: Mendable.ai
@@ -13,7 +13,7 @@ import os
13
13
 
14
14
  from .firecrawl import FirecrawlApp # noqa
15
15
 
16
- __version__ = "1.16.0"
16
+ __version__ = "1.17.0"
17
17
 
18
18
  # Define the logger for the Firecrawl project
19
19
  logger: logging.Logger = logging.getLogger("firecrawl")
@@ -107,6 +107,7 @@ class FirecrawlApp:
107
107
  # Just for backwards compatibility
108
108
  enableWebSearch: Optional[bool] = False
109
109
  show_sources: Optional[bool] = False
110
+ agent: Optional[Dict[str, Any]] = None
110
111
 
111
112
 
112
113
 
@@ -183,8 +184,12 @@ class FirecrawlApp:
183
184
 
184
185
  # Include any other params directly at the top level of scrape_params
185
186
  for key, value in params.items():
186
- if key not in ['jsonOptions', 'changeTrackingOptions']:
187
+ if key not in ['jsonOptions', 'changeTrackingOptions', 'agent']:
187
188
  scrape_params[key] = value
189
+
190
+ agent = params.get('agent')
191
+ if agent:
192
+ scrape_params['agent'] = agent
188
193
 
189
194
 
190
195
  endpoint = f'/v1/scrape'
@@ -706,6 +711,9 @@ class FirecrawlApp:
706
711
  request_data['systemPrompt'] = params['system_prompt']
707
712
  elif params.get('systemPrompt'): # Check legacy field name
708
713
  request_data['systemPrompt'] = params['systemPrompt']
714
+
715
+ if params.get('agent'):
716
+ request_data['agent'] = params['agent']
709
717
 
710
718
  try:
711
719
  # Send the initial extract request
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: firecrawl
3
- Version: 1.16.0
3
+ Version: 1.17.0
4
4
  Summary: Python SDK for Firecrawl API
5
5
  Home-page: https://github.com/mendableai/firecrawl
6
6
  Author: Mendable.ai
File without changes
File without changes
File without changes
File without changes
File without changes