Add shared services and tools for agent development#2
Merged
Conversation
Copilot
AI
changed the title
[WIP] feat: shared services and tools + CI + smoke tests
Add shared services and tools for agent development
Aug 31, 2025
JavaDerek
approved these changes
Aug 31, 2025
JavaDerek
approved these changes
Aug 31, 2025
JavaDerek
added a commit
that referenced
this pull request
Sep 5, 2025
…01a-6648cc8f46f6 Add shared services and tools for agent development
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR introduces a comprehensive set of shared services and reusable tools designed to support agent development across multiple projects. The implementation provides environment-aware service initialization, robust fallbacks for CI/testing, and a wide range of utility functions commonly needed in agent workflows.
New Services
Redis Service (
agent_core_utils/services/redis.py)REDIS_HOST,REDIS_PORT,REDIS_PASSWORD,REDIS_DB,REDIS_SSLLLM Service (
agent_core_utils/services/llm.py)OPENAI_API_KEY,OPENAI_MODEL,OPENAI_TEMPERATUREBrowser Service (
agent_core_utils/services/browser.py)BOBO_FORCE_DUMMY_BROWSER=1environment variableNew Tools
Database Tools (
agent_core_utils/tools/database.py)URL Utilities (
agent_core_utils/tools/url_utils.py)Reasoning Helpers (
agent_core_utils/tools/reasoning.py)Search Integration (
agent_core_utils/tools/search.py)Location Mathematics (
agent_core_utils/tools/location_math.py)SQL Generation (
agent_core_utils/tools/sql_generation.py)URL Classification (
agent_core_utils/tools/url_classification.py)Infrastructure Improvements
Dependencies
Updated
pyproject.tomlwith comprehensive dependency support:redis>=5.0.0for caching and state managementselenium>=4.23.1,beautifulsoup4>=4.12.3,lxml>=5.2.2httpx>=0.27.2,requests>=2.31.0google-search-results>=2.4.2for SerpAPI integrationwebdriver-manager>=4.0.2for automatic Chrome driver setupCI/CD Enhancements
mainandfeat/bobo-shared-apibranchesBOBO_FORCE_DUMMY_BROWSER=1ensures dummy drivers in CITesting
tests/test_smoke.py) validates core functionalityBackward Compatibility
All changes maintain backward compatibility with existing code:
initialize_llm_client()function is preserved and enhancedUsage Examples
This implementation provides a solid foundation for agent development with production-ready error handling, environment awareness, and comprehensive testing coverage.
This pull request was created as a result of the following prompt from Copilot chat.
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.