cite-agent 1.3.4__tar.gz → 1.3.5__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of cite-agent might be problematic. Click here for more details.
- {cite_agent-1.3.4/cite_agent.egg-info → cite_agent-1.3.5}/PKG-INFO +1 -1
- cite_agent-1.3.5/cite_agent/__version__.py +1 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/cite_agent/enhanced_ai_agent.py +51 -3
- {cite_agent-1.3.4 → cite_agent-1.3.5/cite_agent.egg-info}/PKG-INFO +1 -1
- {cite_agent-1.3.4 → cite_agent-1.3.5}/setup.py +1 -1
- cite_agent-1.3.4/cite_agent/__version__.py +0 -1
- {cite_agent-1.3.4 → cite_agent-1.3.5}/LICENSE +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/MANIFEST.in +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/README.md +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/cite_agent/__init__.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/cite_agent/__main__.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/cite_agent/account_client.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/cite_agent/agent_backend_only.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/cite_agent/ascii_plotting.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/cite_agent/auth.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/cite_agent/backend_only_client.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/cite_agent/cli.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/cite_agent/cli_conversational.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/cite_agent/cli_enhanced.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/cite_agent/cli_workflow.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/cite_agent/dashboard.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/cite_agent/rate_limiter.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/cite_agent/session_manager.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/cite_agent/setup_config.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/cite_agent/streaming_ui.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/cite_agent/telemetry.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/cite_agent/ui.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/cite_agent/updater.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/cite_agent/web_search.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/cite_agent/workflow.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/cite_agent/workflow_integration.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/cite_agent.egg-info/SOURCES.txt +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/cite_agent.egg-info/dependency_links.txt +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/cite_agent.egg-info/entry_points.txt +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/cite_agent.egg-info/requires.txt +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/cite_agent.egg-info/top_level.txt +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/docs/BETA_LAUNCH_CHECKLIST.md +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/docs/BETA_RELEASE_CHECKLIST.md +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/docs/ENHANCED_CAPABILITIES.md +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/docs/GROQ_RATE_LIMITS.md +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/docs/INSTALL.md +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/docs/PUBLISHING_PYPI.md +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/docs/SECURE_PACKAGING_GUIDE.md +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/docs/SECURITY_AUDIT.md +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/docs/USER_GETTING_STARTED.md +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/docs/playbooks/BETA_LAUNCH_PLAYBOOK.md +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/requirements.txt +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/setup.cfg +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/src/__init__.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/src/services/__init__.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/src/services/auth_service/__init__.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/src/services/auth_service/auth_manager.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/src/services/graph/__init__.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/src/services/graph/knowledge_graph.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/src/services/llm_service/__init__.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/src/services/llm_service/llm_manager.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/src/services/paper_service/__init__.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/src/services/paper_service/openalex.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/src/services/performance_service/__init__.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/src/services/performance_service/rust_performance.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/src/services/research_service/__init__.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/src/services/research_service/chatbot.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/src/services/research_service/citation_manager.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/src/services/research_service/context_manager.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/src/services/research_service/conversation_manager.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/src/services/research_service/critical_paper_detector.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/src/services/research_service/enhanced_research.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/src/services/research_service/enhanced_synthesizer.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/src/services/research_service/query_generator.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/src/services/research_service/synthesizer.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/src/services/search_service/__init__.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/src/services/search_service/indexer.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/src/services/search_service/search_engine.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/src/services/simple_enhanced_main.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/tests/beta_launch_test_suite.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/tests/enhanced/test_account_client.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/tests/enhanced/test_archive_agent.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/tests/enhanced/test_enhanced_agent_runtime.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/tests/enhanced/test_reasoning_engine.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/tests/enhanced/test_setup_config.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/tests/enhanced/test_tool_framework.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/tests/integration_test.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/tests/test_truth_seeking_comprehensive.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/tests/validation/test_accuracy_system.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/tests/validation/test_agent_live.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/tests/validation/test_backend_local.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/tests/validation/test_cerebras_comparison.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/tests/validation/test_improved_prompt.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/tests/validation/test_qualitative_robustness.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/tests/validation/test_qualitative_system.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/tests/validation/test_truth_seeking_chinese.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/tests/validation/test_truth_seeking_comprehensive.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/tests/validation/test_truth_seeking_real.py +0 -0
- {cite_agent-1.3.4 → cite_agent-1.3.5}/tools/security_audit.py +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "1.3.5"
|
|
@@ -1698,10 +1698,58 @@ class EnhancedNocturnalAgent:
|
|
|
1698
1698
|
|
|
1699
1699
|
elif response.status == 503:
|
|
1700
1700
|
# Backend AI service temporarily unavailable (Cerebras/Groq rate limited)
|
|
1701
|
-
#
|
|
1701
|
+
# Auto-retry with exponential backoff
|
|
1702
|
+
max_retries = 3
|
|
1703
|
+
retry_delays = [5, 15, 30] # seconds
|
|
1704
|
+
|
|
1705
|
+
for retry_num in range(max_retries):
|
|
1706
|
+
delay = retry_delays[retry_num]
|
|
1707
|
+
print(f"\n⏳ Hit rate limit. Waiting {delay} seconds before retry {retry_num + 1}/{max_retries}...")
|
|
1708
|
+
|
|
1709
|
+
# Wait with countdown
|
|
1710
|
+
import asyncio
|
|
1711
|
+
for remaining in range(delay, 0, -1):
|
|
1712
|
+
print(f"\r⏱️ Retrying in {remaining}s...", end='', flush=True)
|
|
1713
|
+
await asyncio.sleep(1)
|
|
1714
|
+
print("\r🔄 Retrying now... ")
|
|
1715
|
+
|
|
1716
|
+
# Retry the request
|
|
1717
|
+
async with self.session.post(url, json=payload, headers=headers, timeout=60) as retry_response:
|
|
1718
|
+
if retry_response.status == 200:
|
|
1719
|
+
# Success after retry!
|
|
1720
|
+
data = await retry_response.json()
|
|
1721
|
+
response_text = data.get('response', '')
|
|
1722
|
+
tokens = data.get('tokens_used', 0)
|
|
1723
|
+
|
|
1724
|
+
all_tools = tools_used or []
|
|
1725
|
+
all_tools.append("backend_llm")
|
|
1726
|
+
|
|
1727
|
+
self.workflow.save_query_result(
|
|
1728
|
+
query=query,
|
|
1729
|
+
response=response_text,
|
|
1730
|
+
metadata={
|
|
1731
|
+
"tools_used": all_tools,
|
|
1732
|
+
"tokens_used": tokens,
|
|
1733
|
+
"model": data.get('model'),
|
|
1734
|
+
"provider": data.get('provider'),
|
|
1735
|
+
"retries": retry_num + 1
|
|
1736
|
+
}
|
|
1737
|
+
)
|
|
1738
|
+
|
|
1739
|
+
return ChatResponse(
|
|
1740
|
+
response=response_text,
|
|
1741
|
+
tokens_used=tokens,
|
|
1742
|
+
model_used=data.get('model'),
|
|
1743
|
+
sources=data.get('sources', [])
|
|
1744
|
+
)
|
|
1745
|
+
elif retry_response.status != 503:
|
|
1746
|
+
# Different error, stop retrying
|
|
1747
|
+
break
|
|
1748
|
+
|
|
1749
|
+
# All retries failed
|
|
1702
1750
|
return ChatResponse(
|
|
1703
|
-
response="
|
|
1704
|
-
error_message="Service temporarily unavailable"
|
|
1751
|
+
response="❌ Service still unavailable after retries. Please try again in a few minutes.",
|
|
1752
|
+
error_message="Service temporarily unavailable after retries"
|
|
1705
1753
|
)
|
|
1706
1754
|
|
|
1707
1755
|
elif response.status == 200:
|
|
@@ -7,7 +7,7 @@ long_description = readme_path.read_text() if readme_path.exists() else "Termina
|
|
|
7
7
|
|
|
8
8
|
setup(
|
|
9
9
|
name="cite-agent",
|
|
10
|
-
version="1.3.
|
|
10
|
+
version="1.3.5",
|
|
11
11
|
author="Cite-Agent Team",
|
|
12
12
|
author_email="contact@citeagent.dev",
|
|
13
13
|
description="Terminal AI assistant for academic research with citation verification",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "1.3.4"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{cite_agent-1.3.4 → cite_agent-1.3.5}/src/services/research_service/critical_paper_detector.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|