Skip to content

Conversation

@maksimov-m
Copy link
Collaborator

Доработал ошибку, которая возникала при окончании работы агента
Добавил скрипт для прогонки бенчмарка simpleqa

vakovalskii and others added 30 commits October 7, 2025 21:42
#40)

* Add Confluence tools integration with search and page retrieval capabilities

* fix: address PR comments

- Replace redmadrobot.com with yourcompany.com
- Remove CORS middleware
- Remove SmartPlatform from examples
- Remove search_duration from output
- Remove hardcoded space keys
- Change page_id type to int

* refactor: remove redundant page_id validation

Since page_id is now an int with gt=0 validation in Pydantic model,
we don't need to check isdigit() anymore

* deps: add beautifulsoup4 for Confluence HTML parsing

* style: fix pre-commit issues

* Remove CORS middleware comment from endpoints.py

Removed commented-out CORS middleware section.

---------

Co-authored-by: Valerii Kovalskii <vakovalskii@users.noreply.github.com>
Co-authored-by: Lysenko Artem <34771157+virrius@users.noreply.github.com>
- Add ExtractPageContentTool for deep content extraction from URLs via Tavily Extract API
- Simplify WebSearchTool to return only titles, links and 100-char snippets
- Optimize prompt caching: static system prompt (97%+ cache hit rate)
- Move dynamic data (date) into user messages per Anthropic best practices
- Extract all prompt templates to separate files for easier management
- Fix ConfluenceVectorSearchTool naming (remove hardcoded tool_name)
- Fix source management: ExtractPageContentTool now updates existing sources instead of overwriting
- Improve system prompt: list all tools with real class names
- Add ISO date format for better model understanding

Result: 90% cost reduction on input tokens + 80% latency improvement
- Make _log_reasoning accept any BaseTool, not just ReasoningTool
- Add specific handling for ReasoningTool vs other tools
- Fix _reasoning_phase to only provide ReasoningTool in tools list
- Prevents AttributeError when model unexpectedly returns ClarificationTool

Fixes: 'ClarificationTool' object has no attribute 'remaining_steps'
…/disable config

- Remove SmartPlatformConfig and all Smart Platform related code
- Remove ConfluenceVectorSearchTool and vector search functionality
- Add 'enabled' field to ConfluenceConfig for conditional tool loading
- Update research.py to check confluence.enabled before loading tools
- Remove project-specific few-shot examples from system prompt
- Update citation examples to be more generic
- Clean up Confluence space references in prompts
@virrius virrius merged commit 7ec4666 into main Oct 20, 2025
1 check passed
@virrius virrius deleted the benchmark_simpleqa branch October 20, 2025 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants