MCPcopy Create free account

hub / github.com/grapeot/devin.cursorrules / functions

Functions64 in github.com/grapeot/devin.cursorrules

↓ 15 callersFunctionquery_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 callersFunctioncreate_llm_client
(provider="openai")
tools/llm_api.py:68
↓ 8 callersFunctionvalidate_url
Validate if the given string is a valid URL.
tools/web_scraper.py:157
↓ 5 callersFunctionparse_html
Parse HTML content and extract text with hyperlinks in markdown format.
tools/web_scraper.py:39
↓ 4 callersFunctionsearch
Main search function that handles search with retry mechanism. Args: query (str): Search query max_results (int): Maximu
tools/search_engine.py:49
↓ 3 callersFunctionload_environment
Load environment variables from .env files in order of precedence
tools/llm_api.py:15
↓ 2 callersFunctionencode_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 callersFunctionfetch_page
Asynchronously fetch a webpage's content.
tools/web_scraper.py:23
↓ 2 callersFunctionprocess_element
Process an element and its children recursively.
tools/web_scraper.py:60
↓ 2 callersFunctionprocess_urls
Process multiple URLs concurrently.
tools/web_scraper.py:126
↓ 2 callersFunctiontake_screenshot_sync
Synchronous wrapper for take_screenshot.
tools/screenshot_utils.py:40
↓ 1 callersFunctionformat_results
Format and print search results.
tools/search_engine.py:41
↓ 1 callersFunctionis_llm_configured
Check if LLM is configured by trying to connect to the server
tests/test_llm_api.py:9
↓ 1 callersFunctionmain
()
tools/web_scraper.py:165
↓ 1 callersFunctionmain
()
tools/search_engine.py:67
↓ 1 callersFunctionmain
()
tools/llm_api.py:244
↓ 1 callersFunctionsearch_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 callersFunctionshould_skip_element
Check if the element should be skipped.
tools/web_scraper.py:49
↓ 1 callersFunctiontake_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
Methodload_dotenv_side_effect
(dotenv_path, **kwargs)
tests/test_llm_api.py:49
Methodmock_browser
Mock Playwright browser.
tests/test_screenshot_verification.py:27
Methodmock_context
Mock Playwright browser context.
tests/test_screenshot_verification.py:20
Methodmock_page
Mock Playwright page object.
tests/test_screenshot_verification.py:11
Methodmock_playwright
Mock Playwright instance.
tests/test_screenshot_verification.py:35
MethodsetUp
(self)
tests/test_search_engine.py:8
MethodsetUp
(self)
tests/test_llm_api.py:23
MethodsetUp
(self)
tests/test_llm_api.py:86
MethodsetUp
Set up test fixtures before each test method.
tests/test_web_scraper.py:27
MethodsetUpClass
Set up any necessary test fixtures.
tests/test_web_scraper.py:16
MethodtearDown
(self)
tests/test_search_engine.py:17
MethodtearDown
(self)
tests/test_llm_api.py:31
MethodtearDown
(self)
tests/test_llm_api.py:150
Methodtest_create_anthropic_client
(self, mock_anthropic)
tests/test_llm_api.py:201
Methodtest_create_azure_client
(self, mock_azure)
tests/test_llm_api.py:167
Methodtest_create_deepseek_client
(self, mock_openai)
tests/test_llm_api.py:179
Methodtest_create_gemini_client
(self, mock_genai)
tests/test_llm_api.py:209
Methodtest_create_invalid_provider
(self)
tests/test_llm_api.py:226
Methodtest_create_local_client
(self, mock_openai)
tests/test_llm_api.py:216
Methodtest_create_openai_client
(self, mock_openai)
tests/test_llm_api.py:155
Methodtest_create_siliconflow_client
(self, mock_openai)
tests/test_llm_api.py:190
Methodtest_environment_loading_no_files
(self, mock_load_dotenv, mock_exists)
tests/test_llm_api.py:75
Methodtest_environment_loading_precedence
(self, mock_open, mock_load_dotenv, mock_exists)
tests/test_llm_api.py:39
Methodtest_fetch_page
Test fetching a single page.
tests/test_web_scraper.py:90
Methodtest_llm_verification_anthropic
Test screenshot verification with Anthropic using mocks.
tests/test_screenshot_verification.py:101
Methodtest_llm_verification_openai
Test screenshot verification with OpenAI using mocks.
tests/test_screenshot_verification.py:75
Methodtest_no_results
(self, mock_ddgs)
tests/test_search_engine.py:69
Methodtest_parse_html
(self)
tests/test_web_scraper.py:44
Methodtest_process_urls
Test processing multiple URLs concurrently.
tests/test_web_scraper.py:98
Methodtest_query_anthropic
(self, mock_create_client)
tests/test_llm_api.py:281
Methodtest_query_azure
(self, mock_create_client)
tests/test_llm_api.py:244
Methodtest_query_deepseek
(self, mock_create_client)
tests/test_llm_api.py:256
Methodtest_query_error
(self, mock_create_client)
tests/test_llm_api.py:351
Methodtest_query_gemini
(self, mock_create_client)
tests/test_llm_api.py:294
Methodtest_query_local
(self, mock_create_client)
tests/test_llm_api.py:307
Methodtest_query_o1_model
(self, mock_create_client)
tests/test_llm_api.py:331
Methodtest_query_openai
(self, mock_create_client)
tests/test_llm_api.py:232
Methodtest_query_siliconflow
(self, mock_create_client)
tests/test_llm_api.py:268
Methodtest_query_with_custom_model
(self, mock_create_client)
tests/test_llm_api.py:319
Methodtest_query_with_existing_client
(self, mock_create_client)
tests/test_llm_api.py:344
Methodtest_result_field_fallbacks
(self)
tests/test_search_engine.py:98
Methodtest_screenshot_capture
Test screenshot capture functionality with mocked Playwright.
tests/test_screenshot_verification.py:42
Methodtest_search_error
(self, mock_ddgs)
tests/test_search_engine.py:85
Methodtest_successful_search
(self, mock_ddgs)
tests/test_search_engine.py:23
Methodtest_validate_url
(self)
tests/test_web_scraper.py:32