Skip to content

Instantly share code, notes, and snippets.

@EvilFreelancer
Created January 25, 2026 20:56
Show Gist options
  • Select an option

  • Save EvilFreelancer/c0505674dfdc92e0e8d4fa00fa350827 to your computer and use it in GitHub Desktop.

Select an option

Save EvilFreelancer/c0505674dfdc92e0e8d4fa00fa350827 to your computer and use it in GitHub Desktop.
sgr log
(.venv) pasha@pasha-lt:~/Repository/sgr/sgr-agent-core$ python ./sgr_agent_core/server/__main__.py --config-file ./examples/sgr_deep_research/config.yaml
/storage/Repository/sgr/sgr-agent-core/.venv/lib/python3.13/site-packages/websockets/legacy/__init__.py:6: DeprecationWarning: websockets.legacy is deprecated; see https://websockets.readthedocs.io/en/stable/howto/upgrade.html for upgrade instructions
warnings.warn( # deprecated in 14.0 - 2024-11-09
/storage/Repository/sgr/sgr-agent-core/.venv/lib/python3.13/site-packages/uvicorn/protocols/websockets/websockets_impl.py:17: DeprecationWarning: websockets.server.WebSocketServerProtocol is deprecated
from websockets.server import WebSocketServerProtocol
INFO: Started server process [65525]
INFO: Waiting for application startup.
2026-01-25 23:24:41,450 - sgr_agent_core.server.app - 18 - INFO - Tool registered: FinalAnswerTool
2026-01-25 23:24:41,464 - sgr_agent_core.server.app - 18 - INFO - Tool registered: GeneratePlanTool
2026-01-25 23:24:41,465 - sgr_agent_core.server.app - 18 - INFO - Tool registered: CreateReportTool
2026-01-25 23:24:41,465 - sgr_agent_core.server.app - 18 - INFO - Tool registered: ExtractPageContentTool
2026-01-25 23:24:41,465 - sgr_agent_core.server.app - 18 - INFO - Tool registered: WebSearchTool
2026-01-25 23:24:41,465 - sgr_agent_core.server.app - 18 - INFO - Tool registered: AdaptPlanTool
2026-01-25 23:24:41,465 - sgr_agent_core.server.app - 18 - INFO - Tool registered: ClarificationTool
2026-01-25 23:24:41,465 - sgr_agent_core.server.app - 18 - INFO - Tool registered: NextStepToolStub
2026-01-25 23:24:41,465 - sgr_agent_core.server.app - 20 - INFO - Agent registered: SGRToolCallingAgent
2026-01-25 23:24:41,465 - sgr_agent_core.server.app - 20 - INFO - Agent registered: SGRAgent
2026-01-25 23:24:41,465 - sgr_agent_core.server.app - 20 - INFO - Agent registered: ResearchSGRToolCallingAgent
2026-01-25 23:24:41,465 - sgr_agent_core.server.app - 20 - INFO - Agent registered: ResearchSGRAgent
2026-01-25 23:24:41,465 - sgr_agent_core.server.app - 20 - INFO - Agent registered: ToolCallingAgent
2026-01-25 23:24:41,465 - sgr_agent_core.server.app - 20 - INFO - Agent registered: ResearchToolCallingAgent
2026-01-25 23:24:41,465 - sgr_agent_core.server.app - 22 - INFO - Agent definition loaded: AgentDefinition(name='sgr_agent', base_class=ResearchSGRAgent, tools=['web_search_tool', 'extract_page_content_tool', 'create_report_tool', 'final_answer_tool', 'clarification_tool', 'generate_plan_tool', 'adapt_plan_tool'], execution=max_clarifications=3 max_iterations=10 mcp_context_limit=15000 logs_dir='logs' reports_dir='reports'),
2026-01-25 23:24:41,465 - sgr_agent_core.server.app - 22 - INFO - Agent definition loaded: AgentDefinition(name='tool_calling_agent', base_class=ResearchToolCallingAgent, tools=['web_search_tool', 'extract_page_content_tool', 'create_report_tool', 'final_answer_tool', 'clarification_tool', 'generate_plan_tool', 'adapt_plan_tool'], execution=max_clarifications=3 max_iterations=10 mcp_context_limit=15000 logs_dir='logs' reports_dir='reports'),
2026-01-25 23:24:41,466 - sgr_agent_core.server.app - 22 - INFO - Agent definition loaded: AgentDefinition(name='sgr_tool_calling_agent', base_class=ResearchSGRToolCallingAgent, tools=['web_search_tool', 'extract_page_content_tool', 'create_report_tool', 'final_answer_tool', 'clarification_tool', 'reasoning_tool', 'generate_plan_tool', 'adapt_plan_tool'], execution=max_clarifications=3 max_iterations=10 mcp_context_limit=15000 logs_dir='logs' reports_dir='reports'),
INFO: Application startup complete.
INFO: Uvicorn running on http://0.0.0.0:8010 (Press CTRL+C to quit)
2026-01-25 23:37:49,185 - sgr_agent_core.services.mcp_service - 48 - INFO - Built MCP Tool: read_wiki_structure
2026-01-25 23:37:49,186 - sgr_agent_core.services.mcp_service - 48 - INFO - Built MCP Tool: read_wiki_contents
2026-01-25 23:37:49,187 - sgr_agent_core.services.mcp_service - 48 - INFO - Built MCP Tool: ask_question
2026-01-25 23:37:49,187 - sgr_agent_core.services.mcp_service - 50 - INFO - Built 3 MCP tools.
2026-01-25 23:37:49,360 - sgr_agent_core.agent_factory - 187 - INFO - Created agent 'sgr_agent' using base class 'ResearchSGRAgent' with 10 tools
2026-01-25 23:37:49,360 - sgr_agent_core.server.endpoints - 134 - INFO - Created agent 'sgr_agent' with 1 messages
2026-01-25 23:37:49,360 - sgr_agent_core.agents.sgr_agent_910926cc-999b-4797-a189-5db1aa84c761 - 212 - INFO - πŸš€ User provided 1 messages.
2026-01-25 23:37:49,360 - sgr_agent_core.agents.sgr_agent_910926cc-999b-4797-a189-5db1aa84c761 - 216 - INFO - Step 1 started
INFO: 127.0.0.1:37418 - "POST /v1/chat/completions HTTP/1.1" 200 OK
2026-01-25 23:37:55,842 - sgr_agent_core.agents.sgr_agent_910926cc-999b-4797-a189-5db1aa84c761 - 74 - INFO -
###############################################
πŸ€– LLM RESPONSE DEBUG:
🧠 Reasoning Steps: ['Identified the need to research the prices of the 2025 BMW X6 in Russia.', 'Formulated a search query to find current pricing information for the 2025 BMW X6 in Russia.', 'Conducted a web search for relevant and up-to-date information.']
πŸ“Š Current Situation: 'I need to find the latest prices for the 2025 BMW X6 in Russia, as the user requested this specific information....'
πŸ“‹ Plan Status: 'The initial plan is to search for current pricing information....'
πŸ” Searches Done: 0
πŸ” Clarifications Done: 0
βœ… Enough Data: False
πŸ“ Remaining Steps: ['Conduct a web search for 2025 BMW X6 prices in Russia.', 'Extract relevant pricing information from the search results.', 'Compile the findings into a comprehensive report.']
🏁 Task Completed: False
➑ Next Step: Conduct a web search for 2025 BMW X6 prices in Russia.
###############################################
2026-01-25 23:37:55,842 - sgr_agent_core.tools.web_search_tool - 58 - INFO - πŸ” Search query: '2025 BMW X6 prices in Russia'
2026-01-25 23:37:55,843 - sgr_agent_core.services.tavily_search - 42 - INFO - πŸ” Tavily search: '2025 BMW X6 prices in Russia' (max_results=5)
2026-01-25 23:37:57,243 - sgr_agent_core.agents.sgr_agent_910926cc-999b-4797-a189-5db1aa84c761 - 99 - INFO -
###############################################
πŸ›  TOOL EXECUTION DEBUG:
πŸ”§ Tool Name: websearchtool
πŸ“‹ Tool Model: {
"tool_name_discriminator": "websearchtool",
"reasoning": "To find the latest pricing information for the 2025 BMW X6 in Russia, as it is necessary for the user's request.",
"query": "2025 BMW X6 prices in Russia",
"max_results": 5
}
πŸ” Result: 'Search Query: 2025 BMW X6 prices in Russia
Search Results (titles, links, short snippets):
[1] BMW X6 2025 Price In Russia , Features And Specs - https://www.ccarprice.com/ru/bmw-x6-2025-price-in-russia-20646
Find and Compare Change Country. * BMW X6 2025 Price in Russia. # BMW X6 2025. Price in β‚½: Β  5,736,5...
[2] BMW X6 XDrive40i 2025 Price In Russia , Features And ... - https://www.ccarprice...'
###############################################
2026-01-25 23:37:57,243 - sgr_agent_core.agents.sgr_agent_910926cc-999b-4797-a189-5db1aa84c761 - 216 - INFO - Step 2 started
2026-01-25 23:38:01,949 - sgr_agent_core.agents.sgr_agent_910926cc-999b-4797-a189-5db1aa84c761 - 74 - INFO -
###############################################
πŸ€– LLM RESPONSE DEBUG:
🧠 Reasoning Steps: ['Conducted a web search for the 2025 BMW X6 prices in Russia.', 'Collected relevant snippets from multiple sources regarding the pricing of the BMW X6.']
πŸ“Š Current Situation: 'The search results indicate various prices for the 2025 BMW X6 in Russia, with specific models and their respective costs....'
πŸ“‹ Plan Status: 'The search for pricing information is ongoing....'
πŸ” Searches Done: 1
πŸ” Clarifications Done: 0
βœ… Enough Data: False
πŸ“ Remaining Steps: ['Extract detailed content from the most relevant URLs to gather comprehensive pricing information.', 'Compile the findings into a structured report.']
🏁 Task Completed: False
➑ Next Step: Extract detailed content from the most relevant URLs to gather comprehensive pricing information.
###############################################
2026-01-25 23:38:01,950 - sgr_agent_core.tools.extract_page_content_tool - 41 - INFO - πŸ“„ Extracting content from 2 URLs
2026-01-25 23:38:01,950 - sgr_agent_core.services.tavily_search - 64 - INFO - πŸ“„ Tavily extract: 2 URLs
2026-01-25 23:38:07,486 - sgr_agent_core.agents.sgr_agent_910926cc-999b-4797-a189-5db1aa84c761 - 99 - INFO -
###############################################
πŸ›  TOOL EXECUTION DEBUG:
πŸ”§ Tool Name: extractpagecontenttool
πŸ“‹ Tool Model: {
"tool_name_discriminator": "extractpagecontenttool",
"reasoning": "To gather detailed pricing information from the most relevant sources found in the search results.",
"urls": [
"https://www.ccarprice.com/ru/bmw-x6-2025-price-in-russia-20646",
"https://www.ccarprice.com/ru/bmw-x6-xdrive40i-2025-price-in-russia-22553"
]
}
πŸ” Result: 'Extracted Page Content:
[1] BMW X6 2025 Price In Russia , Features And Specs - https://www.ccarprice.com/ru/bmw-x6-2025-price-in-russia-20646
**Full Content:**
[Find and Compare](https://ccarprice.com/ru/advance-search.php) [Change Country](https://ccarprice.com/ "Car Prices")
* [Car Prices](https://ccarprice.com/ru/)
* [BMW Car Price](https://ccarprice.com/ru/bmw-car-prices-in-russia-2)
* BMW ...'
###############################################
2026-01-25 23:38:07,487 - sgr_agent_core.agents.sgr_agent_910926cc-999b-4797-a189-5db1aa84c761 - 216 - INFO - Step 3 started
2026-01-25 23:38:17,443 - sgr_agent_core.agents.sgr_agent_910926cc-999b-4797-a189-5db1aa84c761 - 74 - INFO -
###############################################
πŸ€– LLM RESPONSE DEBUG:
🧠 Reasoning Steps: ['Conducted a web search for 2025 BMW X6 prices in Russia.', 'Extracted detailed pricing information from relevant sources.']
πŸ“Š Current Situation: 'I have gathered detailed pricing information for the 2025 BMW X6 in Russia, including specific models and their features....'
πŸ“‹ Plan Status: 'The research plan is on track and has yielded relevant information....'
πŸ” Searches Done: 1
πŸ” Clarifications Done: 0
βœ… Enough Data: True
πŸ“ Remaining Steps: ['Create a comprehensive report summarizing the findings.']
🏁 Task Completed: False
➑ Next Step: Create a comprehensive report summarizing the findings.
###############################################
2026-01-25 23:38:17,444 - sgr_agent_core.tools.create_report_tool - 74 - INFO - πŸ“ CREATE REPORT FULL DEBUG:
🌍 Language Reference: 'Research BMW X6 2025 prices in Russia'
πŸ“Š Title: '2025 BMW X6 Prices in Russia'
πŸ” Reasoning: 'I am ready to create a report as I have sufficient data on the 2025 BMW X6 prices in Russia....'
πŸ“ˆ Confidence: high
πŸ“„ Content Preview: 'The 2025 BMW X6 is available in Russia with the following pricing details:
1. **BMW X6 (Base Model)**: The starting price is approximately **5,736,500 RUB** (around **$74,500 USD**) [1].
2. **BMW X6...'
πŸ“Š Words: 136, Sources: 5
πŸ’Ύ Saved: reports/20260125_233817_2025 BMW X6 Prices in Russia.md
2026-01-25 23:38:17,444 - sgr_agent_core.agents.sgr_agent_910926cc-999b-4797-a189-5db1aa84c761 - 99 - INFO -
###############################################
πŸ›  TOOL EXECUTION DEBUG:
πŸ”§ Tool Name: createreporttool
πŸ“‹ Tool Model: {
"tool_name_discriminator": "createreporttool",
"reasoning": "I am ready to create a report as I have sufficient data on the 2025 BMW X6 prices in Russia.",
"title": "2025 BMW X6 Prices in Russia",
"user_request_language_reference": "Research BMW X6 2025 prices in Russia",
"content": "The 2025 BMW X6 is available in Russia with the following pricing details:\n\n1. **BMW X6 (Base Model)**: The starting price is approximately **5,736,500 RUB** (around **$74,500 USD**) [1].\n\n2. **BMW X6 xDrive40i**: This model also has a price of **5,885,500 RUB** (approximately **$74,500 USD**) [2].\n\n### Specifications:\n- **Engine**: 3.0L Turbo Inline-6\n- **Power**: 375 hp @ 5200 rpm\n- **Torque**: 398 lb-ft\n- **Transmission**: 8-Speed Automatic\n- **Drive Type**: All-Wheel Drive\n- **Acceleration (0-100 km/h)**: 5.2 seconds\n\n### Features:\nThe X6 comes equipped with various features including:\n- Premium materials in the interior\n- Advanced technology such as Apple CarPlay and Android Auto\n- Safety features like adaptive cruise control and lane departure warning.\n\nOverall, the 2025 BMW X6 combines luxury, performance, and advanced technology, making it a competitive choice in the SUV market.",
"confidence": "high"
}
πŸ” Result: '{
"title": "2025 BMW X6 Prices in Russia",
"content": "The 2025 BMW X6 is available in Russia with the following pricing details:\n\n1. **BMW X6 (Base Model)**: The starting price is approximately **5,736,500 RUB** (around **$74,500 USD**) [1].\n\n2. **BMW X6 xDrive40i**: This model also has a price of **5,885,500 RUB** (approximately **$74,500 USD**) [2].\n\n### Specifications:\n- **Engine**:...'
###############################################
2026-01-25 23:38:17,444 - sgr_agent_core.agents.sgr_agent_910926cc-999b-4797-a189-5db1aa84c761 - 216 - INFO - Step 4 started
2026-01-25 23:38:26,962 - sgr_agent_core.agents.sgr_agent_910926cc-999b-4797-a189-5db1aa84c761 - 74 - INFO -
###############################################
πŸ€– LLM RESPONSE DEBUG:
🧠 Reasoning Steps: ['Conducted a web search for 2025 BMW X6 prices in Russia.', 'Extracted detailed pricing information from relevant sources.', 'Created a comprehensive report summarizing the findings.']
πŸ“Š Current Situation: 'I have gathered sufficient data on the 2025 BMW X6 prices in Russia and created a report....'
πŸ“‹ Plan Status: 'The current plan is complete and the report has been generated....'
πŸ” Searches Done: 1
πŸ” Clarifications Done: 0
βœ… Enough Data: True
πŸ“ Remaining Steps: ['Finalize the report and provide the answer to the user.']
🏁 Task Completed: True
➑ Next Step: Finalize the report and provide the answer to the user.
###############################################
2026-01-25 23:38:26,963 - sgr_agent_core.agents.sgr_agent_910926cc-999b-4797-a189-5db1aa84c761 - 99 - INFO -
###############################################
πŸ›  TOOL EXECUTION DEBUG:
πŸ”§ Tool Name: finalanswertool
πŸ“‹ Tool Model: {
"tool_name_discriminator": "finalanswertool",
"reasoning": "The task is complete as I have generated a detailed report on the 2025 BMW X6 prices in Russia.",
"completed_steps": [
"Conducted a web search for 2025 BMW X6 prices in Russia.",
"Extracted detailed content from relevant sources.",
"Created a comprehensive report summarizing the findings."
],
"answer": "The 2025 BMW X6 is available in Russia with the following pricing details:\n\n1. **BMW X6 (Base Model)**: The starting price is approximately **5,736,500 RUB** (around **$74,500 USD**) [1].\n\n2. **BMW X6 xDrive40i**: This model also has a price of **5,885,500 RUB** (approximately **$74,500 USD**) [2].\n\n### Specifications:\n- **Engine**: 3.0L Turbo Inline-6\n- **Power**: 375 hp @ 5200 rpm\n- **Torque**: 398 lb-ft\n- **Transmission**: 8-Speed Automatic\n- **Drive Type**: All-Wheel Drive\n- **Acceleration (0-100 km/h)**: 5.2 seconds\n\n### Features:\nThe X6 comes equipped with various features including:\n- Premium materials in the interior\n- Advanced technology such as Apple CarPlay and Android Auto\n- Safety features like adaptive cruise control and lane departure warning.\n\nOverall, the 2025 BMW X6 combines luxury, performance, and advanced technology, making it a competitive choice in the SUV market.",
"status": "completed"
}
πŸ” Result: '{
"tool_name_discriminator": "finalanswertool",
"reasoning": "The task is complete as I have generated a detailed report on the 2025 BMW X6 prices in Russia.",
"completed_steps": [
"Conducted a web search for 2025 BMW X6 prices in Russia.",
"Extracted detailed content from relevant sources.",
"Created a comprehensive report summarizing the findings."
],
"answer": "The 2025 BM...'
###############################################
^CINFO: Shutting down
INFO: Waiting for application shutdown.
INFO: Application shutdown complete.
INFO: Finished server process [65525]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment