Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/grapeot/devin.cursorrules
/ functions
Functions
64 in github.com/grapeot/devin.cursorrules
⨍
Functions
64
◇
Types & classes
5
↳
Endpoints
23
↓ 15 callers
Function
query_llm
Query an LLM with a prompt and optional image attachment. Args: prompt (str): The text prompt to send client: The LLM cl
tools/llm_api.py:124
↓ 11 callers
Function
create_llm_client
(provider="openai")
tools/llm_api.py:68
↓ 8 callers
Function
validate_url
Validate if the given string is a valid URL.
tools/web_scraper.py:157
↓ 5 callers
Function
parse_html
Parse HTML content and extract text with hyperlinks in markdown format.
tools/web_scraper.py:39
↓ 4 callers
Function
search
Main search function that handles search with retry mechanism. Args: query (str): Search query max_results (int): Maximu
tools/search_engine.py:49
↓ 3 callers
Function
load_environment
Load environment variables from .env files in order of precedence
tools/llm_api.py:15
↓ 2 callers
Function
encode_image_file
Encode an image file to base64 and determine its MIME type. Args: image_path (str): Path to the image file Returns:
tools/llm_api.py:49
↓ 2 callers
Function
fetch_page
Asynchronously fetch a webpage's content.
tools/web_scraper.py:23
↓ 2 callers
Function
process_element
Process an element and its children recursively.
tools/web_scraper.py:60
↓ 2 callers
Function
process_urls
Process multiple URLs concurrently.
tools/web_scraper.py:126
↓ 2 callers
Function
take_screenshot_sync
Synchronous wrapper for take_screenshot.
tools/screenshot_utils.py:40
↓ 1 callers
Function
format_results
Format and print search results.
tools/search_engine.py:41
↓ 1 callers
Function
is_llm_configured
Check if LLM is configured by trying to connect to the server
tests/test_llm_api.py:9
↓ 1 callers
Function
main
()
tools/web_scraper.py:165
↓ 1 callers
Function
main
()
tools/search_engine.py:67
↓ 1 callers
Function
main
()
tools/llm_api.py:244
↓ 1 callers
Function
search_with_retry
Search using DuckDuckGo and return results with URLs and text snippets. Args: query (str): Search query max_results (int
tools/search_engine.py:8
↓ 1 callers
Function
should_skip_element
Check if the element should be skipped.
tools/web_scraper.py:49
↓ 1 callers
Function
take_screenshot
Take a screenshot of a webpage using Playwright. Args: url (str): The URL to take a screenshot of output_path (str, opti
tools/screenshot_utils.py:9
Method
load_dotenv_side_effect
(dotenv_path, **kwargs)
tests/test_llm_api.py:49
Method
mock_browser
Mock Playwright browser.
tests/test_screenshot_verification.py:27
Method
mock_context
Mock Playwright browser context.
tests/test_screenshot_verification.py:20
Method
mock_page
Mock Playwright page object.
tests/test_screenshot_verification.py:11
Method
mock_playwright
Mock Playwright instance.
tests/test_screenshot_verification.py:35
Method
setUp
(self)
tests/test_search_engine.py:8
Method
setUp
(self)
tests/test_llm_api.py:23
Method
setUp
(self)
tests/test_llm_api.py:86
Method
setUp
Set up test fixtures before each test method.
tests/test_web_scraper.py:27
Method
setUpClass
Set up any necessary test fixtures.
tests/test_web_scraper.py:16
Method
tearDown
(self)
tests/test_search_engine.py:17
Method
tearDown
(self)
tests/test_llm_api.py:31
Method
tearDown
(self)
tests/test_llm_api.py:150
Method
test_create_anthropic_client
(self, mock_anthropic)
tests/test_llm_api.py:201
Method
test_create_azure_client
(self, mock_azure)
tests/test_llm_api.py:167
Method
test_create_deepseek_client
(self, mock_openai)
tests/test_llm_api.py:179
Method
test_create_gemini_client
(self, mock_genai)
tests/test_llm_api.py:209
Method
test_create_invalid_provider
(self)
tests/test_llm_api.py:226
Method
test_create_local_client
(self, mock_openai)
tests/test_llm_api.py:216
Method
test_create_openai_client
(self, mock_openai)
tests/test_llm_api.py:155
Method
test_create_siliconflow_client
(self, mock_openai)
tests/test_llm_api.py:190
Method
test_environment_loading_no_files
(self, mock_load_dotenv, mock_exists)
tests/test_llm_api.py:75
Method
test_environment_loading_precedence
(self, mock_open, mock_load_dotenv, mock_exists)
tests/test_llm_api.py:39
Method
test_fetch_page
Test fetching a single page.
tests/test_web_scraper.py:90
Method
test_llm_verification_anthropic
Test screenshot verification with Anthropic using mocks.
tests/test_screenshot_verification.py:101
Method
test_llm_verification_openai
Test screenshot verification with OpenAI using mocks.
tests/test_screenshot_verification.py:75
Method
test_no_results
(self, mock_ddgs)
tests/test_search_engine.py:69
Method
test_parse_html
(self)
tests/test_web_scraper.py:44
Method
test_process_urls
Test processing multiple URLs concurrently.
tests/test_web_scraper.py:98
Method
test_query_anthropic
(self, mock_create_client)
tests/test_llm_api.py:281
Method
test_query_azure
(self, mock_create_client)
tests/test_llm_api.py:244
Method
test_query_deepseek
(self, mock_create_client)
tests/test_llm_api.py:256
Method
test_query_error
(self, mock_create_client)
tests/test_llm_api.py:351
Method
test_query_gemini
(self, mock_create_client)
tests/test_llm_api.py:294
Method
test_query_local
(self, mock_create_client)
tests/test_llm_api.py:307
Method
test_query_o1_model
(self, mock_create_client)
tests/test_llm_api.py:331
Method
test_query_openai
(self, mock_create_client)
tests/test_llm_api.py:232
Method
test_query_siliconflow
(self, mock_create_client)
tests/test_llm_api.py:268
Method
test_query_with_custom_model
(self, mock_create_client)
tests/test_llm_api.py:319
Method
test_query_with_existing_client
(self, mock_create_client)
tests/test_llm_api.py:344
Method
test_result_field_fallbacks
(self)
tests/test_search_engine.py:98
Method
test_screenshot_capture
Test screenshot capture functionality with mocked Playwright.
tests/test_screenshot_verification.py:42
Method
test_search_error
(self, mock_ddgs)
tests/test_search_engine.py:85
Method
test_successful_search
(self, mock_ddgs)
tests/test_search_engine.py:23
Method
test_validate_url
(self)
tests/test_web_scraper.py:32