Spaces:
Running
Running
Merge pull request #72 from The-Obstacle-Is-The-Way/dev
Browse files## Summary
Merges dev → main with complete SPEC-07 + SPEC-08 implementation.
### Included:
- SPEC-07: LangGraph Cognitive Memory Architecture
- SPEC-08: Shared Memory Layer Integration
- CodeRabbit critical fixes (async add_evidence with proper deduplication)
- Security: CVE fixes for langgraph-checkpoint and urllib3
- CI hardening: Security scans now fail on vulnerabilities
All 178 tests pass. No known vulnerabilities.
- .github/workflows/ci.yml +0 -2
- Dockerfile +1 -0
- docs/bugs/ACTIVE_BUGS.md +12 -3
- docs/bugs/P3_ARCHITECTURAL_GAP_STRUCTURED_MEMORY.md +5 -3
- docs/specs/SPEC_07_LANGGRAPH_MEMORY_ARCH.md +86 -110
- docs/specs/SPEC_08_INTEGRATE_MEMORY_LAYER.md +308 -0
- pyproject.toml +8 -0
- src/agents/graph/__init__.py +1 -0
- src/agents/graph/nodes.py +352 -0
- src/agents/graph/state.py +71 -0
- src/agents/graph/workflow.py +95 -0
- src/agents/retrieval_agent.py +2 -8
- src/agents/state.py +42 -51
- src/agents/tools.py +23 -17
- src/app.py +1 -1
- src/orchestrators/advanced.py +2 -1
- src/orchestrators/factory.py +1 -1
- src/orchestrators/hierarchical.py +1 -1
- src/orchestrators/langgraph_orchestrator.py +135 -0
- src/orchestrators/simple.py +37 -40
- src/services/research_memory.py +133 -0
- tests/integration/graph/test_workflow.py +78 -0
- tests/unit/graph/test_nodes.py +93 -0
- tests/unit/graph/test_state.py +64 -0
- tests/unit/services/test_research_memory.py +118 -0
- tests/unit/test_ui_elements.py +13 -13
- uv.lock +438 -6
.github/workflows/ci.yml
CHANGED
|
@@ -40,11 +40,9 @@ jobs:
|
|
| 40 |
|
| 41 |
- name: Security scan with bandit
|
| 42 |
run: uv run bandit -r src -ll -q
|
| 43 |
-
continue-on-error: true # Don't fail CI, just report
|
| 44 |
|
| 45 |
- name: Dependency vulnerability audit
|
| 46 |
run: uv run pip-audit
|
| 47 |
-
continue-on-error: true # Informational - deps may have known issues
|
| 48 |
|
| 49 |
- name: Run tests with coverage
|
| 50 |
run: uv run pytest tests/unit/ -v --cov=src --cov-report=xml --cov-report=term-missing
|
|
|
|
| 40 |
|
| 41 |
- name: Security scan with bandit
|
| 42 |
run: uv run bandit -r src -ll -q
|
|
|
|
| 43 |
|
| 44 |
- name: Dependency vulnerability audit
|
| 45 |
run: uv run pip-audit
|
|
|
|
| 46 |
|
| 47 |
- name: Run tests with coverage
|
| 48 |
run: uv run pytest tests/unit/ -v --cov=src --cov-report=xml --cov-report=term-missing
|
Dockerfile
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
# Dockerfile for DeepBoner
|
|
|
|
| 2 |
FROM python:3.11-slim
|
| 3 |
|
| 4 |
# Set working directory
|
|
|
|
| 1 |
# Dockerfile for DeepBoner
|
| 2 |
+
# Build: 2025-11-29-v2 (force rebuild after orchestrator refactor)
|
| 3 |
FROM python:3.11-slim
|
| 4 |
|
| 5 |
# Set working directory
|
docs/bugs/ACTIVE_BUGS.md
CHANGED
|
@@ -10,13 +10,22 @@
|
|
| 10 |
|
| 11 |
## P3 - Architecture/Enhancement
|
| 12 |
|
| 13 |
-
### P3 - Missing Structured Cognitive Memory
|
| 14 |
**File:** `P3_ARCHITECTURAL_GAP_STRUCTURED_MEMORY.md`
|
| 15 |
**Spec:** [SPEC_07_LANGGRAPH_MEMORY_ARCH.md](../specs/SPEC_07_LANGGRAPH_MEMORY_ARCH.md)
|
|
|
|
| 16 |
|
| 17 |
**Problem:** AdvancedOrchestrator uses chat-based state (context drift on long runs).
|
| 18 |
-
**Solution:**
|
| 19 |
-
**Status:**
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
|
| 21 |
### P3 - Ephemeral Memory (No Persistence)
|
| 22 |
**File:** `P3_ARCHITECTURAL_GAP_EPHEMERAL_MEMORY.md`
|
|
|
|
| 10 |
|
| 11 |
## P3 - Architecture/Enhancement
|
| 12 |
|
| 13 |
+
### ~~P3 - Missing Structured Cognitive Memory~~ FIXED (Phase 1)
|
| 14 |
**File:** `P3_ARCHITECTURAL_GAP_STRUCTURED_MEMORY.md`
|
| 15 |
**Spec:** [SPEC_07_LANGGRAPH_MEMORY_ARCH.md](../specs/SPEC_07_LANGGRAPH_MEMORY_ARCH.md)
|
| 16 |
+
**PR:** [#72](https://github.com/The-Obstacle-Is-The-Way/DeepBoner/pull/72)
|
| 17 |
|
| 18 |
**Problem:** AdvancedOrchestrator uses chat-based state (context drift on long runs).
|
| 19 |
+
**Solution:** Implemented LangGraph StateGraph with explicit hypothesis/conflict tracking (`src/agents/graph`).
|
| 20 |
+
**Status:** ✅ Memory layer built. ⏳ Integration pending (SPEC_08).
|
| 21 |
+
|
| 22 |
+
### P1 - Memory Layer Not Integrated (Post-Hackathon)
|
| 23 |
+
**Issue:** [#73](https://github.com/The-Obstacle-Is-The-Way/DeepBoner/issues/73)
|
| 24 |
+
**Spec:** [SPEC_08_INTEGRATE_MEMORY_LAYER.md](../specs/SPEC_08_INTEGRATE_MEMORY_LAYER.md)
|
| 25 |
+
|
| 26 |
+
**Problem:** Structured memory (hypotheses, conflicts) is isolated in "God Mode" only.
|
| 27 |
+
**Solution:** Extract memory into shared service, integrate into Simple and Advanced modes.
|
| 28 |
+
**Status:** Spec written. Blocked until post-hackathon.
|
| 29 |
|
| 30 |
### P3 - Ephemeral Memory (No Persistence)
|
| 31 |
**File:** `P3_ARCHITECTURAL_GAP_EPHEMERAL_MEMORY.md`
|
docs/bugs/P3_ARCHITECTURAL_GAP_STRUCTURED_MEMORY.md
CHANGED
|
@@ -69,11 +69,13 @@ Based on [comprehensive analysis](https://latenode.com/blog/langgraph-multi-agen
|
|
| 69 |
### Target Architecture
|
| 70 |
|
| 71 |
```python
|
| 72 |
-
# src/agents/graph/state.py (
|
| 73 |
from typing import Annotated, TypedDict, Literal
|
| 74 |
import operator
|
|
|
|
|
|
|
| 75 |
|
| 76 |
-
class Hypothesis(
|
| 77 |
id: str
|
| 78 |
statement: str
|
| 79 |
status: Literal["proposed", "validating", "confirmed", "refuted"]
|
|
@@ -81,7 +83,7 @@ class Hypothesis(TypedDict):
|
|
| 81 |
supporting_evidence_ids: list[str]
|
| 82 |
contradicting_evidence_ids: list[str]
|
| 83 |
|
| 84 |
-
class Conflict(
|
| 85 |
id: str
|
| 86 |
description: str
|
| 87 |
source_a_id: str
|
|
|
|
| 69 |
### Target Architecture
|
| 70 |
|
| 71 |
```python
|
| 72 |
+
# src/agents/graph/state.py (IMPLEMENTED)
|
| 73 |
from typing import Annotated, TypedDict, Literal
|
| 74 |
import operator
|
| 75 |
+
from pydantic import BaseModel, Field
|
| 76 |
+
from langchain_core.messages import BaseMessage
|
| 77 |
|
| 78 |
+
class Hypothesis(BaseModel):
|
| 79 |
id: str
|
| 80 |
statement: str
|
| 81 |
status: Literal["proposed", "validating", "confirmed", "refuted"]
|
|
|
|
| 83 |
supporting_evidence_ids: list[str]
|
| 84 |
contradicting_evidence_ids: list[str]
|
| 85 |
|
| 86 |
+
class Conflict(BaseModel):
|
| 87 |
id: str
|
| 88 |
description: str
|
| 89 |
source_a_id: str
|
docs/specs/SPEC_07_LANGGRAPH_MEMORY_ARCH.md
CHANGED
|
@@ -120,26 +120,30 @@ Based on [comprehensive framework comparison](https://kanerika.com/blogs/langcha
|
|
| 120 |
from typing import Annotated, TypedDict, Literal
|
| 121 |
import operator
|
| 122 |
from langchain_core.messages import BaseMessage
|
|
|
|
| 123 |
|
| 124 |
|
| 125 |
-
class Hypothesis(
|
| 126 |
"""A research hypothesis with evidence tracking."""
|
| 127 |
-
id: str
|
| 128 |
-
statement: str
|
| 129 |
-
status: Literal["proposed", "validating", "confirmed", "refuted"]
|
| 130 |
-
|
| 131 |
-
|
| 132 |
-
|
|
|
|
|
|
|
|
|
|
| 133 |
|
| 134 |
|
| 135 |
-
class Conflict(
|
| 136 |
"""A detected contradiction between sources."""
|
| 137 |
-
id: str
|
| 138 |
-
description: str
|
| 139 |
-
source_a_id: str
|
| 140 |
-
source_b_id: str
|
| 141 |
-
status: Literal["open", "resolved"]
|
| 142 |
-
resolution: str | None
|
| 143 |
|
| 144 |
|
| 145 |
class ResearchState(TypedDict):
|
|
@@ -151,11 +155,12 @@ class ResearchState(TypedDict):
|
|
| 151 |
# Immutable context
|
| 152 |
query: str
|
| 153 |
|
| 154 |
-
# Cognitive state (
|
|
|
|
| 155 |
hypotheses: Annotated[list[Hypothesis], operator.add]
|
| 156 |
conflicts: Annotated[list[Conflict], operator.add]
|
| 157 |
|
| 158 |
-
# Evidence links (actual content in ChromaDB)
|
| 159 |
evidence_ids: Annotated[list[str], operator.add]
|
| 160 |
|
| 161 |
# Chat history (for LLM context)
|
|
@@ -169,90 +174,78 @@ class ResearchState(TypedDict):
|
|
| 169 |
|
| 170 |
### 4.2 Graph Nodes
|
| 171 |
|
| 172 |
-
Each node is
|
| 173 |
|
| 174 |
**File:** `src/agents/graph/nodes.py`
|
| 175 |
|
| 176 |
```python
|
| 177 |
"""Graph node implementations."""
|
| 178 |
-
from
|
| 179 |
-
from
|
| 180 |
-
from src.
|
| 181 |
-
from src.tools.
|
| 182 |
|
| 183 |
|
| 184 |
-
async def search_node(
|
|
|
|
|
|
|
| 185 |
"""Execute search across all sources.
|
| 186 |
|
| 187 |
-
|
|
|
|
| 188 |
"""
|
| 189 |
-
|
| 190 |
-
# Reuse existing tools
|
| 191 |
-
results = await asyncio.gather(
|
| 192 |
-
search_pubmed(query),
|
| 193 |
-
search_clinicaltrials(query),
|
| 194 |
-
search_europepmc(query),
|
| 195 |
-
)
|
| 196 |
-
new_evidence_ids = [...] # Store in ChromaDB, return IDs
|
| 197 |
return {
|
| 198 |
-
"evidence_ids":
|
| 199 |
-
"messages": [AIMessage(content=
|
| 200 |
}
|
| 201 |
|
| 202 |
|
| 203 |
-
async def judge_node(
|
|
|
|
|
|
|
| 204 |
"""Evaluate evidence and update hypothesis confidence.
|
| 205 |
|
| 206 |
-
|
| 207 |
"""
|
| 208 |
-
#
|
| 209 |
-
# If contradiction found: add to conflicts list
|
| 210 |
return {
|
| 211 |
-
"hypotheses":
|
| 212 |
-
"
|
| 213 |
-
"
|
| 214 |
}
|
| 215 |
|
| 216 |
|
| 217 |
-
async def resolve_node(
|
| 218 |
-
|
| 219 |
-
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
# For each conflict: search for decisive evidence or make judgment call
|
| 224 |
-
return {
|
| 225 |
-
"conflicts": resolved_conflicts,
|
| 226 |
-
"messages": [...],
|
| 227 |
-
}
|
| 228 |
-
|
| 229 |
|
| 230 |
-
async def synthesize_node(state: ResearchState) -> dict:
|
| 231 |
-
"""Generate final research report.
|
| 232 |
|
| 233 |
-
|
| 234 |
-
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
|
| 238 |
-
|
| 239 |
-
"next_step": "finish",
|
| 240 |
-
}
|
| 241 |
|
| 242 |
|
| 243 |
-
def supervisor_node(
|
| 244 |
-
|
|
|
|
|
|
|
| 245 |
|
| 246 |
This is the "brain" - uses LLM to decide next action
|
| 247 |
-
based on STRUCTURED STATE
|
| 248 |
"""
|
| 249 |
-
#
|
| 250 |
-
|
| 251 |
-
|
| 252 |
-
|
| 253 |
-
|
| 254 |
-
|
| 255 |
-
return {"next_step": decided_step, "iteration_count": state["iteration_count"] + 1}
|
| 256 |
```
|
| 257 |
|
| 258 |
### 4.3 Graph Definition
|
|
@@ -261,57 +254,40 @@ def supervisor_node(state: ResearchState) -> dict:
|
|
| 261 |
|
| 262 |
```python
|
| 263 |
"""LangGraph workflow definition."""
|
|
|
|
| 264 |
from langgraph.graph import StateGraph, END
|
| 265 |
-
from langgraph.
|
| 266 |
|
| 267 |
from src.agents.graph.state import ResearchState
|
| 268 |
-
from src.
|
| 269 |
-
|
| 270 |
-
judge_node,
|
| 271 |
-
resolve_node,
|
| 272 |
-
synthesize_node,
|
| 273 |
-
supervisor_node,
|
| 274 |
-
)
|
| 275 |
|
| 276 |
|
| 277 |
-
def create_research_graph(
|
|
|
|
|
|
|
|
|
|
|
|
|
| 278 |
"""Build the research state graph.
|
| 279 |
|
| 280 |
Args:
|
| 281 |
-
|
|
|
|
|
|
|
| 282 |
"""
|
| 283 |
graph = StateGraph(ResearchState)
|
| 284 |
|
| 285 |
-
#
|
| 286 |
-
|
| 287 |
-
|
| 288 |
-
|
| 289 |
-
graph.add_node("resolve", resolve_node)
|
| 290 |
-
graph.add_node("synthesize", synthesize_node)
|
| 291 |
-
|
| 292 |
-
# Define edges (supervisor routes based on state.next_step)
|
| 293 |
-
graph.add_edge("search", "supervisor")
|
| 294 |
-
graph.add_edge("judge", "supervisor")
|
| 295 |
-
graph.add_edge("resolve", "supervisor")
|
| 296 |
-
graph.add_edge("synthesize", END)
|
| 297 |
-
|
| 298 |
-
# Conditional routing from supervisor
|
| 299 |
-
graph.add_conditional_edges(
|
| 300 |
-
"supervisor",
|
| 301 |
-
lambda state: state["next_step"],
|
| 302 |
-
{
|
| 303 |
-
"search": "search",
|
| 304 |
-
"judge": "judge",
|
| 305 |
-
"resolve": "resolve",
|
| 306 |
-
"synthesize": "synthesize",
|
| 307 |
-
"finish": END,
|
| 308 |
-
},
|
| 309 |
-
)
|
| 310 |
|
| 311 |
-
#
|
| 312 |
-
graph.
|
|
|
|
|
|
|
| 313 |
|
| 314 |
-
|
| 315 |
```
|
| 316 |
|
| 317 |
### 4.4 Orchestrator Integration
|
|
|
|
| 120 |
from typing import Annotated, TypedDict, Literal
|
| 121 |
import operator
|
| 122 |
from langchain_core.messages import BaseMessage
|
| 123 |
+
from pydantic import BaseModel, Field
|
| 124 |
|
| 125 |
|
| 126 |
+
class Hypothesis(BaseModel):
|
| 127 |
"""A research hypothesis with evidence tracking."""
|
| 128 |
+
id: str = Field(description="Unique identifier for the hypothesis")
|
| 129 |
+
statement: str = Field(description="The hypothesis statement")
|
| 130 |
+
status: Literal["proposed", "validating", "confirmed", "refuted"] = Field(
|
| 131 |
+
default="proposed", description="Current validation status"
|
| 132 |
+
)
|
| 133 |
+
confidence: float = Field(default=0.0, ge=0.0, le=1.0, description="Confidence score (0.0-1.0)")
|
| 134 |
+
supporting_evidence_ids: list[str] = Field(default_factory=list)
|
| 135 |
+
contradicting_evidence_ids: list[str] = Field(default_factory=list)
|
| 136 |
+
reasoning: str | None = Field(default=None, description="Reasoning for current status")
|
| 137 |
|
| 138 |
|
| 139 |
+
class Conflict(BaseModel):
|
| 140 |
"""A detected contradiction between sources."""
|
| 141 |
+
id: str = Field(description="Unique identifier for the conflict")
|
| 142 |
+
description: str = Field(description="Description of the contradiction")
|
| 143 |
+
source_a_id: str = Field(description="ID of the first conflicting source")
|
| 144 |
+
source_b_id: str = Field(description="ID of the second conflicting source")
|
| 145 |
+
status: Literal["open", "resolved"] = Field(default="open")
|
| 146 |
+
resolution: str | None = Field(default=None, description="Resolution explanation if resolved")
|
| 147 |
|
| 148 |
|
| 149 |
class ResearchState(TypedDict):
|
|
|
|
| 155 |
# Immutable context
|
| 156 |
query: str
|
| 157 |
|
| 158 |
+
# Cognitive state (The "Blackboard")
|
| 159 |
+
# Note: We store these as lists of Pydantic models.
|
| 160 |
hypotheses: Annotated[list[Hypothesis], operator.add]
|
| 161 |
conflicts: Annotated[list[Conflict], operator.add]
|
| 162 |
|
| 163 |
+
# Evidence links (actual content stored in ChromaDB)
|
| 164 |
evidence_ids: Annotated[list[str], operator.add]
|
| 165 |
|
| 166 |
# Chat history (for LLM context)
|
|
|
|
| 174 |
|
| 175 |
### 4.2 Graph Nodes
|
| 176 |
|
| 177 |
+
Each node is an async function that receives the state and injected dependencies.
|
| 178 |
|
| 179 |
**File:** `src/agents/graph/nodes.py`
|
| 180 |
|
| 181 |
```python
|
| 182 |
"""Graph node implementations."""
|
| 183 |
+
from typing import Any
|
| 184 |
+
from langchain_core.messages import AIMessage
|
| 185 |
+
from src.services.embeddings import EmbeddingService
|
| 186 |
+
from src.tools.search_handler import SearchHandler
|
| 187 |
|
| 188 |
|
| 189 |
+
async def search_node(
|
| 190 |
+
state: ResearchState, embedding_service: EmbeddingService | None = None
|
| 191 |
+
) -> dict[str, Any]:
|
| 192 |
"""Execute search across all sources.
|
| 193 |
|
| 194 |
+
Uses SearchHandler to query PubMed, ClinicalTrials, and EuropePMC.
|
| 195 |
+
Deduplicates evidence using EmbeddingService.
|
| 196 |
"""
|
| 197 |
+
# ... implementation ...
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 198 |
return {
|
| 199 |
+
"evidence_ids": new_ids,
|
| 200 |
+
"messages": [AIMessage(content=message)],
|
| 201 |
}
|
| 202 |
|
| 203 |
|
| 204 |
+
async def judge_node(
|
| 205 |
+
state: ResearchState, embedding_service: EmbeddingService | None = None
|
| 206 |
+
) -> dict[str, Any]:
|
| 207 |
"""Evaluate evidence and update hypothesis confidence.
|
| 208 |
|
| 209 |
+
Uses pydantic_ai Agent to generate structured HypothesisAssessment.
|
| 210 |
"""
|
| 211 |
+
# ... implementation ...
|
|
|
|
| 212 |
return {
|
| 213 |
+
"hypotheses": new_hypotheses,
|
| 214 |
+
"messages": [AIMessage(content=f"Judge: Generated {len(new_hypotheses)} hypotheses.")],
|
| 215 |
+
"next_step": "resolve",
|
| 216 |
}
|
| 217 |
|
| 218 |
|
| 219 |
+
async def resolve_node(
|
| 220 |
+
state: ResearchState, embedding_service: EmbeddingService | None = None
|
| 221 |
+
) -> dict[str, Any]:
|
| 222 |
+
"""Handle open conflicts."""
|
| 223 |
+
# ... implementation ...
|
| 224 |
+
return {"messages": messages}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 225 |
|
|
|
|
|
|
|
| 226 |
|
| 227 |
+
async def synthesize_node(
|
| 228 |
+
state: ResearchState, embedding_service: EmbeddingService | None = None
|
| 229 |
+
) -> dict[str, Any]:
|
| 230 |
+
"""Generate final research report."""
|
| 231 |
+
# ... implementation ...
|
| 232 |
+
return {"messages": [AIMessage(content=report_markdown)], "next_step": "finish"}
|
|
|
|
|
|
|
| 233 |
|
| 234 |
|
| 235 |
+
async def supervisor_node(
|
| 236 |
+
state: ResearchState, llm: BaseChatModel | None = None
|
| 237 |
+
) -> dict[str, Any]:
|
| 238 |
+
"""Route to next node based on state using robust Pydantic parsing.
|
| 239 |
|
| 240 |
This is the "brain" - uses LLM to decide next action
|
| 241 |
+
based on STRUCTURED STATE.
|
| 242 |
"""
|
| 243 |
+
# ... implementation ...
|
| 244 |
+
return {
|
| 245 |
+
"next_step": decision.next_step,
|
| 246 |
+
"iteration_count": state["iteration_count"] + 1,
|
| 247 |
+
"messages": [AIMessage(content=f"Supervisor: {decision.reasoning}")],
|
| 248 |
+
}
|
|
|
|
| 249 |
```
|
| 250 |
|
| 251 |
### 4.3 Graph Definition
|
|
|
|
| 254 |
|
| 255 |
```python
|
| 256 |
"""LangGraph workflow definition."""
|
| 257 |
+
from functools import partial
|
| 258 |
from langgraph.graph import StateGraph, END
|
| 259 |
+
from langgraph.graph.state import CompiledStateGraph
|
| 260 |
|
| 261 |
from src.agents.graph.state import ResearchState
|
| 262 |
+
from src.services.embeddings import EmbeddingService
|
| 263 |
+
# ... imports ...
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 264 |
|
| 265 |
|
| 266 |
+
def create_research_graph(
|
| 267 |
+
llm=None,
|
| 268 |
+
checkpointer=None,
|
| 269 |
+
embedding_service: EmbeddingService | None = None,
|
| 270 |
+
) -> CompiledStateGraph:
|
| 271 |
"""Build the research state graph.
|
| 272 |
|
| 273 |
Args:
|
| 274 |
+
llm: Supervisor LLM
|
| 275 |
+
checkpointer: Optional persistence layer
|
| 276 |
+
embedding_service: Service for evidence storage
|
| 277 |
"""
|
| 278 |
graph = StateGraph(ResearchState)
|
| 279 |
|
| 280 |
+
# Bind dependencies using partial
|
| 281 |
+
bound_supervisor = partial(supervisor_node, llm=llm) if llm else supervisor_node
|
| 282 |
+
bound_search = partial(search_node, embedding_service=embedding_service)
|
| 283 |
+
# ... binding other nodes ...
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 284 |
|
| 285 |
+
# Add nodes
|
| 286 |
+
graph.add_node("supervisor", bound_supervisor)
|
| 287 |
+
graph.add_node("search", bound_search)
|
| 288 |
+
# ...
|
| 289 |
|
| 290 |
+
# ... edges ...
|
| 291 |
```
|
| 292 |
|
| 293 |
### 4.4 Orchestrator Integration
|
docs/specs/SPEC_08_INTEGRATE_MEMORY_LAYER.md
ADDED
|
@@ -0,0 +1,308 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# SPEC 08: Integrate Memory Layer into All Modes
|
| 2 |
+
|
| 3 |
+
**Status:** APPROVED
|
| 4 |
+
**Priority:** P1 (Post-Hackathon)
|
| 5 |
+
**Author:** Architecture Team
|
| 6 |
+
**Date:** 2025-11-29
|
| 7 |
+
**Depends On:** SPEC_07 (LangGraph Memory - IMPLEMENTED)
|
| 8 |
+
**Related Issue:** #73
|
| 9 |
+
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
## 1. Executive Summary
|
| 13 |
+
|
| 14 |
+
Integrate the structured memory layer (built in SPEC_07 as "God Mode") into Simple and Advanced modes. Remove the separate "God Mode" - memory becomes a shared capability, not a separate mode.
|
| 15 |
+
|
| 16 |
+
**Before (current - accidental):**
|
| 17 |
+
```
|
| 18 |
+
Simple Mode → No memory
|
| 19 |
+
Advanced Mode → Chat-based memory
|
| 20 |
+
God Mode → Structured memory ← ISOLATED
|
| 21 |
+
```
|
| 22 |
+
|
| 23 |
+
**After (target):**
|
| 24 |
+
```
|
| 25 |
+
Simple Mode → Structured memory ✓
|
| 26 |
+
Advanced Mode → Structured memory ✓
|
| 27 |
+
(God Mode removed from UI)
|
| 28 |
+
```
|
| 29 |
+
|
| 30 |
+
---
|
| 31 |
+
|
| 32 |
+
## 2. What SPEC_07 Built (Already Done)
|
| 33 |
+
|
| 34 |
+
| Component | File | Status |
|
| 35 |
+
|-----------|------|--------|
|
| 36 |
+
| `ResearchState` TypedDict | `src/agents/graph/state.py` | ✅ Done |
|
| 37 |
+
| `Hypothesis` model | `src/agents/graph/state.py` | ✅ Done |
|
| 38 |
+
| `Conflict` model | `src/agents/graph/state.py` | ✅ Done |
|
| 39 |
+
| `EmbeddingService` | `src/services/embeddings.py` | ✅ Done |
|
| 40 |
+
| Hypothesis conversion | `src/agents/graph/nodes.py` | ✅ Done |
|
| 41 |
+
|
| 42 |
+
**This is the memory layer. It works. We just need to wire it into Simple and Advanced modes.**
|
| 43 |
+
|
| 44 |
+
---
|
| 45 |
+
|
| 46 |
+
## 3. Integration Plan
|
| 47 |
+
|
| 48 |
+
### Phase 1: Create Shared Memory Service
|
| 49 |
+
|
| 50 |
+
Extract the memory logic from LangGraph nodes into a standalone service.
|
| 51 |
+
|
| 52 |
+
**New File:** `src/services/research_memory.py`
|
| 53 |
+
|
| 54 |
+
```python
|
| 55 |
+
"""Shared research memory layer for all orchestration modes."""
|
| 56 |
+
|
| 57 |
+
from typing import Literal
|
| 58 |
+
|
| 59 |
+
from src.agents.graph.state import Conflict, Hypothesis
|
| 60 |
+
from src.services.embeddings import EmbeddingService
|
| 61 |
+
from src.utils.models import Citation, Evidence
|
| 62 |
+
|
| 63 |
+
|
| 64 |
+
class ResearchMemory:
|
| 65 |
+
"""Shared cognitive state for research workflows.
|
| 66 |
+
|
| 67 |
+
This is the memory layer that ALL modes use.
|
| 68 |
+
It mimics the LangGraph state management but for manual orchestration.
|
| 69 |
+
"""
|
| 70 |
+
|
| 71 |
+
def __init__(self, query: str, embedding_service: EmbeddingService | None = None):
|
| 72 |
+
self.query = query
|
| 73 |
+
self.hypotheses: list[Hypothesis] = []
|
| 74 |
+
self.conflicts: list[Conflict] = []
|
| 75 |
+
self.evidence_ids: list[str] = []
|
| 76 |
+
self.iteration_count: int = 0
|
| 77 |
+
|
| 78 |
+
# Injected service
|
| 79 |
+
self._embedding_service = embedding_service or EmbeddingService()
|
| 80 |
+
|
| 81 |
+
async def store_evidence(self, evidence: list[Evidence]) -> list[str]:
|
| 82 |
+
"""Store evidence and return new IDs (deduped)."""
|
| 83 |
+
if not self._embedding_service:
|
| 84 |
+
return []
|
| 85 |
+
|
| 86 |
+
unique = await self._embedding_service.deduplicate(evidence)
|
| 87 |
+
new_ids = []
|
| 88 |
+
|
| 89 |
+
for ev in unique:
|
| 90 |
+
ev_id = ev.citation.url
|
| 91 |
+
await self._embedding_service.add_evidence(
|
| 92 |
+
evidence_id=ev_id,
|
| 93 |
+
content=ev.content,
|
| 94 |
+
metadata={
|
| 95 |
+
"source": ev.citation.source,
|
| 96 |
+
"title": ev.citation.title,
|
| 97 |
+
"date": ev.citation.date,
|
| 98 |
+
"authors": ",".join(ev.citation.authors or []),
|
| 99 |
+
"url": ev.citation.url,
|
| 100 |
+
},
|
| 101 |
+
)
|
| 102 |
+
new_ids.append(ev_id)
|
| 103 |
+
|
| 104 |
+
self.evidence_ids.extend(new_ids)
|
| 105 |
+
return new_ids
|
| 106 |
+
|
| 107 |
+
async def get_relevant_evidence(self, n: int = 20) -> list[Evidence]:
|
| 108 |
+
"""Retrieve relevant evidence for current query."""
|
| 109 |
+
if not self._embedding_service:
|
| 110 |
+
return []
|
| 111 |
+
|
| 112 |
+
results = await self._embedding_service.search_similar(self.query, n_results=n)
|
| 113 |
+
evidence_list = []
|
| 114 |
+
|
| 115 |
+
for r in results:
|
| 116 |
+
meta = r.get("metadata", {})
|
| 117 |
+
authors_str = meta.get("authors", "")
|
| 118 |
+
authors = authors_str.split(",") if authors_str else []
|
| 119 |
+
|
| 120 |
+
# Reconstruct Evidence object
|
| 121 |
+
# Note: SourceName validation might be needed, defaulting to 'web' or similar if unknown
|
| 122 |
+
source_raw = meta.get("source", "web")
|
| 123 |
+
|
| 124 |
+
citation = Citation(
|
| 125 |
+
source=source_raw, # type: ignore
|
| 126 |
+
title=meta.get("title", "Unknown"),
|
| 127 |
+
url=meta.get("url", r["id"]),
|
| 128 |
+
date=meta.get("date", "Unknown"),
|
| 129 |
+
authors=authors
|
| 130 |
+
)
|
| 131 |
+
|
| 132 |
+
evidence_list.append(Evidence(
|
| 133 |
+
content=r["content"],
|
| 134 |
+
citation=citation,
|
| 135 |
+
relevance=1.0 - r.get("distance", 0.5) # Approx conversion
|
| 136 |
+
))
|
| 137 |
+
|
| 138 |
+
return evidence_list
|
| 139 |
+
|
| 140 |
+
def add_hypothesis(self, hypothesis: Hypothesis) -> None:
|
| 141 |
+
"""Add a hypothesis to tracking."""
|
| 142 |
+
self.hypotheses.append(hypothesis)
|
| 143 |
+
|
| 144 |
+
def add_conflict(self, conflict: Conflict) -> None:
|
| 145 |
+
"""Add a detected conflict."""
|
| 146 |
+
self.conflicts.append(conflict)
|
| 147 |
+
|
| 148 |
+
def get_open_conflicts(self) -> list[Conflict]:
|
| 149 |
+
"""Get unresolved conflicts."""
|
| 150 |
+
return [c for c in self.conflicts if c.status == "open"]
|
| 151 |
+
|
| 152 |
+
def get_confirmed_hypotheses(self) -> list[Hypothesis]:
|
| 153 |
+
"""Get high-confidence hypotheses."""
|
| 154 |
+
return [h for h in self.hypotheses if h.confidence > 0.8]
|
| 155 |
+
```
|
| 156 |
+
|
| 157 |
+
### Phase 2: Integrate into Simple Mode
|
| 158 |
+
|
| 159 |
+
**File:** `src/orchestrators/simple.py`
|
| 160 |
+
|
| 161 |
+
```python
|
| 162 |
+
# Add to __init__
|
| 163 |
+
from src.services.research_memory import ResearchMemory
|
| 164 |
+
|
| 165 |
+
class Orchestrator:
|
| 166 |
+
def __init__(self, ...):
|
| 167 |
+
...
|
| 168 |
+
self._memory: ResearchMemory | None = None
|
| 169 |
+
|
| 170 |
+
async def run(self, query: str) -> AsyncGenerator[AgentEvent, None]:
|
| 171 |
+
# Initialize memory for this run
|
| 172 |
+
self._memory = ResearchMemory(query=query)
|
| 173 |
+
|
| 174 |
+
# In search phase:
|
| 175 |
+
new_ids = await self._memory.store_evidence(search_results.evidence)
|
| 176 |
+
|
| 177 |
+
# In judge phase:
|
| 178 |
+
relevant = await self._memory.get_relevant_evidence(n=30)
|
| 179 |
+
# ... existing judge logic, but now with memory context
|
| 180 |
+
|
| 181 |
+
# Track hypotheses from judge assessment
|
| 182 |
+
for h in assessment.details.drug_candidates:
|
| 183 |
+
self._memory.add_hypothesis(Hypothesis(
|
| 184 |
+
id=h,
|
| 185 |
+
statement=f"{h} identified as candidate",
|
| 186 |
+
status="proposed",
|
| 187 |
+
confidence=assessment.confidence,
|
| 188 |
+
))
|
| 189 |
+
```
|
| 190 |
+
|
| 191 |
+
### Phase 3: Integrate into Advanced Mode
|
| 192 |
+
|
| 193 |
+
**File:** `src/orchestrators/advanced.py`
|
| 194 |
+
|
| 195 |
+
```python
|
| 196 |
+
# Same pattern - inject ResearchMemory
|
| 197 |
+
# Agents read/write to shared memory instead of chat history
|
| 198 |
+
```
|
| 199 |
+
|
| 200 |
+
### Phase 4: Remove God Mode from UI
|
| 201 |
+
|
| 202 |
+
**File:** `src/app.py`
|
| 203 |
+
|
| 204 |
+
```python
|
| 205 |
+
# Before
|
| 206 |
+
mode = gr.Radio(
|
| 207 |
+
choices=["simple", "magentic", "god"],
|
| 208 |
+
...
|
| 209 |
+
)
|
| 210 |
+
|
| 211 |
+
# After
|
| 212 |
+
mode = gr.Radio(
|
| 213 |
+
choices=["simple", "magentic"],
|
| 214 |
+
...
|
| 215 |
+
)
|
| 216 |
+
# Memory is always enabled, not a mode choice
|
| 217 |
+
```
|
| 218 |
+
|
| 219 |
+
**File:** `src/orchestrators/factory.py`
|
| 220 |
+
|
| 221 |
+
```python
|
| 222 |
+
# Remove "god" and "langgraph" mode handling
|
| 223 |
+
# Keep LangGraphOrchestrator code for reference/future use
|
| 224 |
+
```
|
| 225 |
+
|
| 226 |
+
---
|
| 227 |
+
|
| 228 |
+
## 4. What Stays, What Goes
|
| 229 |
+
|
| 230 |
+
| Component | Action |
|
| 231 |
+
|-----------|--------|
|
| 232 |
+
| `src/agents/graph/state.py` | ✅ KEEP - Hypothesis/Conflict models |
|
| 233 |
+
| `src/agents/graph/nodes.py` | ⚠️ EXTRACT - Move memory logic to service |
|
| 234 |
+
| `src/agents/graph/workflow.py` | 📦 ARCHIVE - LangGraph routing (optional) |
|
| 235 |
+
| `src/orchestrators/langgraph_orchestrator.py` | 📦 ARCHIVE - Not needed if memory integrated |
|
| 236 |
+
| `src/services/research_memory.py` | ✨ NEW - Shared memory service |
|
| 237 |
+
|
| 238 |
+
---
|
| 239 |
+
|
| 240 |
+
## 5. Files to Modify
|
| 241 |
+
|
| 242 |
+
| File | Change |
|
| 243 |
+
|------|--------|
|
| 244 |
+
| `src/services/research_memory.py` | NEW - Extract from nodes.py |
|
| 245 |
+
| `src/orchestrators/simple.py` | Add memory integration |
|
| 246 |
+
| `src/orchestrators/advanced.py` | Add memory integration |
|
| 247 |
+
| `src/orchestrators/factory.py` | Remove "god" mode |
|
| 248 |
+
| `src/app.py` | Remove God Mode from dropdown |
|
| 249 |
+
| `tests/unit/services/test_research_memory.py` | NEW - Test memory service |
|
| 250 |
+
|
| 251 |
+
---
|
| 252 |
+
|
| 253 |
+
## 6. Acceptance Criteria
|
| 254 |
+
|
| 255 |
+
- [ ] `ResearchMemory` service extracted and tested
|
| 256 |
+
- [ ] Simple mode uses `ResearchMemory` for evidence storage
|
| 257 |
+
- [ ] Simple mode tracks hypotheses from judge assessments
|
| 258 |
+
- [ ] Advanced mode uses `ResearchMemory` (shared state)
|
| 259 |
+
- [ ] "God Mode" removed from UI
|
| 260 |
+
- [ ] All existing tests pass
|
| 261 |
+
- [ ] New tests for memory integration
|
| 262 |
+
|
| 263 |
+
---
|
| 264 |
+
|
| 265 |
+
## 7. Why This is the Right Pattern
|
| 266 |
+
|
| 267 |
+
```
|
| 268 |
+
Iterative Development:
|
| 269 |
+
|
| 270 |
+
1. Build in isolation ✅ (SPEC_07 - God Mode)
|
| 271 |
+
- Test without breaking existing code
|
| 272 |
+
- Verify the concept works
|
| 273 |
+
|
| 274 |
+
2. Ship isolated feature ✅ (PR #72)
|
| 275 |
+
- Get it into main
|
| 276 |
+
- Real users can test it
|
| 277 |
+
|
| 278 |
+
3. Integrate into stack 🔜 (This spec)
|
| 279 |
+
- Wire into existing modes
|
| 280 |
+
- Remove scaffolding
|
| 281 |
+
|
| 282 |
+
4. Clean up 🔜
|
| 283 |
+
- Delete God Mode UI
|
| 284 |
+
- Archive LangGraph orchestrator
|
| 285 |
+
```
|
| 286 |
+
|
| 287 |
+
**You shipped the hard part. Now it's just plumbing.**
|
| 288 |
+
|
| 289 |
+
---
|
| 290 |
+
|
| 291 |
+
## 8. Time Estimate
|
| 292 |
+
|
| 293 |
+
| Phase | Effort |
|
| 294 |
+
|-------|--------|
|
| 295 |
+
| Phase 1: Extract memory service | 2 hours |
|
| 296 |
+
| Phase 2: Simple mode integration | 2 hours |
|
| 297 |
+
| Phase 3: Advanced mode integration | 2 hours |
|
| 298 |
+
| Phase 4: UI cleanup | 30 mins |
|
| 299 |
+
| Testing | 1 hour |
|
| 300 |
+
| **Total** | **~8 hours** |
|
| 301 |
+
|
| 302 |
+
---
|
| 303 |
+
|
| 304 |
+
## 9. References
|
| 305 |
+
|
| 306 |
+
- SPEC_07: LangGraph Memory Architecture (implemented)
|
| 307 |
+
- PR #72: God Mode implementation
|
| 308 |
+
- Issue #73: Architectural refactor tracking
|
pyproject.toml
CHANGED
|
@@ -26,6 +26,14 @@ dependencies = [
|
|
| 26 |
"requests>=2.32.5", # ClinicalTrials.gov (httpx blocked by WAF)
|
| 27 |
"limits>=3.0", # Rate limiting
|
| 28 |
"duckduckgo-search>=5.0", # Web search
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 29 |
]
|
| 30 |
|
| 31 |
[project.optional-dependencies]
|
|
|
|
| 26 |
"requests>=2.32.5", # ClinicalTrials.gov (httpx blocked by WAF)
|
| 27 |
"limits>=3.0", # Rate limiting
|
| 28 |
"duckduckgo-search>=5.0", # Web search
|
| 29 |
+
# LangGraph deps - upper bounds prevent breaking changes from major versions
|
| 30 |
+
"langgraph>=0.2.50,<1.0",
|
| 31 |
+
"langchain>=0.3.9,<1.0",
|
| 32 |
+
"langchain-core>=0.3.21,<1.0",
|
| 33 |
+
"langchain-huggingface>=0.1.2,<1.0",
|
| 34 |
+
"langgraph-checkpoint-sqlite>=3.0.0,<4.0", # 3.0.0 required for GHSA-wwqv-p2pp-99h5 fix
|
| 35 |
+
# Security: Pin urllib3 to fix GHSA-48p4-8xcf-vxj5 and GHSA-pq67-6m6q-mj2v
|
| 36 |
+
"urllib3>=2.5.0",
|
| 37 |
]
|
| 38 |
|
| 39 |
[project.optional-dependencies]
|
src/agents/graph/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
"""LangGraph agents package."""
|
src/agents/graph/nodes.py
ADDED
|
@@ -0,0 +1,352 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Graph node implementations for DeepBoner research."""
|
| 2 |
+
|
| 3 |
+
from typing import Any, Literal
|
| 4 |
+
|
| 5 |
+
import structlog
|
| 6 |
+
from langchain_core.language_models.chat_models import BaseChatModel
|
| 7 |
+
from langchain_core.messages import AIMessage
|
| 8 |
+
from langchain_core.output_parsers import PydanticOutputParser
|
| 9 |
+
from langchain_core.prompts import ChatPromptTemplate
|
| 10 |
+
from pydantic import BaseModel, Field
|
| 11 |
+
from pydantic_ai import Agent
|
| 12 |
+
|
| 13 |
+
from src.agent_factory.judges import get_model
|
| 14 |
+
from src.agents.graph.state import Hypothesis, ResearchState
|
| 15 |
+
from src.prompts.hypothesis import SYSTEM_PROMPT as HYPOTHESIS_SYSTEM_PROMPT
|
| 16 |
+
from src.prompts.hypothesis import format_hypothesis_prompt
|
| 17 |
+
from src.prompts.report import SYSTEM_PROMPT as REPORT_SYSTEM_PROMPT
|
| 18 |
+
from src.prompts.report import format_report_prompt
|
| 19 |
+
from src.services.embeddings import EmbeddingService
|
| 20 |
+
from src.tools.base import SearchTool
|
| 21 |
+
from src.tools.clinicaltrials import ClinicalTrialsTool
|
| 22 |
+
from src.tools.europepmc import EuropePMCTool
|
| 23 |
+
from src.tools.pubmed import PubMedTool
|
| 24 |
+
from src.tools.search_handler import SearchHandler
|
| 25 |
+
from src.utils.citation_validator import validate_references
|
| 26 |
+
from src.utils.models import (
|
| 27 |
+
Citation,
|
| 28 |
+
Evidence,
|
| 29 |
+
HypothesisAssessment,
|
| 30 |
+
MechanismHypothesis,
|
| 31 |
+
ResearchReport,
|
| 32 |
+
)
|
| 33 |
+
|
| 34 |
+
logger = structlog.get_logger()
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
def _convert_hypothesis_to_mechanism(h: Hypothesis) -> MechanismHypothesis:
|
| 38 |
+
"""Convert state Hypothesis to MechanismHypothesis for report generation.
|
| 39 |
+
|
| 40 |
+
The state Hypothesis stores the mechanism as a statement like:
|
| 41 |
+
"drug -> target -> pathway -> effect"
|
| 42 |
+
|
| 43 |
+
We parse this back into structured MechanismHypothesis fields.
|
| 44 |
+
"""
|
| 45 |
+
# Parse statement format: "drug -> target -> pathway -> effect"
|
| 46 |
+
# Handle both " -> " (standard) and "->" (compact) separators
|
| 47 |
+
separator = " -> " if " -> " in h.statement else "->"
|
| 48 |
+
parts = [p.strip() for p in h.statement.split(separator)]
|
| 49 |
+
|
| 50 |
+
# Validate: exactly 4 non-empty parts
|
| 51 |
+
if len(parts) == 4 and all(parts):
|
| 52 |
+
drug, target, pathway, effect = parts
|
| 53 |
+
elif len(parts) > 4 and all(parts[:4]):
|
| 54 |
+
# More than 4 parts: join extras into effect
|
| 55 |
+
drug, target, pathway = parts[0], parts[1], parts[2]
|
| 56 |
+
effect = f"{separator}".join(parts[3:])
|
| 57 |
+
logger.debug(
|
| 58 |
+
"Hypothesis has extra parts, joined into effect",
|
| 59 |
+
hypothesis_id=h.id,
|
| 60 |
+
parts_count=len(parts),
|
| 61 |
+
)
|
| 62 |
+
else:
|
| 63 |
+
# Log parsing failure for debugging
|
| 64 |
+
logger.warning(
|
| 65 |
+
"Failed to parse hypothesis statement format",
|
| 66 |
+
hypothesis_id=h.id,
|
| 67 |
+
statement=h.statement[:100], # Truncate for log safety
|
| 68 |
+
parts_count=len(parts),
|
| 69 |
+
)
|
| 70 |
+
# Use meaningful fallback values
|
| 71 |
+
drug = "Unknown"
|
| 72 |
+
target = "Unknown"
|
| 73 |
+
pathway = "Unknown"
|
| 74 |
+
effect = h.statement.strip() if h.statement else "Unknown effect"
|
| 75 |
+
|
| 76 |
+
return MechanismHypothesis(
|
| 77 |
+
drug=drug,
|
| 78 |
+
target=target,
|
| 79 |
+
pathway=pathway,
|
| 80 |
+
effect=effect,
|
| 81 |
+
confidence=h.confidence,
|
| 82 |
+
supporting_evidence=h.supporting_evidence_ids,
|
| 83 |
+
contradicting_evidence=h.contradicting_evidence_ids,
|
| 84 |
+
)
|
| 85 |
+
|
| 86 |
+
|
| 87 |
+
# --- Supervisor Output Schema ---
|
| 88 |
+
class SupervisorDecision(BaseModel):
|
| 89 |
+
"""The decision made by the supervisor."""
|
| 90 |
+
|
| 91 |
+
next_step: Literal["search", "judge", "resolve", "synthesize", "finish"] = Field(
|
| 92 |
+
description="The next step to take in the research process."
|
| 93 |
+
)
|
| 94 |
+
reasoning: str = Field(description="Reasoning for this decision.")
|
| 95 |
+
|
| 96 |
+
|
| 97 |
+
# --- Nodes ---
|
| 98 |
+
|
| 99 |
+
|
| 100 |
+
async def search_node(
|
| 101 |
+
state: ResearchState, embedding_service: EmbeddingService | None = None
|
| 102 |
+
) -> dict[str, Any]:
|
| 103 |
+
"""Execute search across all sources."""
|
| 104 |
+
query = state["query"]
|
| 105 |
+
logger.info("search_node: executing search", query=query)
|
| 106 |
+
|
| 107 |
+
# Initialize tools
|
| 108 |
+
tools: list[SearchTool] = [PubMedTool(), ClinicalTrialsTool(), EuropePMCTool()]
|
| 109 |
+
handler = SearchHandler(tools=tools)
|
| 110 |
+
|
| 111 |
+
# Execute search
|
| 112 |
+
result = await handler.execute(query)
|
| 113 |
+
|
| 114 |
+
new_evidence_count = 0
|
| 115 |
+
new_ids = []
|
| 116 |
+
|
| 117 |
+
if embedding_service and result.evidence:
|
| 118 |
+
# Deduplicate and store
|
| 119 |
+
unique_evidence = await embedding_service.deduplicate(result.evidence)
|
| 120 |
+
|
| 121 |
+
for ev in unique_evidence:
|
| 122 |
+
ev_id = ev.citation.url
|
| 123 |
+
await embedding_service.add_evidence(
|
| 124 |
+
evidence_id=ev_id,
|
| 125 |
+
content=ev.content,
|
| 126 |
+
metadata={
|
| 127 |
+
"source": ev.citation.source,
|
| 128 |
+
"title": ev.citation.title,
|
| 129 |
+
"date": ev.citation.date,
|
| 130 |
+
"authors": ",".join(ev.citation.authors or []),
|
| 131 |
+
"url": ev.citation.url,
|
| 132 |
+
},
|
| 133 |
+
)
|
| 134 |
+
new_ids.append(ev_id)
|
| 135 |
+
|
| 136 |
+
new_evidence_count = len(unique_evidence)
|
| 137 |
+
else:
|
| 138 |
+
new_evidence_count = len(result.evidence)
|
| 139 |
+
|
| 140 |
+
message = (
|
| 141 |
+
f"Search completed. Found {result.total_found} total, "
|
| 142 |
+
f"{new_evidence_count} unique new papers."
|
| 143 |
+
)
|
| 144 |
+
if result.errors:
|
| 145 |
+
message += f" Errors: {'; '.join(result.errors)}"
|
| 146 |
+
|
| 147 |
+
return {
|
| 148 |
+
"evidence_ids": new_ids,
|
| 149 |
+
"messages": [AIMessage(content=message)],
|
| 150 |
+
}
|
| 151 |
+
|
| 152 |
+
|
| 153 |
+
async def judge_node(
|
| 154 |
+
state: ResearchState, embedding_service: EmbeddingService | None = None
|
| 155 |
+
) -> dict[str, Any]:
|
| 156 |
+
"""Evaluate evidence and update hypothesis confidence."""
|
| 157 |
+
logger.info("judge_node: evaluating evidence")
|
| 158 |
+
|
| 159 |
+
evidence_context: list[Evidence] = []
|
| 160 |
+
if embedding_service:
|
| 161 |
+
scored_points = await embedding_service.search_similar(state["query"], n_results=20)
|
| 162 |
+
for p in scored_points:
|
| 163 |
+
meta = p.get("metadata", {})
|
| 164 |
+
authors = meta.get("authors", "")
|
| 165 |
+
author_list = authors.split(",") if authors else []
|
| 166 |
+
|
| 167 |
+
evidence_context.append(
|
| 168 |
+
Evidence(
|
| 169 |
+
content=p.get("content", ""),
|
| 170 |
+
citation=Citation(
|
| 171 |
+
url=p.get("id", ""),
|
| 172 |
+
title=meta.get("title", "Unknown"),
|
| 173 |
+
source=meta.get("source", "Unknown"),
|
| 174 |
+
date=meta.get("date", ""),
|
| 175 |
+
authors=author_list,
|
| 176 |
+
),
|
| 177 |
+
)
|
| 178 |
+
)
|
| 179 |
+
|
| 180 |
+
agent = Agent(
|
| 181 |
+
model=get_model(),
|
| 182 |
+
output_type=HypothesisAssessment,
|
| 183 |
+
system_prompt=HYPOTHESIS_SYSTEM_PROMPT,
|
| 184 |
+
)
|
| 185 |
+
|
| 186 |
+
prompt = await format_hypothesis_prompt(
|
| 187 |
+
query=state["query"], evidence=evidence_context, embeddings=embedding_service
|
| 188 |
+
)
|
| 189 |
+
|
| 190 |
+
try:
|
| 191 |
+
result = await agent.run(prompt)
|
| 192 |
+
assessment = result.output
|
| 193 |
+
|
| 194 |
+
new_hypotheses = []
|
| 195 |
+
for h in assessment.hypotheses:
|
| 196 |
+
new_hypotheses.append(
|
| 197 |
+
Hypothesis(
|
| 198 |
+
id=h.drug,
|
| 199 |
+
statement=f"{h.drug} -> {h.target} -> {h.pathway} -> {h.effect}",
|
| 200 |
+
status="proposed",
|
| 201 |
+
confidence=h.confidence,
|
| 202 |
+
supporting_evidence_ids=[],
|
| 203 |
+
contradicting_evidence_ids=[],
|
| 204 |
+
)
|
| 205 |
+
)
|
| 206 |
+
|
| 207 |
+
return {
|
| 208 |
+
"hypotheses": new_hypotheses,
|
| 209 |
+
"messages": [AIMessage(content=f"Judge: Generated {len(new_hypotheses)} hypotheses.")],
|
| 210 |
+
"next_step": "resolve",
|
| 211 |
+
}
|
| 212 |
+
except Exception as e:
|
| 213 |
+
logger.error("judge_node failed", error=str(e))
|
| 214 |
+
return {"messages": [AIMessage(content=f"Judge Error: {e!s}")], "next_step": "search"}
|
| 215 |
+
|
| 216 |
+
|
| 217 |
+
async def resolve_node(
|
| 218 |
+
state: ResearchState, embedding_service: EmbeddingService | None = None
|
| 219 |
+
) -> dict[str, Any]:
|
| 220 |
+
"""Handle open conflicts."""
|
| 221 |
+
messages = []
|
| 222 |
+
|
| 223 |
+
# Access attributes with dot notation because items are Pydantic models
|
| 224 |
+
high_conf = [h for h in state["hypotheses"] if h.confidence > 0.8]
|
| 225 |
+
|
| 226 |
+
if high_conf:
|
| 227 |
+
messages.append(
|
| 228 |
+
AIMessage(
|
| 229 |
+
content=(
|
| 230 |
+
f"Resolver: Found {len(high_conf)} high confidence hypotheses. "
|
| 231 |
+
"Conflicts resolved."
|
| 232 |
+
)
|
| 233 |
+
)
|
| 234 |
+
)
|
| 235 |
+
else:
|
| 236 |
+
messages.append(AIMessage(content="Resolver: No high confidence hypotheses yet."))
|
| 237 |
+
|
| 238 |
+
return {"messages": messages}
|
| 239 |
+
|
| 240 |
+
|
| 241 |
+
async def synthesize_node(
|
| 242 |
+
state: ResearchState, embedding_service: EmbeddingService | None = None
|
| 243 |
+
) -> dict[str, Any]:
|
| 244 |
+
"""Generate final report."""
|
| 245 |
+
logger.info("synthesize_node: generating report")
|
| 246 |
+
|
| 247 |
+
evidence_context: list[Evidence] = []
|
| 248 |
+
if embedding_service:
|
| 249 |
+
scored_points = await embedding_service.search_similar(state["query"], n_results=50)
|
| 250 |
+
for p in scored_points:
|
| 251 |
+
meta = p.get("metadata", {})
|
| 252 |
+
authors = meta.get("authors", "")
|
| 253 |
+
author_list = authors.split(",") if authors else []
|
| 254 |
+
|
| 255 |
+
evidence_context.append(
|
| 256 |
+
Evidence(
|
| 257 |
+
content=p.get("content", ""),
|
| 258 |
+
citation=Citation(
|
| 259 |
+
url=p.get("id", ""),
|
| 260 |
+
title=meta.get("title", "Unknown"),
|
| 261 |
+
source=meta.get("source", "Unknown"),
|
| 262 |
+
date=meta.get("date", ""),
|
| 263 |
+
authors=author_list,
|
| 264 |
+
),
|
| 265 |
+
)
|
| 266 |
+
)
|
| 267 |
+
|
| 268 |
+
agent = Agent(
|
| 269 |
+
model=get_model(),
|
| 270 |
+
output_type=ResearchReport,
|
| 271 |
+
system_prompt=REPORT_SYSTEM_PROMPT,
|
| 272 |
+
)
|
| 273 |
+
|
| 274 |
+
# Convert state hypotheses to MechanismHypothesis for report generation
|
| 275 |
+
mechanism_hypotheses = [_convert_hypothesis_to_mechanism(h) for h in state["hypotheses"]]
|
| 276 |
+
|
| 277 |
+
prompt = await format_report_prompt(
|
| 278 |
+
query=state["query"],
|
| 279 |
+
evidence=evidence_context,
|
| 280 |
+
hypotheses=mechanism_hypotheses,
|
| 281 |
+
assessment={},
|
| 282 |
+
metadata={"sources": list(set(e.citation.source for e in evidence_context))},
|
| 283 |
+
embeddings=embedding_service,
|
| 284 |
+
)
|
| 285 |
+
|
| 286 |
+
try:
|
| 287 |
+
result = await agent.run(prompt)
|
| 288 |
+
report = result.output
|
| 289 |
+
report = validate_references(report, evidence_context)
|
| 290 |
+
|
| 291 |
+
return {"messages": [AIMessage(content=report.to_markdown())], "next_step": "finish"}
|
| 292 |
+
except Exception as e:
|
| 293 |
+
logger.error("synthesize_node failed", error=str(e))
|
| 294 |
+
return {"messages": [AIMessage(content=f"Synthesis Error: {e!s}")], "next_step": "finish"}
|
| 295 |
+
|
| 296 |
+
|
| 297 |
+
async def supervisor_node(state: ResearchState, llm: BaseChatModel | None = None) -> dict[str, Any]:
|
| 298 |
+
"""Route to next node based on state using robust Pydantic parsing."""
|
| 299 |
+
if state["iteration_count"] >= state["max_iterations"]:
|
| 300 |
+
return {"next_step": "synthesize", "iteration_count": state["iteration_count"]}
|
| 301 |
+
|
| 302 |
+
if llm is None:
|
| 303 |
+
return {"next_step": "search", "iteration_count": state["iteration_count"] + 1}
|
| 304 |
+
|
| 305 |
+
parser = PydanticOutputParser(pydantic_object=SupervisorDecision)
|
| 306 |
+
|
| 307 |
+
prompt = ChatPromptTemplate.from_messages(
|
| 308 |
+
[
|
| 309 |
+
(
|
| 310 |
+
"system",
|
| 311 |
+
"You are the Research Supervisor. Manage the workflow.\n\n"
|
| 312 |
+
"State Summary:\n"
|
| 313 |
+
"- Query: {query}\n"
|
| 314 |
+
"- Hypotheses: {hypo_count}\n"
|
| 315 |
+
"- Conflicts: {conflict_count}\n"
|
| 316 |
+
"- Iteration: {iteration}/{max_iter}\n\n"
|
| 317 |
+
"Decide the next step based on this logic:\n"
|
| 318 |
+
"1. If there are open conflicts -> 'resolve'\n"
|
| 319 |
+
"2. If hypotheses are unverified or few -> 'search'\n"
|
| 320 |
+
"3. If new evidence needs evaluation -> 'judge'\n"
|
| 321 |
+
"4. If hypotheses are confirmed -> 'synthesize'\n\n"
|
| 322 |
+
"{format_instructions}",
|
| 323 |
+
),
|
| 324 |
+
("user", "What is the next step?"),
|
| 325 |
+
]
|
| 326 |
+
)
|
| 327 |
+
|
| 328 |
+
chain = prompt | llm | parser
|
| 329 |
+
|
| 330 |
+
try:
|
| 331 |
+
# Note: state["conflicts"] contains Pydantic models, so use dot notation
|
| 332 |
+
decision: SupervisorDecision = await chain.ainvoke(
|
| 333 |
+
{
|
| 334 |
+
"query": state["query"],
|
| 335 |
+
"hypo_count": len(state["hypotheses"]),
|
| 336 |
+
"conflict_count": len([c for c in state["conflicts"] if c.status == "open"]),
|
| 337 |
+
"iteration": state["iteration_count"],
|
| 338 |
+
"max_iter": state["max_iterations"],
|
| 339 |
+
"format_instructions": parser.get_format_instructions(),
|
| 340 |
+
}
|
| 341 |
+
)
|
| 342 |
+
return {
|
| 343 |
+
"next_step": decision.next_step,
|
| 344 |
+
"iteration_count": state["iteration_count"] + 1,
|
| 345 |
+
"messages": [AIMessage(content=f"Supervisor: {decision.reasoning}")],
|
| 346 |
+
}
|
| 347 |
+
except Exception as e:
|
| 348 |
+
return {
|
| 349 |
+
"next_step": "synthesize",
|
| 350 |
+
"iteration_count": state["iteration_count"] + 1,
|
| 351 |
+
"messages": [AIMessage(content=f"Supervisor Error: {e!s}. Proceeding to synthesis.")],
|
| 352 |
+
}
|
src/agents/graph/state.py
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""LangGraph state definitions for the research workflow."""
|
| 2 |
+
|
| 3 |
+
import operator
|
| 4 |
+
from typing import Annotated, Literal, TypedDict
|
| 5 |
+
|
| 6 |
+
from langchain_core.messages import BaseMessage
|
| 7 |
+
from pydantic import BaseModel, Field
|
| 8 |
+
|
| 9 |
+
# --- Domain Models (Inner Objects) ---
|
| 10 |
+
# We use Pydantic for strict validation of the data objects
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
class Hypothesis(BaseModel):
|
| 14 |
+
"""A research hypothesis with evidence tracking."""
|
| 15 |
+
|
| 16 |
+
id: str = Field(description="Unique identifier for the hypothesis")
|
| 17 |
+
statement: str = Field(description="The hypothesis statement")
|
| 18 |
+
status: Literal["proposed", "validating", "confirmed", "refuted"] = Field(
|
| 19 |
+
default="proposed", description="Current validation status"
|
| 20 |
+
)
|
| 21 |
+
confidence: float = Field(default=0.0, ge=0.0, le=1.0, description="Confidence score (0.0-1.0)")
|
| 22 |
+
supporting_evidence_ids: list[str] = Field(default_factory=list)
|
| 23 |
+
contradicting_evidence_ids: list[str] = Field(default_factory=list)
|
| 24 |
+
reasoning: str | None = Field(default=None, description="Reasoning for current status")
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
class Conflict(BaseModel):
|
| 28 |
+
"""A detected contradiction between sources."""
|
| 29 |
+
|
| 30 |
+
id: str = Field(description="Unique identifier for the conflict")
|
| 31 |
+
description: str = Field(description="Description of the contradiction")
|
| 32 |
+
source_a_id: str = Field(description="ID of the first conflicting source")
|
| 33 |
+
source_b_id: str = Field(description="ID of the second conflicting source")
|
| 34 |
+
status: Literal["open", "resolved"] = Field(default="open")
|
| 35 |
+
resolution: str | None = Field(default=None, description="Resolution explanation if resolved")
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
# --- Graph State (The Blackboard) ---
|
| 39 |
+
# LangGraph requires TypedDict for the main state object to support
|
| 40 |
+
# partial updates and reducers (operator.add).
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
class ResearchState(TypedDict):
|
| 44 |
+
"""The cognitive state shared across all graph nodes.
|
| 45 |
+
|
| 46 |
+
Fields with 'Annotated[..., operator.add]' are reducers:
|
| 47 |
+
returning a dict with these keys from a node will APPEND to the list
|
| 48 |
+
instead of overwriting it.
|
| 49 |
+
"""
|
| 50 |
+
|
| 51 |
+
# Immutable context
|
| 52 |
+
query: str
|
| 53 |
+
|
| 54 |
+
# Cognitive state (The "Blackboard")
|
| 55 |
+
# Note: We store these as lists of Pydantic models.
|
| 56 |
+
# Nodes should be careful to update existing items by ID if needed,
|
| 57 |
+
# or we might need a custom reducer for merging by ID.
|
| 58 |
+
# For now, we'll append and let the synthesizer filter the latest.
|
| 59 |
+
hypotheses: Annotated[list[Hypothesis], operator.add]
|
| 60 |
+
conflicts: Annotated[list[Conflict], operator.add]
|
| 61 |
+
|
| 62 |
+
# Evidence links (actual content stored in ChromaDB)
|
| 63 |
+
evidence_ids: Annotated[list[str], operator.add]
|
| 64 |
+
|
| 65 |
+
# Chat history (for LLM context)
|
| 66 |
+
messages: Annotated[list[BaseMessage], operator.add]
|
| 67 |
+
|
| 68 |
+
# Control flow
|
| 69 |
+
next_step: Literal["search", "judge", "resolve", "synthesize", "finish"]
|
| 70 |
+
iteration_count: int
|
| 71 |
+
max_iterations: int
|
src/agents/graph/workflow.py
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""DeepBoner research workflow definition using LangGraph."""
|
| 2 |
+
|
| 3 |
+
from functools import partial
|
| 4 |
+
from typing import Any
|
| 5 |
+
|
| 6 |
+
from langchain_core.language_models.chat_models import BaseChatModel
|
| 7 |
+
from langgraph.checkpoint.base import BaseCheckpointSaver
|
| 8 |
+
from langgraph.graph import END, StateGraph
|
| 9 |
+
from langgraph.graph.state import CompiledStateGraph
|
| 10 |
+
|
| 11 |
+
from src.agents.graph.nodes import (
|
| 12 |
+
judge_node,
|
| 13 |
+
resolve_node,
|
| 14 |
+
search_node,
|
| 15 |
+
supervisor_node,
|
| 16 |
+
synthesize_node,
|
| 17 |
+
)
|
| 18 |
+
from src.agents.graph.state import ResearchState
|
| 19 |
+
from src.services.embeddings import EmbeddingService
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
def create_research_graph(
|
| 23 |
+
llm: BaseChatModel | None = None,
|
| 24 |
+
checkpointer: "BaseCheckpointSaver[Any]" | None = None, # Generic type from langgraph
|
| 25 |
+
embedding_service: EmbeddingService | None = None,
|
| 26 |
+
) -> "CompiledStateGraph[Any]": # type: ignore[type-arg]
|
| 27 |
+
"""Build the research state graph.
|
| 28 |
+
|
| 29 |
+
Args:
|
| 30 |
+
llm: The language model for the supervisor node.
|
| 31 |
+
checkpointer: Optional persistence layer.
|
| 32 |
+
embedding_service: Service for evidence storage and retrieval.
|
| 33 |
+
"""
|
| 34 |
+
graph = StateGraph(ResearchState)
|
| 35 |
+
|
| 36 |
+
# --- Nodes ---
|
| 37 |
+
# Bind the LLM to the supervisor node using partial
|
| 38 |
+
bound_supervisor = partial(supervisor_node, llm=llm) if llm else supervisor_node
|
| 39 |
+
|
| 40 |
+
# Bind embedding service to worker nodes
|
| 41 |
+
# We use partial to inject the service dependency while keeping the node signature clean
|
| 42 |
+
bound_search = (
|
| 43 |
+
partial(search_node, embedding_service=embedding_service)
|
| 44 |
+
if embedding_service
|
| 45 |
+
else search_node
|
| 46 |
+
)
|
| 47 |
+
bound_judge = (
|
| 48 |
+
partial(judge_node, embedding_service=embedding_service)
|
| 49 |
+
if embedding_service
|
| 50 |
+
else judge_node
|
| 51 |
+
)
|
| 52 |
+
bound_resolve = (
|
| 53 |
+
partial(resolve_node, embedding_service=embedding_service)
|
| 54 |
+
if embedding_service
|
| 55 |
+
else resolve_node
|
| 56 |
+
)
|
| 57 |
+
bound_synthesize = (
|
| 58 |
+
partial(synthesize_node, embedding_service=embedding_service)
|
| 59 |
+
if embedding_service
|
| 60 |
+
else synthesize_node
|
| 61 |
+
)
|
| 62 |
+
|
| 63 |
+
graph.add_node("supervisor", bound_supervisor)
|
| 64 |
+
graph.add_node("search", bound_search)
|
| 65 |
+
graph.add_node("judge", bound_judge)
|
| 66 |
+
graph.add_node("resolve", bound_resolve)
|
| 67 |
+
graph.add_node("synthesize", bound_synthesize)
|
| 68 |
+
|
| 69 |
+
# --- Edges ---
|
| 70 |
+
# All worker nodes report back to supervisor
|
| 71 |
+
graph.add_edge("search", "supervisor")
|
| 72 |
+
graph.add_edge("judge", "supervisor")
|
| 73 |
+
graph.add_edge("resolve", "supervisor")
|
| 74 |
+
|
| 75 |
+
# Synthesis is the end
|
| 76 |
+
graph.add_edge("synthesize", END)
|
| 77 |
+
|
| 78 |
+
# --- Conditional Routing ---
|
| 79 |
+
# Supervisor decides where to go next based on state["next_step"]
|
| 80 |
+
graph.add_conditional_edges(
|
| 81 |
+
"supervisor",
|
| 82 |
+
lambda state: state["next_step"],
|
| 83 |
+
{
|
| 84 |
+
"search": "search",
|
| 85 |
+
"judge": "judge",
|
| 86 |
+
"resolve": "resolve",
|
| 87 |
+
"synthesize": "synthesize",
|
| 88 |
+
"finish": END,
|
| 89 |
+
},
|
| 90 |
+
)
|
| 91 |
+
|
| 92 |
+
# Entry Point
|
| 93 |
+
graph.set_entry_point("supervisor")
|
| 94 |
+
|
| 95 |
+
return graph.compile(checkpointer=checkpointer)
|
src/agents/retrieval_agent.py
CHANGED
|
@@ -32,9 +32,8 @@ async def search_web(query: str, max_results: int = 10) -> str:
|
|
| 32 |
logger.info("Web search returned no results", query=query)
|
| 33 |
return f"No web results found for: {query}"
|
| 34 |
|
| 35 |
-
#
|
| 36 |
-
|
| 37 |
-
new_count = state.add_evidence(results.evidence)
|
| 38 |
logger.info(
|
| 39 |
"Web search complete",
|
| 40 |
query=query,
|
|
@@ -42,11 +41,6 @@ async def search_web(query: str, max_results: int = 10) -> str:
|
|
| 42 |
new_evidence=new_count,
|
| 43 |
)
|
| 44 |
|
| 45 |
-
# Use embedding service for deduplication/indexing if available
|
| 46 |
-
if state.embedding_service:
|
| 47 |
-
# This method also adds to vector DB as a side effect for unique items
|
| 48 |
-
await state.embedding_service.deduplicate(results.evidence)
|
| 49 |
-
|
| 50 |
output = [f"Found {len(results.evidence)} web results ({new_count} new stored):\n"]
|
| 51 |
for i, r in enumerate(results.evidence[:max_results], 1):
|
| 52 |
output.append(f"{i}. **{r.citation.title}**")
|
|
|
|
| 32 |
logger.info("Web search returned no results", query=query)
|
| 33 |
return f"No web results found for: {query}"
|
| 34 |
|
| 35 |
+
# Store evidence with deduplication and embedding (all handled by memory layer)
|
| 36 |
+
new_count = await state.add_evidence(results.evidence)
|
|
|
|
| 37 |
logger.info(
|
| 38 |
"Web search complete",
|
| 39 |
query=query,
|
|
|
|
| 41 |
new_evidence=new_count,
|
| 42 |
)
|
| 43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
output = [f"Found {len(results.evidence)} web results ({new_count} new stored):\n"]
|
| 45 |
for i, r in enumerate(results.evidence[:max_results], 1):
|
| 46 |
output.append(f"{i}. **{r.citation.title}**")
|
src/agents/state.py
CHANGED
|
@@ -5,78 +5,70 @@ searching simultaneously via Gradio).
|
|
| 5 |
"""
|
| 6 |
|
| 7 |
from contextvars import ContextVar
|
| 8 |
-
from typing import TYPE_CHECKING, Any
|
| 9 |
|
| 10 |
-
from pydantic import BaseModel
|
| 11 |
|
| 12 |
-
from src.
|
| 13 |
|
| 14 |
if TYPE_CHECKING:
|
| 15 |
from src.services.embeddings import EmbeddingService
|
|
|
|
| 16 |
|
| 17 |
|
| 18 |
class MagenticState(BaseModel):
|
| 19 |
"""Mutable state for a Magentic workflow session."""
|
| 20 |
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
# The actual object injected will be an EmbeddingService instance
|
| 24 |
-
embedding_service: Any = None
|
| 25 |
|
| 26 |
model_config = {"arbitrary_types_allowed": True}
|
| 27 |
|
| 28 |
-
|
| 29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 30 |
|
| 31 |
Returns:
|
| 32 |
-
Number of
|
| 33 |
"""
|
| 34 |
-
|
| 35 |
-
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
"""
|
| 45 |
-
if
|
| 46 |
-
return
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
evidence_list = []
|
| 52 |
-
for item in results:
|
| 53 |
-
meta = item.get("metadata", {})
|
| 54 |
-
authors_str = meta.get("authors", "")
|
| 55 |
-
authors = [a.strip() for a in authors_str.split(",") if a.strip()]
|
| 56 |
-
|
| 57 |
-
ev = Evidence(
|
| 58 |
-
content=item["content"],
|
| 59 |
-
citation=Citation(
|
| 60 |
-
title=meta.get("title", "Related Evidence"),
|
| 61 |
-
url=item["id"],
|
| 62 |
-
source="pubmed", # Defaulting to pubmed if unknown
|
| 63 |
-
date=meta.get("date", "n.d."),
|
| 64 |
-
authors=authors,
|
| 65 |
-
),
|
| 66 |
-
relevance=max(0.0, 1.0 - item.get("distance", 0.5)),
|
| 67 |
-
)
|
| 68 |
-
evidence_list.append(ev)
|
| 69 |
-
|
| 70 |
-
return evidence_list
|
| 71 |
|
| 72 |
|
| 73 |
# The ContextVar holds the MagenticState for the current execution context
|
| 74 |
_magentic_state_var: ContextVar[MagenticState | None] = ContextVar("magentic_state", default=None)
|
| 75 |
|
| 76 |
|
| 77 |
-
def init_magentic_state(
|
|
|
|
|
|
|
| 78 |
"""Initialize a new state for the current context."""
|
| 79 |
-
|
|
|
|
| 80 |
_magentic_state_var.set(state)
|
| 81 |
return state
|
| 82 |
|
|
@@ -85,6 +77,5 @@ def get_magentic_state() -> MagenticState:
|
|
| 85 |
"""Get the current state. Raises RuntimeError if not initialized."""
|
| 86 |
state = _magentic_state_var.get()
|
| 87 |
if state is None:
|
| 88 |
-
|
| 89 |
-
return init_magentic_state()
|
| 90 |
return state
|
|
|
|
| 5 |
"""
|
| 6 |
|
| 7 |
from contextvars import ContextVar
|
| 8 |
+
from typing import TYPE_CHECKING, Any, cast
|
| 9 |
|
| 10 |
+
from pydantic import BaseModel
|
| 11 |
|
| 12 |
+
from src.services.research_memory import ResearchMemory
|
| 13 |
|
| 14 |
if TYPE_CHECKING:
|
| 15 |
from src.services.embeddings import EmbeddingService
|
| 16 |
+
from src.utils.models import Evidence
|
| 17 |
|
| 18 |
|
| 19 |
class MagenticState(BaseModel):
|
| 20 |
"""Mutable state for a Magentic workflow session."""
|
| 21 |
|
| 22 |
+
# We wrap ResearchMemory. Type as Any to avoid pydantic validation issues with complex objects
|
| 23 |
+
memory: Any = None # Instance of ResearchMemory
|
|
|
|
|
|
|
| 24 |
|
| 25 |
model_config = {"arbitrary_types_allowed": True}
|
| 26 |
|
| 27 |
+
# --- Proxy methods for backwards compatibility with retrieval_agent.py ---
|
| 28 |
+
|
| 29 |
+
async def add_evidence(self, evidence: list["Evidence"]) -> int:
|
| 30 |
+
"""Add evidence to memory with deduplication and embedding storage.
|
| 31 |
+
|
| 32 |
+
This method delegates to ResearchMemory.store_evidence() which:
|
| 33 |
+
1. Performs semantic deduplication (threshold 0.9)
|
| 34 |
+
2. Stores unique evidence in the vector store
|
| 35 |
+
3. Caches evidence for retrieval
|
| 36 |
+
|
| 37 |
+
Args:
|
| 38 |
+
evidence: List of Evidence objects to store.
|
| 39 |
|
| 40 |
Returns:
|
| 41 |
+
Number of new (non-duplicate) evidence items stored.
|
| 42 |
"""
|
| 43 |
+
if self.memory is None:
|
| 44 |
+
return 0
|
| 45 |
+
|
| 46 |
+
memory: ResearchMemory = self.memory
|
| 47 |
+
initial_count = len(memory.evidence_ids)
|
| 48 |
+
await memory.store_evidence(evidence)
|
| 49 |
+
return len(memory.evidence_ids) - initial_count
|
| 50 |
+
|
| 51 |
+
@property
|
| 52 |
+
def embedding_service(self) -> "EmbeddingService | None":
|
| 53 |
+
"""Get the embedding service from memory."""
|
| 54 |
+
if self.memory is None:
|
| 55 |
+
return None
|
| 56 |
+
# Cast needed because memory is typed as Any to avoid Pydantic issues
|
| 57 |
+
from src.services.embeddings import EmbeddingService as EmbeddingSvc
|
| 58 |
+
|
| 59 |
+
return cast(EmbeddingSvc | None, self.memory._embedding_service)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 60 |
|
| 61 |
|
| 62 |
# The ContextVar holds the MagenticState for the current execution context
|
| 63 |
_magentic_state_var: ContextVar[MagenticState | None] = ContextVar("magentic_state", default=None)
|
| 64 |
|
| 65 |
|
| 66 |
+
def init_magentic_state(
|
| 67 |
+
query: str, embedding_service: "EmbeddingService | None" = None
|
| 68 |
+
) -> MagenticState:
|
| 69 |
"""Initialize a new state for the current context."""
|
| 70 |
+
memory = ResearchMemory(query=query, embedding_service=embedding_service)
|
| 71 |
+
state = MagenticState(memory=memory)
|
| 72 |
_magentic_state_var.set(state)
|
| 73 |
return state
|
| 74 |
|
|
|
|
| 77 |
"""Get the current state. Raises RuntimeError if not initialized."""
|
| 78 |
state = _magentic_state_var.get()
|
| 79 |
if state is None:
|
| 80 |
+
raise RuntimeError("MagenticState not initialized. Call init_magentic_state() first.")
|
|
|
|
| 81 |
return state
|
src/agents/tools.py
CHANGED
|
@@ -38,27 +38,29 @@ async def search_pubmed(query: str, max_results: int = 10) -> str:
|
|
| 38 |
if not results:
|
| 39 |
return f"No PubMed results found for: {query}"
|
| 40 |
|
| 41 |
-
# 2.
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
unique_results = await state.embedding_service.deduplicate(results)
|
| 46 |
|
| 47 |
-
|
| 48 |
-
|
|
|
|
| 49 |
|
| 50 |
-
|
| 51 |
-
|
| 52 |
|
| 53 |
-
#
|
| 54 |
-
|
| 55 |
-
|
|
|
|
|
|
|
| 56 |
|
| 57 |
# 4. Format Output for LLM
|
| 58 |
output = [f"Found {len(results)} results ({new_count} new stored):\n"]
|
| 59 |
|
| 60 |
# Limit display to avoid context window overflow, but state has everything
|
| 61 |
-
limit = min(len(display_results), max_results)
|
| 62 |
|
| 63 |
for i, r in enumerate(display_results[:limit], 1):
|
| 64 |
title = r.citation.title
|
|
@@ -96,7 +98,8 @@ async def search_clinical_trials(query: str, max_results: int = 10) -> str:
|
|
| 96 |
return f"No clinical trials found for: {query}"
|
| 97 |
|
| 98 |
# Update state
|
| 99 |
-
|
|
|
|
| 100 |
|
| 101 |
output = [f"Found {len(results)} clinical trials ({new_count} new stored):\n"]
|
| 102 |
for i, r in enumerate(results[:max_results], 1):
|
|
@@ -135,7 +138,8 @@ async def search_preprints(query: str, max_results: int = 10) -> str:
|
|
| 135 |
return f"No papers found for: {query}"
|
| 136 |
|
| 137 |
# Update state
|
| 138 |
-
|
|
|
|
| 139 |
|
| 140 |
output = [f"Found {len(results)} papers ({new_count} new stored):\n"]
|
| 141 |
for i, r in enumerate(results[:max_results], 1):
|
|
@@ -164,11 +168,13 @@ async def get_bibliography() -> str:
|
|
| 164 |
Formatted bibliography string.
|
| 165 |
"""
|
| 166 |
state = get_magentic_state()
|
| 167 |
-
|
|
|
|
|
|
|
| 168 |
return "No evidence collected."
|
| 169 |
|
| 170 |
output = ["## References"]
|
| 171 |
-
for i, ev in enumerate(
|
| 172 |
output.append(f"{i}. {ev.citation.formatted}")
|
| 173 |
output.append(f" URL: {ev.citation.url}")
|
| 174 |
|
|
|
|
| 38 |
if not results:
|
| 39 |
return f"No PubMed results found for: {query}"
|
| 40 |
|
| 41 |
+
# 2. Store in Memory (handles dedup and persistence)
|
| 42 |
+
# ResearchMemory handles semantic deduplication and persistence
|
| 43 |
+
new_ids = await state.memory.store_evidence(results)
|
| 44 |
+
new_count = len(new_ids)
|
|
|
|
| 45 |
|
| 46 |
+
# 3. Context Expansion (The "Digital Twin" Brain)
|
| 47 |
+
# Combine what we just found with what we already know is relevant
|
| 48 |
+
display_results = list(results)
|
| 49 |
|
| 50 |
+
# Search for related context in the memory (previous searches)
|
| 51 |
+
related = await state.memory.get_relevant_evidence(n=3)
|
| 52 |
|
| 53 |
+
# Add related items if they aren't already in the results
|
| 54 |
+
current_urls = {r.citation.url for r in display_results}
|
| 55 |
+
for item in related:
|
| 56 |
+
if item.citation.url not in current_urls:
|
| 57 |
+
display_results.append(item)
|
| 58 |
|
| 59 |
# 4. Format Output for LLM
|
| 60 |
output = [f"Found {len(results)} results ({new_count} new stored):\n"]
|
| 61 |
|
| 62 |
# Limit display to avoid context window overflow, but state has everything
|
| 63 |
+
limit = min(len(display_results), max_results + 3)
|
| 64 |
|
| 65 |
for i, r in enumerate(display_results[:limit], 1):
|
| 66 |
title = r.citation.title
|
|
|
|
| 98 |
return f"No clinical trials found for: {query}"
|
| 99 |
|
| 100 |
# Update state
|
| 101 |
+
new_ids = await state.memory.store_evidence(results)
|
| 102 |
+
new_count = len(new_ids)
|
| 103 |
|
| 104 |
output = [f"Found {len(results)} clinical trials ({new_count} new stored):\n"]
|
| 105 |
for i, r in enumerate(results[:max_results], 1):
|
|
|
|
| 138 |
return f"No papers found for: {query}"
|
| 139 |
|
| 140 |
# Update state
|
| 141 |
+
new_ids = await state.memory.store_evidence(results)
|
| 142 |
+
new_count = len(new_ids)
|
| 143 |
|
| 144 |
output = [f"Found {len(results)} papers ({new_count} new stored):\n"]
|
| 145 |
for i, r in enumerate(results[:max_results], 1):
|
|
|
|
| 168 |
Formatted bibliography string.
|
| 169 |
"""
|
| 170 |
state = get_magentic_state()
|
| 171 |
+
all_evidence = state.memory.get_all_evidence()
|
| 172 |
+
|
| 173 |
+
if not all_evidence:
|
| 174 |
return "No evidence collected."
|
| 175 |
|
| 176 |
output = ["## References"]
|
| 177 |
+
for i, ev in enumerate(all_evidence, 1):
|
| 178 |
output.append(f"{i}. {ev.citation.formatted}")
|
| 179 |
output.append(f" URL: {ev.citation.url}")
|
| 180 |
|
src/app.py
CHANGED
|
@@ -269,7 +269,7 @@ def create_demo() -> tuple[gr.ChatInterface, gr.Accordion]:
|
|
| 269 |
choices=["simple", "advanced"],
|
| 270 |
value="simple",
|
| 271 |
label="Orchestrator Mode",
|
| 272 |
-
info="⚡ Simple: Free/
|
| 273 |
),
|
| 274 |
gr.Textbox(
|
| 275 |
label="🔑 API Key (Optional)",
|
|
|
|
| 269 |
choices=["simple", "advanced"],
|
| 270 |
value="simple",
|
| 271 |
label="Orchestrator Mode",
|
| 272 |
+
info="⚡ Simple: Free/Any | 🔬 Advanced: OpenAI (Deep Research)",
|
| 273 |
),
|
| 274 |
gr.Textbox(
|
| 275 |
label="🔑 API Key (Optional)",
|
src/orchestrators/advanced.py
CHANGED
|
@@ -152,7 +152,7 @@ class AdvancedOrchestrator(OrchestratorProtocol):
|
|
| 152 |
|
| 153 |
# Initialize context state
|
| 154 |
embedding_service = self._init_embedding_service()
|
| 155 |
-
init_magentic_state(embedding_service)
|
| 156 |
|
| 157 |
workflow = self._build_workflow()
|
| 158 |
|
|
@@ -355,6 +355,7 @@ def _create_deprecated_alias() -> type["AdvancedOrchestrator"]:
|
|
| 355 |
"""
|
| 356 |
|
| 357 |
def __init__(self, *args: Any, **kwargs: Any) -> None:
|
|
|
|
| 358 |
warnings.warn(
|
| 359 |
"MagenticOrchestrator is deprecated, use AdvancedOrchestrator instead. "
|
| 360 |
"The name 'magentic' was confusing with the 'magentic' PyPI package.",
|
|
|
|
| 152 |
|
| 153 |
# Initialize context state
|
| 154 |
embedding_service = self._init_embedding_service()
|
| 155 |
+
init_magentic_state(query, embedding_service)
|
| 156 |
|
| 157 |
workflow = self._build_workflow()
|
| 158 |
|
|
|
|
| 355 |
"""
|
| 356 |
|
| 357 |
def __init__(self, *args: Any, **kwargs: Any) -> None:
|
| 358 |
+
"""Initialize deprecated MagenticOrchestrator (use AdvancedOrchestrator)."""
|
| 359 |
warnings.warn(
|
| 360 |
"MagenticOrchestrator is deprecated, use AdvancedOrchestrator instead. "
|
| 361 |
"The name 'magentic' was confusing with the 'magentic' PyPI package.",
|
src/orchestrators/factory.py
CHANGED
|
@@ -70,7 +70,7 @@ def create_orchestrator(
|
|
| 70 |
search_handler: The search handler (required for simple mode)
|
| 71 |
judge_handler: The judge handler (required for simple mode)
|
| 72 |
config: Optional configuration (max_iterations, timeouts, etc.)
|
| 73 |
-
mode: "simple", "magentic", "advanced", "hierarchical"
|
| 74 |
Note: "magentic" is an alias for "advanced" (kept for backwards compatibility)
|
| 75 |
api_key: Optional API key for advanced mode (OpenAI)
|
| 76 |
|
|
|
|
| 70 |
search_handler: The search handler (required for simple mode)
|
| 71 |
judge_handler: The judge handler (required for simple mode)
|
| 72 |
config: Optional configuration (max_iterations, timeouts, etc.)
|
| 73 |
+
mode: "simple", "magentic", "advanced", or "hierarchical"
|
| 74 |
Note: "magentic" is an alias for "advanced" (kept for backwards compatibility)
|
| 75 |
api_key: Optional API key for advanced mode (OpenAI)
|
| 76 |
|
src/orchestrators/hierarchical.py
CHANGED
|
@@ -98,7 +98,7 @@ class HierarchicalOrchestrator(OrchestratorProtocol):
|
|
| 98 |
logger.info("Starting hierarchical orchestrator", query=query)
|
| 99 |
|
| 100 |
service = get_embedding_service_if_available()
|
| 101 |
-
init_magentic_state(service)
|
| 102 |
|
| 103 |
yield AgentEvent(type="started", message=f"Starting research: {query}")
|
| 104 |
|
|
|
|
| 98 |
logger.info("Starting hierarchical orchestrator", query=query)
|
| 99 |
|
| 100 |
service = get_embedding_service_if_available()
|
| 101 |
+
init_magentic_state(query, service)
|
| 102 |
|
| 103 |
yield AgentEvent(type="started", message=f"Starting research: {query}")
|
| 104 |
|
src/orchestrators/langgraph_orchestrator.py
ADDED
|
@@ -0,0 +1,135 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""LangGraph-based orchestrator implementation.
|
| 2 |
+
|
| 3 |
+
NOTE: This orchestrator is deprecated in favor of the shared memory layer
|
| 4 |
+
integrated into Simple and Advanced modes (SPEC-08). It remains as a reference
|
| 5 |
+
implementation for LangGraph patterns.
|
| 6 |
+
"""
|
| 7 |
+
|
| 8 |
+
import os
|
| 9 |
+
import uuid
|
| 10 |
+
from collections.abc import AsyncGenerator, AsyncIterator
|
| 11 |
+
from typing import Any, Literal
|
| 12 |
+
|
| 13 |
+
from langchain_huggingface import ChatHuggingFace, HuggingFaceEndpoint
|
| 14 |
+
from langgraph.checkpoint.sqlite.aio import AsyncSqliteSaver
|
| 15 |
+
|
| 16 |
+
from src.agents.graph.state import ResearchState
|
| 17 |
+
from src.agents.graph.workflow import create_research_graph
|
| 18 |
+
from src.orchestrators.base import OrchestratorProtocol
|
| 19 |
+
from src.services.embeddings import EmbeddingService
|
| 20 |
+
from src.utils.config import settings
|
| 21 |
+
from src.utils.models import AgentEvent
|
| 22 |
+
|
| 23 |
+
|
| 24 |
+
class LangGraphOrchestrator(OrchestratorProtocol):
|
| 25 |
+
"""State-driven research orchestrator using LangGraph.
|
| 26 |
+
|
| 27 |
+
DEPRECATED: Memory features are now integrated into Simple and Advanced modes.
|
| 28 |
+
This class is kept for reference and potential future use.
|
| 29 |
+
"""
|
| 30 |
+
|
| 31 |
+
def __init__(
|
| 32 |
+
self,
|
| 33 |
+
max_iterations: int = 10,
|
| 34 |
+
checkpoint_path: str | None = None,
|
| 35 |
+
):
|
| 36 |
+
self._max_iterations = max_iterations
|
| 37 |
+
self._checkpoint_path = checkpoint_path
|
| 38 |
+
|
| 39 |
+
# Initialize the LLM (Llama 3.1 via HF Inference)
|
| 40 |
+
# We use the serverless API by default
|
| 41 |
+
repo_id = "meta-llama/Llama-3.1-70B-Instruct"
|
| 42 |
+
|
| 43 |
+
# Ensure we have an API key
|
| 44 |
+
api_key = settings.hf_token
|
| 45 |
+
if not api_key:
|
| 46 |
+
raise ValueError(
|
| 47 |
+
"HF_TOKEN (Hugging Face API Token) is required for LangGraph orchestrator."
|
| 48 |
+
)
|
| 49 |
+
|
| 50 |
+
self.llm_endpoint = HuggingFaceEndpoint( # type: ignore
|
| 51 |
+
repo_id=repo_id,
|
| 52 |
+
task="text-generation",
|
| 53 |
+
max_new_tokens=1024,
|
| 54 |
+
temperature=0.1,
|
| 55 |
+
huggingfacehub_api_token=api_key,
|
| 56 |
+
)
|
| 57 |
+
self.chat_model = ChatHuggingFace(llm=self.llm_endpoint)
|
| 58 |
+
|
| 59 |
+
async def run(self, query: str) -> AsyncGenerator[AgentEvent, None]:
|
| 60 |
+
"""Execute research workflow with structured state."""
|
| 61 |
+
# Initialize embedding service for this specific run (ensures isolation)
|
| 62 |
+
embedding_service = EmbeddingService()
|
| 63 |
+
|
| 64 |
+
# Setup checkpointer (SQLite for dev)
|
| 65 |
+
if self._checkpoint_path:
|
| 66 |
+
# Ensure directory exists (handle paths without directory component)
|
| 67 |
+
dir_name = os.path.dirname(self._checkpoint_path)
|
| 68 |
+
if dir_name:
|
| 69 |
+
os.makedirs(dir_name, exist_ok=True)
|
| 70 |
+
saver = AsyncSqliteSaver.from_conn_string(self._checkpoint_path)
|
| 71 |
+
else:
|
| 72 |
+
saver = None
|
| 73 |
+
|
| 74 |
+
# Use a helper context manager to handle the optional saver
|
| 75 |
+
from contextlib import asynccontextmanager
|
| 76 |
+
|
| 77 |
+
@asynccontextmanager
|
| 78 |
+
async def get_graph_context(saver_instance: Any) -> AsyncIterator[Any]:
|
| 79 |
+
if saver_instance:
|
| 80 |
+
async with saver_instance as s:
|
| 81 |
+
yield create_research_graph(
|
| 82 |
+
llm=self.chat_model,
|
| 83 |
+
checkpointer=s,
|
| 84 |
+
embedding_service=embedding_service,
|
| 85 |
+
)
|
| 86 |
+
else:
|
| 87 |
+
yield create_research_graph(
|
| 88 |
+
llm=self.chat_model,
|
| 89 |
+
checkpointer=None,
|
| 90 |
+
embedding_service=embedding_service,
|
| 91 |
+
)
|
| 92 |
+
|
| 93 |
+
async with get_graph_context(saver) as graph:
|
| 94 |
+
# Initialize state
|
| 95 |
+
initial_state: ResearchState = {
|
| 96 |
+
"query": query,
|
| 97 |
+
"hypotheses": [],
|
| 98 |
+
"conflicts": [],
|
| 99 |
+
"evidence_ids": [],
|
| 100 |
+
"messages": [],
|
| 101 |
+
"next_step": "search", # Start with search
|
| 102 |
+
"iteration_count": 0,
|
| 103 |
+
"max_iterations": self._max_iterations,
|
| 104 |
+
}
|
| 105 |
+
|
| 106 |
+
yield AgentEvent(type="started", message=f"Starting LangGraph research: {query}")
|
| 107 |
+
|
| 108 |
+
# Config for persistence (unique thread_id per run to avoid state conflicts)
|
| 109 |
+
thread_id = str(uuid.uuid4())
|
| 110 |
+
config = {"configurable": {"thread_id": thread_id}} if saver else {}
|
| 111 |
+
|
| 112 |
+
# Stream events
|
| 113 |
+
# We use astream to get updates from the graph
|
| 114 |
+
async for event in graph.astream(initial_state, config=config):
|
| 115 |
+
# Event is a dict of node_name -> state_update
|
| 116 |
+
for node_name, update in event.items():
|
| 117 |
+
if update.get("messages"):
|
| 118 |
+
last_msg = update["messages"][-1]
|
| 119 |
+
event_type: Literal["progress", "thinking", "searching"] = "progress"
|
| 120 |
+
if node_name == "supervisor":
|
| 121 |
+
event_type = "thinking"
|
| 122 |
+
elif node_name == "search":
|
| 123 |
+
event_type = "searching"
|
| 124 |
+
|
| 125 |
+
yield AgentEvent(
|
| 126 |
+
type=event_type, message=str(last_msg.content), data={"node": node_name}
|
| 127 |
+
)
|
| 128 |
+
elif node_name == "supervisor":
|
| 129 |
+
yield AgentEvent(
|
| 130 |
+
type="thinking",
|
| 131 |
+
message=f"Supervisor decided: {update.get('next_step')}",
|
| 132 |
+
data={"node": node_name},
|
| 133 |
+
)
|
| 134 |
+
|
| 135 |
+
yield AgentEvent(type="complete", message="Research complete.")
|
src/orchestrators/simple.py
CHANGED
|
@@ -93,36 +93,6 @@ class Orchestrator:
|
|
| 93 |
self._enable_analysis = False
|
| 94 |
return self._analyzer
|
| 95 |
|
| 96 |
-
def _get_embeddings(self) -> EmbeddingService | None:
|
| 97 |
-
"""Lazy initialization of EmbeddingService."""
|
| 98 |
-
if self._embeddings is None and self._enable_embeddings:
|
| 99 |
-
from src.utils.service_loader import get_embedding_service_if_available
|
| 100 |
-
|
| 101 |
-
self._embeddings = get_embedding_service_if_available()
|
| 102 |
-
if self._embeddings is None:
|
| 103 |
-
self._enable_embeddings = False
|
| 104 |
-
return self._embeddings
|
| 105 |
-
|
| 106 |
-
async def _deduplicate_and_rank(self, evidence: list[Evidence], query: str) -> list[Evidence]:
|
| 107 |
-
"""Use embeddings to deduplicate and rank evidence by relevance."""
|
| 108 |
-
embeddings = self._get_embeddings()
|
| 109 |
-
if not embeddings or not evidence:
|
| 110 |
-
return evidence
|
| 111 |
-
|
| 112 |
-
try:
|
| 113 |
-
# Deduplicate using semantic similarity
|
| 114 |
-
unique_evidence: list[Evidence] = await embeddings.deduplicate(evidence, threshold=0.85)
|
| 115 |
-
|
| 116 |
-
logger.info(
|
| 117 |
-
"Deduplicated evidence",
|
| 118 |
-
before=len(evidence),
|
| 119 |
-
after=len(unique_evidence),
|
| 120 |
-
)
|
| 121 |
-
return unique_evidence
|
| 122 |
-
except Exception as e:
|
| 123 |
-
logger.warning("Deduplication failed, using original", error=str(e))
|
| 124 |
-
return evidence
|
| 125 |
-
|
| 126 |
async def _run_analysis_phase(
|
| 127 |
self, query: str, evidence: list[Evidence], iteration: int
|
| 128 |
) -> AsyncGenerator[AgentEvent, None]:
|
|
@@ -237,6 +207,10 @@ class Orchestrator:
|
|
| 237 |
Yields:
|
| 238 |
AgentEvent objects for each step of the process
|
| 239 |
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
| 240 |
logger.info("Starting orchestrator", query=query)
|
| 241 |
|
| 242 |
yield AgentEvent(
|
|
@@ -245,6 +219,9 @@ class Orchestrator:
|
|
| 245 |
iteration=0,
|
| 246 |
)
|
| 247 |
|
|
|
|
|
|
|
|
|
|
| 248 |
all_evidence: list[Evidence] = []
|
| 249 |
current_queries = [query]
|
| 250 |
iteration = 0
|
|
@@ -282,15 +259,14 @@ class Orchestrator:
|
|
| 282 |
# Should not happen with return_exceptions=True but safe fallback
|
| 283 |
errors.append(f"Unknown result type for '{q}': {type(result)}")
|
| 284 |
|
| 285 |
-
#
|
| 286 |
-
|
| 287 |
-
|
|
|
|
| 288 |
|
| 289 |
-
#
|
| 290 |
-
#
|
| 291 |
-
|
| 292 |
-
if unique_new:
|
| 293 |
-
unique_new = await self._deduplicate_and_rank(unique_new, query)
|
| 294 |
|
| 295 |
all_evidence.extend(unique_new)
|
| 296 |
|
|
@@ -319,15 +295,35 @@ class Orchestrator:
|
|
| 319 |
# === JUDGE PHASE ===
|
| 320 |
yield AgentEvent(
|
| 321 |
type="judging",
|
| 322 |
-
message=f"Evaluating {len(
|
| 323 |
iteration=iteration,
|
| 324 |
)
|
| 325 |
|
| 326 |
try:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 327 |
assessment = await self.judge.assess(
|
| 328 |
-
query,
|
| 329 |
)
|
| 330 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 331 |
yield AgentEvent(
|
| 332 |
type="judge_complete",
|
| 333 |
message=(
|
|
@@ -388,6 +384,7 @@ class Orchestrator:
|
|
| 388 |
)
|
| 389 |
|
| 390 |
# Generate final response
|
|
|
|
| 391 |
final_response = self._generate_synthesis(query, all_evidence, assessment)
|
| 392 |
|
| 393 |
yield AgentEvent(
|
|
|
|
| 93 |
self._enable_analysis = False
|
| 94 |
return self._analyzer
|
| 95 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 96 |
async def _run_analysis_phase(
|
| 97 |
self, query: str, evidence: list[Evidence], iteration: int
|
| 98 |
) -> AsyncGenerator[AgentEvent, None]:
|
|
|
|
| 207 |
Yields:
|
| 208 |
AgentEvent objects for each step of the process
|
| 209 |
"""
|
| 210 |
+
# Import here to avoid circular deps if any
|
| 211 |
+
from src.agents.graph.state import Hypothesis
|
| 212 |
+
from src.services.research_memory import ResearchMemory
|
| 213 |
+
|
| 214 |
logger.info("Starting orchestrator", query=query)
|
| 215 |
|
| 216 |
yield AgentEvent(
|
|
|
|
| 219 |
iteration=0,
|
| 220 |
)
|
| 221 |
|
| 222 |
+
# Initialize Shared Memory
|
| 223 |
+
# We keep 'all_evidence' for local tracking/reporting, but use Memory for intelligence
|
| 224 |
+
memory = ResearchMemory(query=query)
|
| 225 |
all_evidence: list[Evidence] = []
|
| 226 |
current_queries = [query]
|
| 227 |
iteration = 0
|
|
|
|
| 259 |
# Should not happen with return_exceptions=True but safe fallback
|
| 260 |
errors.append(f"Unknown result type for '{q}': {type(result)}")
|
| 261 |
|
| 262 |
+
# === MEMORY INTEGRATION: Store and Deduplicate ===
|
| 263 |
+
# ResearchMemory handles semantic deduplication and persistence
|
| 264 |
+
# It returns IDs of actual NEW evidence
|
| 265 |
+
new_ids = await memory.store_evidence(new_evidence)
|
| 266 |
|
| 267 |
+
# Filter new_evidence to only keep what was actually new (based on IDs)
|
| 268 |
+
# Note: This assumes IDs are URLs, which match Citation.url
|
| 269 |
+
unique_new = [e for e in new_evidence if e.citation.url in new_ids]
|
|
|
|
|
|
|
| 270 |
|
| 271 |
all_evidence.extend(unique_new)
|
| 272 |
|
|
|
|
| 295 |
# === JUDGE PHASE ===
|
| 296 |
yield AgentEvent(
|
| 297 |
type="judging",
|
| 298 |
+
message=f"Evaluating evidence (Memory: {len(memory.evidence_ids)} docs)...",
|
| 299 |
iteration=iteration,
|
| 300 |
)
|
| 301 |
|
| 302 |
try:
|
| 303 |
+
# Retrieve RELEVANT evidence from memory for the judge
|
| 304 |
+
# This keeps the context window manageable and focused
|
| 305 |
+
judge_context = await memory.get_relevant_evidence(n=30)
|
| 306 |
+
|
| 307 |
+
# Fallback if memory is empty (shouldn't happen if search worked)
|
| 308 |
+
if not judge_context and all_evidence:
|
| 309 |
+
judge_context = all_evidence[-30:]
|
| 310 |
+
|
| 311 |
assessment = await self.judge.assess(
|
| 312 |
+
query, judge_context, iteration, self.config.max_iterations
|
| 313 |
)
|
| 314 |
|
| 315 |
+
# === MEMORY INTEGRATION: Track Hypotheses ===
|
| 316 |
+
# Convert loose strings to structured Hypotheses
|
| 317 |
+
for candidate in assessment.details.drug_candidates:
|
| 318 |
+
h = Hypothesis(
|
| 319 |
+
id=candidate.replace(" ", "_").lower(),
|
| 320 |
+
statement=f"{candidate} is a potential candidate for {query}",
|
| 321 |
+
status="proposed",
|
| 322 |
+
confidence=assessment.confidence,
|
| 323 |
+
reasoning=f" identified in iteration {iteration}",
|
| 324 |
+
)
|
| 325 |
+
memory.add_hypothesis(h)
|
| 326 |
+
|
| 327 |
yield AgentEvent(
|
| 328 |
type="judge_complete",
|
| 329 |
message=(
|
|
|
|
| 384 |
)
|
| 385 |
|
| 386 |
# Generate final response
|
| 387 |
+
# Use all gathered evidence for the final report
|
| 388 |
final_response = self._generate_synthesis(query, all_evidence, assessment)
|
| 389 |
|
| 390 |
yield AgentEvent(
|
src/services/research_memory.py
ADDED
|
@@ -0,0 +1,133 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Shared research memory layer for all orchestration modes."""
|
| 2 |
+
|
| 3 |
+
from typing import Any
|
| 4 |
+
|
| 5 |
+
import structlog
|
| 6 |
+
|
| 7 |
+
from src.agents.graph.state import Conflict, Hypothesis
|
| 8 |
+
from src.services.embeddings import EmbeddingService
|
| 9 |
+
from src.utils.models import Citation, Evidence
|
| 10 |
+
|
| 11 |
+
logger = structlog.get_logger()
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
class ResearchMemory:
|
| 15 |
+
"""Shared cognitive state for research workflows.
|
| 16 |
+
|
| 17 |
+
This is the memory layer that ALL modes use.
|
| 18 |
+
It mimics the LangGraph state management but for manual orchestration.
|
| 19 |
+
"""
|
| 20 |
+
|
| 21 |
+
def __init__(self, query: str, embedding_service: EmbeddingService | None = None):
|
| 22 |
+
"""Initialize ResearchMemory with a query and optional embedding service.
|
| 23 |
+
|
| 24 |
+
Args:
|
| 25 |
+
query: The research query to track evidence for.
|
| 26 |
+
embedding_service: Service for semantic search and deduplication.
|
| 27 |
+
Creates a new instance if not provided.
|
| 28 |
+
"""
|
| 29 |
+
self.query = query
|
| 30 |
+
self.hypotheses: list[Hypothesis] = []
|
| 31 |
+
self.conflicts: list[Conflict] = []
|
| 32 |
+
self.evidence_ids: list[str] = []
|
| 33 |
+
self._evidence_cache: dict[str, Evidence] = {}
|
| 34 |
+
self.iteration_count: int = 0
|
| 35 |
+
|
| 36 |
+
# Injected service
|
| 37 |
+
self._embedding_service = embedding_service or EmbeddingService()
|
| 38 |
+
|
| 39 |
+
async def store_evidence(self, evidence: list[Evidence]) -> list[str]:
|
| 40 |
+
"""Store evidence and return new IDs (deduped)."""
|
| 41 |
+
if not self._embedding_service:
|
| 42 |
+
return []
|
| 43 |
+
|
| 44 |
+
unique = await self._embedding_service.deduplicate(evidence)
|
| 45 |
+
new_ids = []
|
| 46 |
+
|
| 47 |
+
for ev in unique:
|
| 48 |
+
ev_id = ev.citation.url
|
| 49 |
+
await self._embedding_service.add_evidence(
|
| 50 |
+
evidence_id=ev_id,
|
| 51 |
+
content=ev.content,
|
| 52 |
+
metadata={
|
| 53 |
+
"source": ev.citation.source,
|
| 54 |
+
"title": ev.citation.title,
|
| 55 |
+
"date": ev.citation.date,
|
| 56 |
+
"authors": ",".join(ev.citation.authors or []),
|
| 57 |
+
"url": ev.citation.url,
|
| 58 |
+
},
|
| 59 |
+
)
|
| 60 |
+
new_ids.append(ev_id)
|
| 61 |
+
self._evidence_cache[ev_id] = ev
|
| 62 |
+
|
| 63 |
+
self.evidence_ids.extend(new_ids)
|
| 64 |
+
if new_ids:
|
| 65 |
+
logger.info("Stored new evidence", count=len(new_ids))
|
| 66 |
+
return new_ids
|
| 67 |
+
|
| 68 |
+
def get_all_evidence(self) -> list[Evidence]:
|
| 69 |
+
"""Get all accumulated evidence objects."""
|
| 70 |
+
return list(self._evidence_cache.values())
|
| 71 |
+
|
| 72 |
+
async def get_relevant_evidence(self, n: int = 20) -> list[Evidence]:
|
| 73 |
+
"""Retrieve relevant evidence for current query."""
|
| 74 |
+
if not self._embedding_service:
|
| 75 |
+
return []
|
| 76 |
+
|
| 77 |
+
results = await self._embedding_service.search_similar(self.query, n_results=n)
|
| 78 |
+
evidence_list = []
|
| 79 |
+
|
| 80 |
+
for r in results:
|
| 81 |
+
meta = r.get("metadata", {})
|
| 82 |
+
authors_str = meta.get("authors", "")
|
| 83 |
+
authors = authors_str.split(",") if authors_str else []
|
| 84 |
+
|
| 85 |
+
# Reconstruct Evidence object
|
| 86 |
+
source_raw = meta.get("source", "web")
|
| 87 |
+
|
| 88 |
+
# Basic validation/fallback for source
|
| 89 |
+
valid_sources = [
|
| 90 |
+
"pubmed",
|
| 91 |
+
"clinicaltrials",
|
| 92 |
+
"europepmc",
|
| 93 |
+
"preprint",
|
| 94 |
+
"openalex",
|
| 95 |
+
"web",
|
| 96 |
+
]
|
| 97 |
+
source_name: Any = source_raw if source_raw in valid_sources else "web"
|
| 98 |
+
|
| 99 |
+
citation = Citation(
|
| 100 |
+
source=source_name,
|
| 101 |
+
title=meta.get("title", "Unknown"),
|
| 102 |
+
url=meta.get("url", r.get("id", "")),
|
| 103 |
+
date=meta.get("date", "Unknown"),
|
| 104 |
+
authors=authors,
|
| 105 |
+
)
|
| 106 |
+
|
| 107 |
+
evidence_list.append(
|
| 108 |
+
Evidence(
|
| 109 |
+
content=r.get("content", ""),
|
| 110 |
+
citation=citation,
|
| 111 |
+
relevance=1.0 - r.get("distance", 0.5), # Approx conversion
|
| 112 |
+
)
|
| 113 |
+
)
|
| 114 |
+
|
| 115 |
+
return evidence_list
|
| 116 |
+
|
| 117 |
+
def add_hypothesis(self, hypothesis: Hypothesis) -> None:
|
| 118 |
+
"""Add a hypothesis to tracking."""
|
| 119 |
+
self.hypotheses.append(hypothesis)
|
| 120 |
+
logger.info("Added hypothesis", id=hypothesis.id, confidence=hypothesis.confidence)
|
| 121 |
+
|
| 122 |
+
def add_conflict(self, conflict: Conflict) -> None:
|
| 123 |
+
"""Add a detected conflict."""
|
| 124 |
+
self.conflicts.append(conflict)
|
| 125 |
+
logger.info("Added conflict", id=conflict.id)
|
| 126 |
+
|
| 127 |
+
def get_open_conflicts(self) -> list[Conflict]:
|
| 128 |
+
"""Get unresolved conflicts."""
|
| 129 |
+
return [c for c in self.conflicts if c.status == "open"]
|
| 130 |
+
|
| 131 |
+
def get_confirmed_hypotheses(self) -> list[Hypothesis]:
|
| 132 |
+
"""Get high-confidence hypotheses."""
|
| 133 |
+
return [h for h in self.hypotheses if h.confidence > 0.8]
|
tests/integration/graph/test_workflow.py
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Integration tests for the research graph."""
|
| 2 |
+
|
| 3 |
+
import pytest
|
| 4 |
+
|
| 5 |
+
from src.agents.graph.workflow import create_research_graph
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
@pytest.mark.asyncio
|
| 9 |
+
async def test_graph_execution_flow(mocker):
|
| 10 |
+
"""Test the graph runs from start to finish (simulated)."""
|
| 11 |
+
# Mock Agent.run to avoid API calls
|
| 12 |
+
mock_run = mocker.patch("pydantic_ai.Agent.run")
|
| 13 |
+
# Return dummy report/assessment
|
| 14 |
+
mock_result = mocker.Mock()
|
| 15 |
+
mock_result.output = mocker.Mock() # generic output
|
| 16 |
+
# For judge: output.hypotheses = []
|
| 17 |
+
mock_result.output.hypotheses = []
|
| 18 |
+
# For report: validate_references needs specific structure?
|
| 19 |
+
# Actually validate_references expects a ResearchReport.
|
| 20 |
+
# Let's mock the return of validate_references too if needed, or make report valid.
|
| 21 |
+
# Or just mock the node logic? No, we want to test the graph wiring.
|
| 22 |
+
|
| 23 |
+
# Minimal valid report
|
| 24 |
+
from src.utils.models import ReportSection, ResearchReport
|
| 25 |
+
|
| 26 |
+
dummy_section = ReportSection(title="Dummy", content="Content")
|
| 27 |
+
|
| 28 |
+
mock_report = ResearchReport(
|
| 29 |
+
title="Test Report",
|
| 30 |
+
executive_summary="Summary " * 20, # Ensure > 100 chars
|
| 31 |
+
research_question="Question",
|
| 32 |
+
methodology=dummy_section,
|
| 33 |
+
hypotheses_tested=[],
|
| 34 |
+
mechanistic_findings=dummy_section,
|
| 35 |
+
clinical_findings=dummy_section,
|
| 36 |
+
drug_candidates=[],
|
| 37 |
+
limitations=["None"],
|
| 38 |
+
conclusion="Conclusion",
|
| 39 |
+
references=[],
|
| 40 |
+
confidence_score=0.5,
|
| 41 |
+
)
|
| 42 |
+
|
| 43 |
+
# Since fallback supervisor skips Judge and goes Search -> Synthesize,
|
| 44 |
+
# Agent.run is only called once by SynthesizeNode.
|
| 45 |
+
# It expects a ResearchReport.
|
| 46 |
+
mock_result.output = mock_report
|
| 47 |
+
mock_run.return_value = mock_result
|
| 48 |
+
|
| 49 |
+
# Create graph without LLM (will use fallback supervisor logic -> search -> synthesize)
|
| 50 |
+
graph = create_research_graph(llm=None)
|
| 51 |
+
|
| 52 |
+
# Initial state
|
| 53 |
+
initial_state = {
|
| 54 |
+
"query": "test query",
|
| 55 |
+
"hypotheses": [],
|
| 56 |
+
"conflicts": [],
|
| 57 |
+
"evidence_ids": [],
|
| 58 |
+
"messages": [],
|
| 59 |
+
"next_step": "search",
|
| 60 |
+
"iteration_count": 0,
|
| 61 |
+
"max_iterations": 2, # Short run
|
| 62 |
+
}
|
| 63 |
+
|
| 64 |
+
# Execute graph
|
| 65 |
+
events = []
|
| 66 |
+
async for event in graph.astream(initial_state):
|
| 67 |
+
events.append(event)
|
| 68 |
+
|
| 69 |
+
# Verify flow
|
| 70 |
+
# 1. Supervisor (start) -> decides search
|
| 71 |
+
# 2. Search node runs
|
| 72 |
+
# 3. Supervisor runs again -> max_iter reached -> synthesize
|
| 73 |
+
# 4. Synthesize runs
|
| 74 |
+
# 5. End
|
| 75 |
+
|
| 76 |
+
# Just check we hit synthesis
|
| 77 |
+
final_event = events[-1]
|
| 78 |
+
assert "synthesize" in final_event or "messages" in str(final_event)
|
tests/unit/graph/test_nodes.py
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Unit tests for graph nodes."""
|
| 2 |
+
|
| 3 |
+
import pytest
|
| 4 |
+
|
| 5 |
+
from src.agents.graph.nodes import judge_node, search_node, supervisor_node
|
| 6 |
+
from src.agents.graph.state import ResearchState
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
@pytest.mark.asyncio
|
| 10 |
+
async def test_judge_node_initialization(mocker):
|
| 11 |
+
"""Test judge creates initial hypothesis if none exist."""
|
| 12 |
+
# Mock get_model to avoid needing real API keys
|
| 13 |
+
mocker.patch("src.agents.graph.nodes.get_model", return_value=mocker.Mock())
|
| 14 |
+
|
| 15 |
+
# Create a mock assessment with attributes
|
| 16 |
+
mock_hypothesis = mocker.Mock()
|
| 17 |
+
mock_hypothesis.drug = "Caffeine"
|
| 18 |
+
mock_hypothesis.target = "Adenosine"
|
| 19 |
+
mock_hypothesis.pathway = "CNS"
|
| 20 |
+
mock_hypothesis.effect = "Alertness"
|
| 21 |
+
mock_hypothesis.confidence = 0.8
|
| 22 |
+
|
| 23 |
+
mock_assessment = mocker.Mock()
|
| 24 |
+
mock_assessment.hypotheses = [mock_hypothesis]
|
| 25 |
+
|
| 26 |
+
mock_result = mocker.Mock()
|
| 27 |
+
mock_result.output = mock_assessment
|
| 28 |
+
|
| 29 |
+
# Mock the Agent class entirely
|
| 30 |
+
mock_agent_instance = mocker.Mock()
|
| 31 |
+
mock_agent_instance.run = mocker.AsyncMock(return_value=mock_result)
|
| 32 |
+
mocker.patch("src.agents.graph.nodes.Agent", return_value=mock_agent_instance)
|
| 33 |
+
|
| 34 |
+
state: ResearchState = {
|
| 35 |
+
"query": "Does coffee cause cancer?",
|
| 36 |
+
"hypotheses": [],
|
| 37 |
+
"conflicts": [],
|
| 38 |
+
"evidence_ids": [],
|
| 39 |
+
"messages": [],
|
| 40 |
+
"next_step": "judge",
|
| 41 |
+
"iteration_count": 0,
|
| 42 |
+
"max_iterations": 10,
|
| 43 |
+
}
|
| 44 |
+
|
| 45 |
+
update = await judge_node(state)
|
| 46 |
+
|
| 47 |
+
assert "hypotheses" in update
|
| 48 |
+
assert len(update["hypotheses"]) == 1
|
| 49 |
+
assert update["hypotheses"][0].id == "Caffeine"
|
| 50 |
+
assert update["hypotheses"][0].status == "proposed"
|
| 51 |
+
|
| 52 |
+
|
| 53 |
+
@pytest.mark.asyncio
|
| 54 |
+
async def test_supervisor_termination():
|
| 55 |
+
"""Test supervisor forces synthesis at max iterations."""
|
| 56 |
+
state: ResearchState = {
|
| 57 |
+
"query": "test",
|
| 58 |
+
"hypotheses": [],
|
| 59 |
+
"conflicts": [],
|
| 60 |
+
"evidence_ids": [],
|
| 61 |
+
"messages": [],
|
| 62 |
+
"next_step": "search",
|
| 63 |
+
"iteration_count": 10, # Max reached
|
| 64 |
+
"max_iterations": 10,
|
| 65 |
+
}
|
| 66 |
+
|
| 67 |
+
update = await supervisor_node(state)
|
| 68 |
+
assert update["next_step"] == "synthesize"
|
| 69 |
+
|
| 70 |
+
|
| 71 |
+
@pytest.mark.asyncio
|
| 72 |
+
async def test_search_node_execution(mocker):
|
| 73 |
+
"""Test search node calls tools (mocked)."""
|
| 74 |
+
# Mock the tools
|
| 75 |
+
mocker.patch("src.tools.pubmed.PubMedTool.search", return_value=[])
|
| 76 |
+
mocker.patch("src.tools.clinicaltrials.ClinicalTrialsTool.search", return_value=[])
|
| 77 |
+
mocker.patch("src.tools.europepmc.EuropePMCTool.search", return_value=[])
|
| 78 |
+
|
| 79 |
+
state: ResearchState = {
|
| 80 |
+
"query": "test",
|
| 81 |
+
"hypotheses": [],
|
| 82 |
+
"conflicts": [],
|
| 83 |
+
"evidence_ids": [],
|
| 84 |
+
"messages": [],
|
| 85 |
+
"next_step": "search",
|
| 86 |
+
"iteration_count": 0,
|
| 87 |
+
"max_iterations": 10,
|
| 88 |
+
}
|
| 89 |
+
|
| 90 |
+
update = await search_node(state)
|
| 91 |
+
assert "messages" in update
|
| 92 |
+
# Matches "Found 0 total, 0 unique new papers."
|
| 93 |
+
assert "0 unique new papers" in update["messages"][0].content
|
tests/unit/graph/test_state.py
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Unit tests for LangGraph state management."""
|
| 2 |
+
|
| 3 |
+
import operator
|
| 4 |
+
|
| 5 |
+
from langchain_core.messages import AIMessage, HumanMessage
|
| 6 |
+
|
| 7 |
+
from src.agents.graph.state import Conflict, Hypothesis, ResearchState
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
def test_state_schema_definition():
|
| 11 |
+
"""Verify the ResearchState TypedDict structure."""
|
| 12 |
+
# Just checking we can instantiate it (it's a TypedDict, so it's just a dict at runtime)
|
| 13 |
+
state: ResearchState = {
|
| 14 |
+
"query": "test query",
|
| 15 |
+
"hypotheses": [],
|
| 16 |
+
"conflicts": [],
|
| 17 |
+
"evidence_ids": [],
|
| 18 |
+
"messages": [],
|
| 19 |
+
"next_step": "search",
|
| 20 |
+
"iteration_count": 0,
|
| 21 |
+
"max_iterations": 10,
|
| 22 |
+
}
|
| 23 |
+
assert state["query"] == "test query"
|
| 24 |
+
assert state["next_step"] == "search"
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
def test_hypothesis_pydantic_model():
|
| 28 |
+
"""Verify Hypothesis Pydantic model validation."""
|
| 29 |
+
hypo = Hypothesis(id="h1", statement="Test hypothesis", status="proposed", confidence=0.5)
|
| 30 |
+
assert hypo.id == "h1"
|
| 31 |
+
assert hypo.status == "proposed"
|
| 32 |
+
assert hypo.confidence == 0.5
|
| 33 |
+
# Test default lists
|
| 34 |
+
assert hypo.supporting_evidence_ids == []
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
def test_state_reducers_simulation():
|
| 38 |
+
"""Simulate how LangGraph reduces state updates (operator.add)."""
|
| 39 |
+
# Initial state
|
| 40 |
+
messages = [HumanMessage(content="Start")]
|
| 41 |
+
|
| 42 |
+
# Node 1 update (Search)
|
| 43 |
+
new_messages = [AIMessage(content="Found results")]
|
| 44 |
+
|
| 45 |
+
# Simulation of operator.add reducer
|
| 46 |
+
messages = operator.add(messages, new_messages)
|
| 47 |
+
|
| 48 |
+
assert len(messages) == 2
|
| 49 |
+
assert isinstance(messages[0], HumanMessage)
|
| 50 |
+
assert isinstance(messages[1], AIMessage)
|
| 51 |
+
assert messages[1].content == "Found results"
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
def test_conflict_model():
|
| 55 |
+
"""Verify Conflict model."""
|
| 56 |
+
conflict = Conflict(
|
| 57 |
+
id="c1",
|
| 58 |
+
description="Conflict A vs B",
|
| 59 |
+
source_a_id="doc1",
|
| 60 |
+
source_b_id="doc2",
|
| 61 |
+
status="open",
|
| 62 |
+
)
|
| 63 |
+
assert conflict.status == "open"
|
| 64 |
+
assert conflict.resolution is None
|
tests/unit/services/test_research_memory.py
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Tests for the shared ResearchMemory service."""
|
| 2 |
+
|
| 3 |
+
from unittest.mock import AsyncMock, MagicMock
|
| 4 |
+
|
| 5 |
+
import pytest
|
| 6 |
+
|
| 7 |
+
from src.agents.graph.state import Conflict, Hypothesis
|
| 8 |
+
from src.services.research_memory import ResearchMemory
|
| 9 |
+
from src.utils.models import Citation, Evidence
|
| 10 |
+
|
| 11 |
+
|
| 12 |
+
@pytest.fixture
|
| 13 |
+
def mock_embedding_service():
|
| 14 |
+
service = MagicMock()
|
| 15 |
+
service.deduplicate = AsyncMock()
|
| 16 |
+
service.add_evidence = AsyncMock()
|
| 17 |
+
service.search_similar = AsyncMock()
|
| 18 |
+
return service
|
| 19 |
+
|
| 20 |
+
|
| 21 |
+
@pytest.fixture
|
| 22 |
+
def memory(mock_embedding_service):
|
| 23 |
+
return ResearchMemory(query="test query", embedding_service=mock_embedding_service)
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
@pytest.mark.asyncio
|
| 27 |
+
async def test_store_evidence(memory, mock_embedding_service):
|
| 28 |
+
# Setup
|
| 29 |
+
ev1 = Evidence(
|
| 30 |
+
content="content1",
|
| 31 |
+
citation=Citation(source="pubmed", title="t1", url="u1", date="2023", authors=["a1"]),
|
| 32 |
+
)
|
| 33 |
+
ev2 = Evidence(
|
| 34 |
+
content="content2",
|
| 35 |
+
citation=Citation(source="pubmed", title="t2", url="u2", date="2023", authors=["a2"]),
|
| 36 |
+
)
|
| 37 |
+
|
| 38 |
+
# deduplicate returns only ev1 (simulating ev2 is duplicate)
|
| 39 |
+
mock_embedding_service.deduplicate.return_value = [ev1]
|
| 40 |
+
|
| 41 |
+
# Execute
|
| 42 |
+
new_ids = await memory.store_evidence([ev1, ev2])
|
| 43 |
+
|
| 44 |
+
# Verify
|
| 45 |
+
assert new_ids == ["u1"]
|
| 46 |
+
assert memory.evidence_ids == ["u1"]
|
| 47 |
+
|
| 48 |
+
# deduplicate called with both
|
| 49 |
+
mock_embedding_service.deduplicate.assert_called_once_with([ev1, ev2])
|
| 50 |
+
|
| 51 |
+
# add_evidence called only for ev1
|
| 52 |
+
mock_embedding_service.add_evidence.assert_called_once()
|
| 53 |
+
args = mock_embedding_service.add_evidence.call_args[1]
|
| 54 |
+
assert args["evidence_id"] == "u1"
|
| 55 |
+
assert args["content"] == "content1"
|
| 56 |
+
|
| 57 |
+
|
| 58 |
+
@pytest.mark.asyncio
|
| 59 |
+
async def test_get_relevant_evidence(memory, mock_embedding_service):
|
| 60 |
+
# Setup mock return from ChromaDB format
|
| 61 |
+
mock_embedding_service.search_similar.return_value = [
|
| 62 |
+
{
|
| 63 |
+
"id": "u1",
|
| 64 |
+
"content": "content1",
|
| 65 |
+
"metadata": {
|
| 66 |
+
"source": "pubmed",
|
| 67 |
+
"title": "t1",
|
| 68 |
+
"date": "2023",
|
| 69 |
+
"authors": "a1,a2",
|
| 70 |
+
"url": "u1",
|
| 71 |
+
},
|
| 72 |
+
"distance": 0.1,
|
| 73 |
+
}
|
| 74 |
+
]
|
| 75 |
+
|
| 76 |
+
# Execute
|
| 77 |
+
results = await memory.get_relevant_evidence(n=5)
|
| 78 |
+
|
| 79 |
+
# Verify
|
| 80 |
+
assert len(results) == 1
|
| 81 |
+
ev = results[0]
|
| 82 |
+
assert isinstance(ev, Evidence)
|
| 83 |
+
assert ev.content == "content1"
|
| 84 |
+
assert ev.citation.title == "t1"
|
| 85 |
+
assert ev.citation.authors == ["a1", "a2"]
|
| 86 |
+
assert ev.relevance > 0.8 # 1.0 - 0.1 = 0.9
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
def test_hypothesis_tracking(memory):
|
| 90 |
+
h1 = Hypothesis(id="h1", statement="drug -> target", status="confirmed", confidence=0.9)
|
| 91 |
+
h2 = Hypothesis(id="h2", statement="drug -> unknown", status="proposed", confidence=0.5)
|
| 92 |
+
|
| 93 |
+
memory.add_hypothesis(h1)
|
| 94 |
+
memory.add_hypothesis(h2)
|
| 95 |
+
|
| 96 |
+
assert len(memory.hypotheses) == 2
|
| 97 |
+
confirmed = memory.get_confirmed_hypotheses()
|
| 98 |
+
assert len(confirmed) == 1
|
| 99 |
+
assert confirmed[0].id == "h1"
|
| 100 |
+
|
| 101 |
+
|
| 102 |
+
def test_conflict_tracking(memory):
|
| 103 |
+
c1 = Conflict(id="c1", description="conflict", source_a_id="a", source_b_id="b", status="open")
|
| 104 |
+
c2 = Conflict(
|
| 105 |
+
id="c2",
|
| 106 |
+
description="resolved conflict",
|
| 107 |
+
source_a_id="a",
|
| 108 |
+
source_b_id="b",
|
| 109 |
+
status="resolved",
|
| 110 |
+
)
|
| 111 |
+
|
| 112 |
+
memory.add_conflict(c1)
|
| 113 |
+
memory.add_conflict(c2)
|
| 114 |
+
|
| 115 |
+
assert len(memory.conflicts) == 2
|
| 116 |
+
open_conflicts = memory.get_open_conflicts()
|
| 117 |
+
assert len(open_conflicts) == 1
|
| 118 |
+
assert open_conflicts[0].id == "c1"
|
tests/unit/test_ui_elements.py
CHANGED
|
@@ -6,17 +6,17 @@ from src.app import create_demo
|
|
| 6 |
def test_examples_include_advanced_mode():
|
| 7 |
"""Verify that one example entry uses 'advanced' mode."""
|
| 8 |
demo, _ = create_demo()
|
| 9 |
-
assert any(
|
| 10 |
-
|
| 11 |
-
)
|
| 12 |
|
| 13 |
|
| 14 |
def test_accordion_label_updated():
|
| 15 |
"""Verify the accordion label reflects the new, concise text."""
|
| 16 |
_, accordion = create_demo()
|
| 17 |
-
assert
|
| 18 |
-
|
| 19 |
-
)
|
| 20 |
|
| 21 |
|
| 22 |
def test_orchestrator_mode_info_text_updated():
|
|
@@ -24,10 +24,10 @@ def test_orchestrator_mode_info_text_updated():
|
|
| 24 |
demo, _ = create_demo()
|
| 25 |
# Assuming additional_inputs is a list and the Radio is the first element
|
| 26 |
orchestrator_radio = demo.additional_inputs[0]
|
| 27 |
-
expected_info = "⚡ Simple: Free/
|
| 28 |
-
assert isinstance(
|
| 29 |
-
|
| 30 |
-
)
|
| 31 |
-
assert
|
| 32 |
-
|
| 33 |
-
)
|
|
|
|
| 6 |
def test_examples_include_advanced_mode():
|
| 7 |
"""Verify that one example entry uses 'advanced' mode."""
|
| 8 |
demo, _ = create_demo()
|
| 9 |
+
assert any(
|
| 10 |
+
example[1] == "advanced" for example in demo.examples
|
| 11 |
+
), "Expected at least one example to be 'advanced' mode"
|
| 12 |
|
| 13 |
|
| 14 |
def test_accordion_label_updated():
|
| 15 |
"""Verify the accordion label reflects the new, concise text."""
|
| 16 |
_, accordion = create_demo()
|
| 17 |
+
assert (
|
| 18 |
+
accordion.label == "⚙️ Mode & API Key (Free tier works!)"
|
| 19 |
+
), "Accordion label not updated to '⚙️ Mode & API Key (Free tier works!)'"
|
| 20 |
|
| 21 |
|
| 22 |
def test_orchestrator_mode_info_text_updated():
|
|
|
|
| 24 |
demo, _ = create_demo()
|
| 25 |
# Assuming additional_inputs is a list and the Radio is the first element
|
| 26 |
orchestrator_radio = demo.additional_inputs[0]
|
| 27 |
+
expected_info = "⚡ Simple: Free/Any | 🔬 Advanced: OpenAI (Deep Research)"
|
| 28 |
+
assert isinstance(
|
| 29 |
+
orchestrator_radio, gr.Radio
|
| 30 |
+
), "Expected first additional input to be gr.Radio"
|
| 31 |
+
assert (
|
| 32 |
+
orchestrator_radio.info == expected_info
|
| 33 |
+
), "Orchestrator Mode info text not updated correctly"
|
uv.lock
CHANGED
|
@@ -1124,6 +1124,11 @@ dependencies = [
|
|
| 1124 |
{ name = "gradio", extra = ["mcp"] },
|
| 1125 |
{ name = "httpx" },
|
| 1126 |
{ name = "huggingface-hub" },
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1127 |
{ name = "limits" },
|
| 1128 |
{ name = "openai" },
|
| 1129 |
{ name = "pydantic" },
|
|
@@ -1133,6 +1138,7 @@ dependencies = [
|
|
| 1133 |
{ name = "requests" },
|
| 1134 |
{ name = "structlog" },
|
| 1135 |
{ name = "tenacity" },
|
|
|
|
| 1136 |
{ name = "xmltodict" },
|
| 1137 |
]
|
| 1138 |
|
|
@@ -1179,6 +1185,11 @@ requires-dist = [
|
|
| 1179 |
{ name = "gradio", extras = ["mcp"], specifier = ">=6.0.0" },
|
| 1180 |
{ name = "httpx", specifier = ">=0.27" },
|
| 1181 |
{ name = "huggingface-hub", specifier = ">=0.20.0" },
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1182 |
{ name = "limits", specifier = ">=3.0" },
|
| 1183 |
{ name = "llama-index", marker = "extra == 'modal'", specifier = ">=0.11.0" },
|
| 1184 |
{ name = "llama-index-embeddings-openai", marker = "extra == 'modal'" },
|
|
@@ -1205,6 +1216,7 @@ requires-dist = [
|
|
| 1205 |
{ name = "structlog", specifier = ">=24.1" },
|
| 1206 |
{ name = "tenacity", specifier = ">=8.2" },
|
| 1207 |
{ name = "typer", marker = "extra == 'dev'", specifier = ">=0.9.0" },
|
|
|
|
| 1208 |
{ name = "xmltodict", specifier = ">=0.13" },
|
| 1209 |
]
|
| 1210 |
provides-extras = ["dev", "magentic", "embeddings", "modal"]
|
|
@@ -2257,6 +2269,27 @@ wheels = [
|
|
| 2257 |
{ url = "https://files.pythonhosted.org/packages/1e/e8/685f47e0d754320684db4425a0967f7d3fa70126bffd76110b7009a0090f/joblib-1.5.2-py3-none-any.whl", hash = "sha256:4e1f0bdbb987e6d843c70cf43714cb276623def372df3c22fe5266b2670bc241", size = 308396 },
|
| 2258 |
]
|
| 2259 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2260 |
[[package]]
|
| 2261 |
name = "jsonschema"
|
| 2262 |
version = "4.25.1"
|
|
@@ -2319,12 +2352,13 @@ wheels = [
|
|
| 2319 |
|
| 2320 |
[[package]]
|
| 2321 |
name = "kubernetes"
|
| 2322 |
-
version = "
|
| 2323 |
source = { registry = "https://pypi.org/simple" }
|
| 2324 |
dependencies = [
|
| 2325 |
{ name = "certifi" },
|
| 2326 |
{ name = "durationpy" },
|
| 2327 |
{ name = "google-auth" },
|
|
|
|
| 2328 |
{ name = "python-dateutil" },
|
| 2329 |
{ name = "pyyaml" },
|
| 2330 |
{ name = "requests" },
|
|
@@ -2333,9 +2367,159 @@ dependencies = [
|
|
| 2333 |
{ name = "urllib3" },
|
| 2334 |
{ name = "websocket-client" },
|
| 2335 |
]
|
| 2336 |
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2337 |
wheels = [
|
| 2338 |
-
{ url = "https://files.pythonhosted.org/packages/
|
| 2339 |
]
|
| 2340 |
|
| 2341 |
[[package]]
|
|
@@ -3818,6 +4002,53 @@ wheels = [
|
|
| 3818 |
{ url = "https://files.pythonhosted.org/packages/1a/bf/def5e25d4d8bfce296a9a7c8248109bf58622c21618b590678f945a2c59c/orjson-3.11.4-cp314-cp314-win_arm64.whl", hash = "sha256:78b999999039db3cf58f6d230f524f04f75f129ba3d1ca2ed121f8657e575d3d", size = 126151 },
|
| 3819 |
]
|
| 3820 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3821 |
[[package]]
|
| 3822 |
name = "overrides"
|
| 3823 |
version = "7.7.0"
|
|
@@ -5121,6 +5352,18 @@ wheels = [
|
|
| 5121 |
{ url = "https://files.pythonhosted.org/packages/3b/5d/63d4ae3b9daea098d5d6f5da83984853c1bbacd5dc826764b249fe119d24/requests_oauthlib-2.0.0-py2.py3-none-any.whl", hash = "sha256:7dd8a5c40426b779b0868c404bdef9768deccf22749cde15852df527e6269b36", size = 24179 },
|
| 5122 |
]
|
| 5123 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5124 |
[[package]]
|
| 5125 |
name = "respx"
|
| 5126 |
version = "0.22.0"
|
|
@@ -5598,6 +5841,18 @@ asyncio = [
|
|
| 5598 |
{ name = "greenlet" },
|
| 5599 |
]
|
| 5600 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5601 |
[[package]]
|
| 5602 |
name = "sse-starlette"
|
| 5603 |
version = "3.0.3"
|
|
@@ -6066,11 +6321,11 @@ wheels = [
|
|
| 6066 |
|
| 6067 |
[[package]]
|
| 6068 |
name = "urllib3"
|
| 6069 |
-
version = "2.
|
| 6070 |
source = { registry = "https://pypi.org/simple" }
|
| 6071 |
-
sdist = { url = "https://files.pythonhosted.org/packages/
|
| 6072 |
wheels = [
|
| 6073 |
-
{ url = "https://files.pythonhosted.org/packages/
|
| 6074 |
]
|
| 6075 |
|
| 6076 |
[[package]]
|
|
@@ -6364,6 +6619,109 @@ wheels = [
|
|
| 6364 |
{ url = "https://files.pythonhosted.org/packages/c0/20/69a0e6058bc5ea74892d089d64dfc3a62ba78917ec5e2cfa70f7c92ba3a5/xmltodict-1.0.2-py3-none-any.whl", hash = "sha256:62d0fddb0dcbc9f642745d8bbf4d81fd17d6dfaec5a15b5c1876300aad92af0d", size = 13893 },
|
| 6365 |
]
|
| 6366 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6367 |
[[package]]
|
| 6368 |
name = "yarl"
|
| 6369 |
version = "1.22.0"
|
|
@@ -6482,3 +6840,77 @@ sdist = { url = "https://files.pythonhosted.org/packages/e3/02/0f2892c661036d50e
|
|
| 6482 |
wheels = [
|
| 6483 |
{ url = "https://files.pythonhosted.org/packages/2e/54/647ade08bf0db230bfea292f893923872fd20be6ac6f53b2b936ba839d75/zipp-3.23.0-py3-none-any.whl", hash = "sha256:071652d6115ed432f5ce1d34c336c0adfd6a884660d1e9712a256d3d3bd4b14e", size = 10276 },
|
| 6484 |
]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1124 |
{ name = "gradio", extra = ["mcp"] },
|
| 1125 |
{ name = "httpx" },
|
| 1126 |
{ name = "huggingface-hub" },
|
| 1127 |
+
{ name = "langchain" },
|
| 1128 |
+
{ name = "langchain-core" },
|
| 1129 |
+
{ name = "langchain-huggingface" },
|
| 1130 |
+
{ name = "langgraph" },
|
| 1131 |
+
{ name = "langgraph-checkpoint-sqlite" },
|
| 1132 |
{ name = "limits" },
|
| 1133 |
{ name = "openai" },
|
| 1134 |
{ name = "pydantic" },
|
|
|
|
| 1138 |
{ name = "requests" },
|
| 1139 |
{ name = "structlog" },
|
| 1140 |
{ name = "tenacity" },
|
| 1141 |
+
{ name = "urllib3" },
|
| 1142 |
{ name = "xmltodict" },
|
| 1143 |
]
|
| 1144 |
|
|
|
|
| 1185 |
{ name = "gradio", extras = ["mcp"], specifier = ">=6.0.0" },
|
| 1186 |
{ name = "httpx", specifier = ">=0.27" },
|
| 1187 |
{ name = "huggingface-hub", specifier = ">=0.20.0" },
|
| 1188 |
+
{ name = "langchain", specifier = ">=0.3.9,<1.0" },
|
| 1189 |
+
{ name = "langchain-core", specifier = ">=0.3.21,<1.0" },
|
| 1190 |
+
{ name = "langchain-huggingface", specifier = ">=0.1.2,<1.0" },
|
| 1191 |
+
{ name = "langgraph", specifier = ">=0.2.50,<1.0" },
|
| 1192 |
+
{ name = "langgraph-checkpoint-sqlite", specifier = ">=3.0.0,<4.0" },
|
| 1193 |
{ name = "limits", specifier = ">=3.0" },
|
| 1194 |
{ name = "llama-index", marker = "extra == 'modal'", specifier = ">=0.11.0" },
|
| 1195 |
{ name = "llama-index-embeddings-openai", marker = "extra == 'modal'" },
|
|
|
|
| 1216 |
{ name = "structlog", specifier = ">=24.1" },
|
| 1217 |
{ name = "tenacity", specifier = ">=8.2" },
|
| 1218 |
{ name = "typer", marker = "extra == 'dev'", specifier = ">=0.9.0" },
|
| 1219 |
+
{ name = "urllib3", specifier = ">=2.5.0" },
|
| 1220 |
{ name = "xmltodict", specifier = ">=0.13" },
|
| 1221 |
]
|
| 1222 |
provides-extras = ["dev", "magentic", "embeddings", "modal"]
|
|
|
|
| 2269 |
{ url = "https://files.pythonhosted.org/packages/1e/e8/685f47e0d754320684db4425a0967f7d3fa70126bffd76110b7009a0090f/joblib-1.5.2-py3-none-any.whl", hash = "sha256:4e1f0bdbb987e6d843c70cf43714cb276623def372df3c22fe5266b2670bc241", size = 308396 },
|
| 2270 |
]
|
| 2271 |
|
| 2272 |
+
[[package]]
|
| 2273 |
+
name = "jsonpatch"
|
| 2274 |
+
version = "1.33"
|
| 2275 |
+
source = { registry = "https://pypi.org/simple" }
|
| 2276 |
+
dependencies = [
|
| 2277 |
+
{ name = "jsonpointer" },
|
| 2278 |
+
]
|
| 2279 |
+
sdist = { url = "https://files.pythonhosted.org/packages/42/78/18813351fe5d63acad16aec57f94ec2b70a09e53ca98145589e185423873/jsonpatch-1.33.tar.gz", hash = "sha256:9fcd4009c41e6d12348b4a0ff2563ba56a2923a7dfee731d004e212e1ee5030c", size = 21699 }
|
| 2280 |
+
wheels = [
|
| 2281 |
+
{ url = "https://files.pythonhosted.org/packages/73/07/02e16ed01e04a374e644b575638ec7987ae846d25ad97bcc9945a3ee4b0e/jsonpatch-1.33-py2.py3-none-any.whl", hash = "sha256:0ae28c0cd062bbd8b8ecc26d7d164fbbea9652a1a3693f3b956c1eae5145dade", size = 12898 },
|
| 2282 |
+
]
|
| 2283 |
+
|
| 2284 |
+
[[package]]
|
| 2285 |
+
name = "jsonpointer"
|
| 2286 |
+
version = "3.0.0"
|
| 2287 |
+
source = { registry = "https://pypi.org/simple" }
|
| 2288 |
+
sdist = { url = "https://files.pythonhosted.org/packages/6a/0a/eebeb1fa92507ea94016a2a790b93c2ae41a7e18778f85471dc54475ed25/jsonpointer-3.0.0.tar.gz", hash = "sha256:2b2d729f2091522d61c3b31f82e11870f60b68f43fbc705cb76bf4b832af59ef", size = 9114 }
|
| 2289 |
+
wheels = [
|
| 2290 |
+
{ url = "https://files.pythonhosted.org/packages/71/92/5e77f98553e9e75130c78900d000368476aed74276eb8ae8796f65f00918/jsonpointer-3.0.0-py2.py3-none-any.whl", hash = "sha256:13e088adc14fca8b6aa8177c044e12701e6ad4b28ff10e65f2267a90109c9942", size = 7595 },
|
| 2291 |
+
]
|
| 2292 |
+
|
| 2293 |
[[package]]
|
| 2294 |
name = "jsonschema"
|
| 2295 |
version = "4.25.1"
|
|
|
|
| 2352 |
|
| 2353 |
[[package]]
|
| 2354 |
name = "kubernetes"
|
| 2355 |
+
version = "33.1.0"
|
| 2356 |
source = { registry = "https://pypi.org/simple" }
|
| 2357 |
dependencies = [
|
| 2358 |
{ name = "certifi" },
|
| 2359 |
{ name = "durationpy" },
|
| 2360 |
{ name = "google-auth" },
|
| 2361 |
+
{ name = "oauthlib" },
|
| 2362 |
{ name = "python-dateutil" },
|
| 2363 |
{ name = "pyyaml" },
|
| 2364 |
{ name = "requests" },
|
|
|
|
| 2367 |
{ name = "urllib3" },
|
| 2368 |
{ name = "websocket-client" },
|
| 2369 |
]
|
| 2370 |
+
sdist = { url = "https://files.pythonhosted.org/packages/ae/52/19ebe8004c243fdfa78268a96727c71e08f00ff6fe69a301d0b7fcbce3c2/kubernetes-33.1.0.tar.gz", hash = "sha256:f64d829843a54c251061a8e7a14523b521f2dc5c896cf6d65ccf348648a88993", size = 1036779 }
|
| 2371 |
+
wheels = [
|
| 2372 |
+
{ url = "https://files.pythonhosted.org/packages/89/43/d9bebfc3db7dea6ec80df5cb2aad8d274dd18ec2edd6c4f21f32c237cbbb/kubernetes-33.1.0-py2.py3-none-any.whl", hash = "sha256:544de42b24b64287f7e0aa9513c93cb503f7f40eea39b20f66810011a86eabc5", size = 1941335 },
|
| 2373 |
+
]
|
| 2374 |
+
|
| 2375 |
+
[[package]]
|
| 2376 |
+
name = "langchain"
|
| 2377 |
+
version = "0.3.27"
|
| 2378 |
+
source = { registry = "https://pypi.org/simple" }
|
| 2379 |
+
dependencies = [
|
| 2380 |
+
{ name = "langchain-core" },
|
| 2381 |
+
{ name = "langchain-text-splitters" },
|
| 2382 |
+
{ name = "langsmith" },
|
| 2383 |
+
{ name = "pydantic" },
|
| 2384 |
+
{ name = "pyyaml" },
|
| 2385 |
+
{ name = "requests" },
|
| 2386 |
+
{ name = "sqlalchemy" },
|
| 2387 |
+
]
|
| 2388 |
+
sdist = { url = "https://files.pythonhosted.org/packages/83/f6/f4f7f3a56626fe07e2bb330feb61254dbdf06c506e6b59a536a337da51cf/langchain-0.3.27.tar.gz", hash = "sha256:aa6f1e6274ff055d0fd36254176770f356ed0a8994297d1df47df341953cec62", size = 10233809 }
|
| 2389 |
+
wheels = [
|
| 2390 |
+
{ url = "https://files.pythonhosted.org/packages/f6/d5/4861816a95b2f6993f1360cfb605aacb015506ee2090433a71de9cca8477/langchain-0.3.27-py3-none-any.whl", hash = "sha256:7b20c4f338826acb148d885b20a73a16e410ede9ee4f19bb02011852d5f98798", size = 1018194 },
|
| 2391 |
+
]
|
| 2392 |
+
|
| 2393 |
+
[[package]]
|
| 2394 |
+
name = "langchain-core"
|
| 2395 |
+
version = "0.3.80"
|
| 2396 |
+
source = { registry = "https://pypi.org/simple" }
|
| 2397 |
+
dependencies = [
|
| 2398 |
+
{ name = "jsonpatch" },
|
| 2399 |
+
{ name = "langsmith" },
|
| 2400 |
+
{ name = "packaging" },
|
| 2401 |
+
{ name = "pydantic" },
|
| 2402 |
+
{ name = "pyyaml" },
|
| 2403 |
+
{ name = "tenacity" },
|
| 2404 |
+
{ name = "typing-extensions" },
|
| 2405 |
+
]
|
| 2406 |
+
sdist = { url = "https://files.pythonhosted.org/packages/49/49/f76647b7ba1a6f9c11b0343056ab4d3e5fc445981d205237fed882b2ad60/langchain_core-0.3.80.tar.gz", hash = "sha256:29636b82513ab49e834764d023c4d18554d3d719a185d37b019d0a8ae948c6bb", size = 583629 }
|
| 2407 |
+
wheels = [
|
| 2408 |
+
{ url = "https://files.pythonhosted.org/packages/da/e8/e7a090ebe37f2b071c64e81b99fb1273b3151ae932f560bb94c22f191cde/langchain_core-0.3.80-py3-none-any.whl", hash = "sha256:2141e3838d100d17dce2359f561ec0df52c526bae0de6d4f469f8026c5747456", size = 450786 },
|
| 2409 |
+
]
|
| 2410 |
+
|
| 2411 |
+
[[package]]
|
| 2412 |
+
name = "langchain-huggingface"
|
| 2413 |
+
version = "0.3.1"
|
| 2414 |
+
source = { registry = "https://pypi.org/simple" }
|
| 2415 |
+
dependencies = [
|
| 2416 |
+
{ name = "huggingface-hub" },
|
| 2417 |
+
{ name = "langchain-core" },
|
| 2418 |
+
{ name = "tokenizers" },
|
| 2419 |
+
]
|
| 2420 |
+
sdist = { url = "https://files.pythonhosted.org/packages/3f/15/f832ae485707bf52f9a8f055db389850de06c46bc6e3e4420a0ef105fbbf/langchain_huggingface-0.3.1.tar.gz", hash = "sha256:0a145534ce65b5a723c8562c456100a92513bbbf212e6d8c93fdbae174b41341", size = 25154 }
|
| 2421 |
+
wheels = [
|
| 2422 |
+
{ url = "https://files.pythonhosted.org/packages/bf/26/7c5d4b4d3e1a7385863acc49fb6f96c55ccf941a750991d18e3f6a69a14a/langchain_huggingface-0.3.1-py3-none-any.whl", hash = "sha256:de10a692dc812885696fbaab607d28ac86b833b0f305bccd5d82d60336b07b7d", size = 27609 },
|
| 2423 |
+
]
|
| 2424 |
+
|
| 2425 |
+
[[package]]
|
| 2426 |
+
name = "langchain-text-splitters"
|
| 2427 |
+
version = "0.3.11"
|
| 2428 |
+
source = { registry = "https://pypi.org/simple" }
|
| 2429 |
+
dependencies = [
|
| 2430 |
+
{ name = "langchain-core" },
|
| 2431 |
+
]
|
| 2432 |
+
sdist = { url = "https://files.pythonhosted.org/packages/11/43/dcda8fd25f0b19cb2835f2f6bb67f26ad58634f04ac2d8eae00526b0fa55/langchain_text_splitters-0.3.11.tar.gz", hash = "sha256:7a50a04ada9a133bbabb80731df7f6ddac51bc9f1b9cab7fa09304d71d38a6cc", size = 46458 }
|
| 2433 |
+
wheels = [
|
| 2434 |
+
{ url = "https://files.pythonhosted.org/packages/58/0d/41a51b40d24ff0384ec4f7ab8dd3dcea8353c05c973836b5e289f1465d4f/langchain_text_splitters-0.3.11-py3-none-any.whl", hash = "sha256:cf079131166a487f1372c8ab5d0bfaa6c0a4291733d9c43a34a16ac9bcd6a393", size = 33845 },
|
| 2435 |
+
]
|
| 2436 |
+
|
| 2437 |
+
[[package]]
|
| 2438 |
+
name = "langgraph"
|
| 2439 |
+
version = "0.6.11"
|
| 2440 |
+
source = { registry = "https://pypi.org/simple" }
|
| 2441 |
+
dependencies = [
|
| 2442 |
+
{ name = "langchain-core" },
|
| 2443 |
+
{ name = "langgraph-checkpoint" },
|
| 2444 |
+
{ name = "langgraph-prebuilt" },
|
| 2445 |
+
{ name = "langgraph-sdk" },
|
| 2446 |
+
{ name = "pydantic" },
|
| 2447 |
+
{ name = "xxhash" },
|
| 2448 |
+
]
|
| 2449 |
+
sdist = { url = "https://files.pythonhosted.org/packages/87/4d/8dfe5e0f9c69655dfb1f450922699ab683b3abbc038cfe38f769eaf871c2/langgraph-0.6.11.tar.gz", hash = "sha256:cd5373d0a59701ab39c9f8af33a33c5704553de815318387fa7f240511e0efd7", size = 492075 }
|
| 2450 |
+
wheels = [
|
| 2451 |
+
{ url = "https://files.pythonhosted.org/packages/df/94/430f0341c5c2fe3e3b9f5ab2622f35e2bda12c4a7d655c519468e853d1b0/langgraph-0.6.11-py3-none-any.whl", hash = "sha256:49268de69d85b7db3da9e2ca582a474516421c1c44be5cff390416cfa6967faa", size = 155424 },
|
| 2452 |
+
]
|
| 2453 |
+
|
| 2454 |
+
[[package]]
|
| 2455 |
+
name = "langgraph-checkpoint"
|
| 2456 |
+
version = "3.0.1"
|
| 2457 |
+
source = { registry = "https://pypi.org/simple" }
|
| 2458 |
+
dependencies = [
|
| 2459 |
+
{ name = "langchain-core" },
|
| 2460 |
+
{ name = "ormsgpack" },
|
| 2461 |
+
]
|
| 2462 |
+
sdist = { url = "https://files.pythonhosted.org/packages/0f/07/2b1c042fa87d40cf2db5ca27dc4e8dd86f9a0436a10aa4361a8982718ae7/langgraph_checkpoint-3.0.1.tar.gz", hash = "sha256:59222f875f85186a22c494aedc65c4e985a3df27e696e5016ba0b98a5ed2cee0", size = 137785 }
|
| 2463 |
+
wheels = [
|
| 2464 |
+
{ url = "https://files.pythonhosted.org/packages/48/e3/616e3a7ff737d98c1bbb5700dd62278914e2a9ded09a79a1fa93cf24ce12/langgraph_checkpoint-3.0.1-py3-none-any.whl", hash = "sha256:9b04a8d0edc0474ce4eaf30c5d731cee38f11ddff50a6177eead95b5c4e4220b", size = 46249 },
|
| 2465 |
+
]
|
| 2466 |
+
|
| 2467 |
+
[[package]]
|
| 2468 |
+
name = "langgraph-checkpoint-sqlite"
|
| 2469 |
+
version = "3.0.0"
|
| 2470 |
+
source = { registry = "https://pypi.org/simple" }
|
| 2471 |
+
dependencies = [
|
| 2472 |
+
{ name = "aiosqlite" },
|
| 2473 |
+
{ name = "langgraph-checkpoint" },
|
| 2474 |
+
{ name = "sqlite-vec" },
|
| 2475 |
+
]
|
| 2476 |
+
sdist = { url = "https://files.pythonhosted.org/packages/6e/d0/fd3e4a00cdde6aaeb3e4115e3d2e0e54a48b74cca873823a0fa6979a9b84/langgraph_checkpoint_sqlite-3.0.0.tar.gz", hash = "sha256:1b190ca6b4fd2bf70c0310896fd4240200ff54d3ee9b5ab7e7c05edfc824df72", size = 106005 }
|
| 2477 |
+
wheels = [
|
| 2478 |
+
{ url = "https://files.pythonhosted.org/packages/5b/c2/6249a5fd0a204594995a4f29988a036d29d736cb87df2aebbbd08467475c/langgraph_checkpoint_sqlite-3.0.0-py3-none-any.whl", hash = "sha256:219c8ab974a69954fde7e3aa3cc2112f58b8fe5e1449293b32b344fa2dee110d", size = 32039 },
|
| 2479 |
+
]
|
| 2480 |
+
|
| 2481 |
+
[[package]]
|
| 2482 |
+
name = "langgraph-prebuilt"
|
| 2483 |
+
version = "0.6.5"
|
| 2484 |
+
source = { registry = "https://pypi.org/simple" }
|
| 2485 |
+
dependencies = [
|
| 2486 |
+
{ name = "langchain-core" },
|
| 2487 |
+
{ name = "langgraph-checkpoint" },
|
| 2488 |
+
]
|
| 2489 |
+
sdist = { url = "https://files.pythonhosted.org/packages/98/6a/76ed0f0d740b187ac2014beae929658881b8d18291bd107571aae5515b12/langgraph_prebuilt-0.6.5.tar.gz", hash = "sha256:9c63e9e867e62b345805fd1e8ea5c2df5cc112e939d714f277af84f2afe5950d", size = 125791 }
|
| 2490 |
+
wheels = [
|
| 2491 |
+
{ url = "https://files.pythonhosted.org/packages/8e/d1/e4727f4822943befc3b7046f79049b1086c9493a34b4d44a1adf78577693/langgraph_prebuilt-0.6.5-py3-none-any.whl", hash = "sha256:b6ceb5db31c16a30a3ee3c0b923667f02e7c9e27852621abf9d5bd5603534141", size = 28158 },
|
| 2492 |
+
]
|
| 2493 |
+
|
| 2494 |
+
[[package]]
|
| 2495 |
+
name = "langgraph-sdk"
|
| 2496 |
+
version = "0.2.10"
|
| 2497 |
+
source = { registry = "https://pypi.org/simple" }
|
| 2498 |
+
dependencies = [
|
| 2499 |
+
{ name = "httpx" },
|
| 2500 |
+
{ name = "orjson" },
|
| 2501 |
+
]
|
| 2502 |
+
sdist = { url = "https://files.pythonhosted.org/packages/cb/0f/88772be3301cc5ad495e77705538edbcbf7f2ccf38d21555fa26131203aa/langgraph_sdk-0.2.10.tar.gz", hash = "sha256:ab58331504fbea28e6322037aa362929799b4e9106663ac1dbd7c5ac44558933", size = 113432 }
|
| 2503 |
+
wheels = [
|
| 2504 |
+
{ url = "https://files.pythonhosted.org/packages/8b/cc/ff4ba17253d31981b047f4be52cc51a19fa28dd2dd16a880c0c595bd66bd/langgraph_sdk-0.2.10-py3-none-any.whl", hash = "sha256:9aef403663726085de6851e4e50459df9562069bd316dd0261eb359f776fd0ef", size = 58430 },
|
| 2505 |
+
]
|
| 2506 |
+
|
| 2507 |
+
[[package]]
|
| 2508 |
+
name = "langsmith"
|
| 2509 |
+
version = "0.4.49"
|
| 2510 |
+
source = { registry = "https://pypi.org/simple" }
|
| 2511 |
+
dependencies = [
|
| 2512 |
+
{ name = "httpx" },
|
| 2513 |
+
{ name = "orjson", marker = "platform_python_implementation != 'PyPy'" },
|
| 2514 |
+
{ name = "packaging" },
|
| 2515 |
+
{ name = "pydantic" },
|
| 2516 |
+
{ name = "requests" },
|
| 2517 |
+
{ name = "requests-toolbelt" },
|
| 2518 |
+
{ name = "zstandard" },
|
| 2519 |
+
]
|
| 2520 |
+
sdist = { url = "https://files.pythonhosted.org/packages/2d/69/85ae805ecbc1300d486136329b3cb1702483c0afdaf81da95947dd83884a/langsmith-0.4.49.tar.gz", hash = "sha256:4a16ef6f3a9b20c5471884991a12ff37d81f2c13a50660cfe27fa79a7ca2c1b0", size = 987017 }
|
| 2521 |
wheels = [
|
| 2522 |
+
{ url = "https://files.pythonhosted.org/packages/31/79/59ecf7dceafd655ed20270a0f595d9e8e13895231cebcfbff9b6eec51fc4/langsmith-0.4.49-py3-none-any.whl", hash = "sha256:95f84edcd8e74ed658e4a3eb7355b530f35cb08a9a8865dbfde6740e4b18323c", size = 410905 },
|
| 2523 |
]
|
| 2524 |
|
| 2525 |
[[package]]
|
|
|
|
| 4002 |
{ url = "https://files.pythonhosted.org/packages/1a/bf/def5e25d4d8bfce296a9a7c8248109bf58622c21618b590678f945a2c59c/orjson-3.11.4-cp314-cp314-win_arm64.whl", hash = "sha256:78b999999039db3cf58f6d230f524f04f75f129ba3d1ca2ed121f8657e575d3d", size = 126151 },
|
| 4003 |
]
|
| 4004 |
|
| 4005 |
+
[[package]]
|
| 4006 |
+
name = "ormsgpack"
|
| 4007 |
+
version = "1.12.0"
|
| 4008 |
+
source = { registry = "https://pypi.org/simple" }
|
| 4009 |
+
sdist = { url = "https://files.pythonhosted.org/packages/6c/67/d5ef41c3b4a94400be801984ef7c7fc9623e1a82b643e74eeec367e7462b/ormsgpack-1.12.0.tar.gz", hash = "sha256:94be818fdbb0285945839b88763b269987787cb2f7ef280cad5d6ec815b7e608", size = 49959 }
|
| 4010 |
+
wheels = [
|
| 4011 |
+
{ url = "https://files.pythonhosted.org/packages/1a/ba/3cae83cf36420c1c8dd294f16c852c03313aafe2439a165c4c6ac611b1d0/ormsgpack-1.12.0-cp311-cp311-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:c40d86d77391b18dd34de5295e3de2b8ad818bcab9c9def4121c8ec5c9714ae4", size = 369159 },
|
| 4012 |
+
{ url = "https://files.pythonhosted.org/packages/97/d4/5e176309e01a8b9098d80201aac1eb7db9336c3b5b4fa6254a2bbb0d0fa0/ormsgpack-1.12.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:777b7fab364dc0f200bb382a98a385c8222ffa6a2333d627d763797326202c86", size = 195744 },
|
| 4013 |
+
{ url = "https://files.pythonhosted.org/packages/4f/83/6d80c8c5571639c000a39f38f77752dfaf9d9e552d775331e8d280f66a4e/ormsgpack-1.12.0-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b5b5089ad9dd5b3d3013b245a55e4abaea2f8ad70f4a78e1b002127b02340004", size = 206474 },
|
| 4014 |
+
{ url = "https://files.pythonhosted.org/packages/5e/e6/940311e48dc0cfc3e212bd7007a21ed0825158638057687d804f2c5c2cca/ormsgpack-1.12.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:deaf0c87cace7bc08fbf68c5cc66605b593df6427e9f4de235b2da358787e008", size = 207959 },
|
| 4015 |
+
{ url = "https://files.pythonhosted.org/packages/1a/e3/fbe94b0a311815343b86a95a0627e4901b11ff6fd522679ca29a2a88c99b/ormsgpack-1.12.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:f62d476fe28bc5675d9aff30341bfa9f41d7de332c5b63fbbe9aaf6bb7ec74d4", size = 377666 },
|
| 4016 |
+
{ url = "https://files.pythonhosted.org/packages/a3/3b/229cfa28076798ffb619aaa854b842de3f2ed5ea4e6509bf34d14c038c4d/ormsgpack-1.12.0-cp311-cp311-musllinux_1_2_armv7l.whl", hash = "sha256:ded7810095b887e28434f32f5a345d354e88cf851bab3c5435aeb86a718618d2", size = 471394 },
|
| 4017 |
+
{ url = "https://files.pythonhosted.org/packages/6b/bd/4eae4ab35586e4175c07acb5f98aec83aa9d8987f71ea0443aa900191bdf/ormsgpack-1.12.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:f72a1dea0c4ae7c4101dcfbe8133f274a9d769d0b87fe5188db4fab07ffabaee", size = 381506 },
|
| 4018 |
+
{ url = "https://files.pythonhosted.org/packages/dd/51/f9d56d6d015cbfa1ce9a4358ca30a41744644f0cf606e060d7203efe5af8/ormsgpack-1.12.0-cp311-cp311-win_amd64.whl", hash = "sha256:8f479bfef847255d7d0b12c7a198f6a21490155da2da3062e082ba370893d4a1", size = 112707 },
|
| 4019 |
+
{ url = "https://files.pythonhosted.org/packages/f4/07/bb189ef7072979f2f96e8716e952172efdce9c54930aa0814bec73aee19b/ormsgpack-1.12.0-cp311-cp311-win_arm64.whl", hash = "sha256:3583ca410e4502144b2594170542e4bbef7b15643fd1208703ae820f11029036", size = 106533 },
|
| 4020 |
+
{ url = "https://files.pythonhosted.org/packages/a2/f2/c1036b2775fcc0cfa5fd618c53bcd3b862ee07298fb627f03af4c7982f84/ormsgpack-1.12.0-cp312-cp312-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:e0c1e08b64d99076fee155276097489b82cc56e8d5951c03c721a65a32f44494", size = 369538 },
|
| 4021 |
+
{ url = "https://files.pythonhosted.org/packages/d9/ca/526c4ae02f3cb34621af91bf8282a10d666757c2e0c6ff391ff5d403d607/ormsgpack-1.12.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:3fd43bcb299131690b8e0677af172020b2ada8e625169034b42ac0c13adf84aa", size = 195872 },
|
| 4022 |
+
{ url = "https://files.pythonhosted.org/packages/7f/0f/83bb7968e9715f6a85be53d041b1e6324a05428f56b8b980dac866886871/ormsgpack-1.12.0-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:5f0149d595341e22ead340bf281b2995c4cc7dc8d522a6b5f575fe17aa407604", size = 206469 },
|
| 4023 |
+
{ url = "https://files.pythonhosted.org/packages/02/e3/9e93ca1065f2d4af035804a842b1ff3025bab580c7918239bb225cd1fee2/ormsgpack-1.12.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:f19a1b27d169deb553c80fd10b589fc2be1fc14cee779fae79fcaf40db04de2b", size = 208273 },
|
| 4024 |
+
{ url = "https://files.pythonhosted.org/packages/b3/d8/6d6ef901b3a8b8f3ab8836b135a56eb7f66c559003e251d9530bedb12627/ormsgpack-1.12.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:6f28896942d655064940dfe06118b7ce1e3468d051483148bf02c99ec157483a", size = 377839 },
|
| 4025 |
+
{ url = "https://files.pythonhosted.org/packages/4c/72/fcb704bfa4c2c3a37b647d597cc45a13cffc9d50baac635a9ad620731d29/ormsgpack-1.12.0-cp312-cp312-musllinux_1_2_armv7l.whl", hash = "sha256:9396efcfa48b4abbc06e44c5dbc3c4574a8381a80cb4cd01eea15d28b38c554e", size = 471446 },
|
| 4026 |
+
{ url = "https://files.pythonhosted.org/packages/84/f8/402e4e3eb997c2ee534c99bec4b5bb359c2a1f9edadf043e254a71e11378/ormsgpack-1.12.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:96586ed537a5fb386a162c4f9f7d8e6f76e07b38a990d50c73f11131e00ff040", size = 381783 },
|
| 4027 |
+
{ url = "https://files.pythonhosted.org/packages/f0/8d/5897b700360bc00911b70ae5ef1134ee7abf5baa81a92a4be005917d3dfd/ormsgpack-1.12.0-cp312-cp312-win_amd64.whl", hash = "sha256:e70387112fb3870e4844de090014212cdcf1342f5022047aecca01ec7de05d7a", size = 112943 },
|
| 4028 |
+
{ url = "https://files.pythonhosted.org/packages/5b/44/1e73649f79bb96d6cf9e5bcbac68b6216d238bba80af351c4c0cbcf7ee15/ormsgpack-1.12.0-cp312-cp312-win_arm64.whl", hash = "sha256:d71290a23de5d4829610c42665d816c661ecad8979883f3f06b2e3ab9639962e", size = 106688 },
|
| 4029 |
+
{ url = "https://files.pythonhosted.org/packages/2e/e8/35f11ce9313111488b26b3035e4cbe55caa27909c0b6c8b5b5cd59f9661e/ormsgpack-1.12.0-cp313-cp313-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:766f2f3b512d85cd375b26a8b1329b99843560b50b93d3880718e634ad4a5de5", size = 369574 },
|
| 4030 |
+
{ url = "https://files.pythonhosted.org/packages/61/b0/77461587f412d4e598d3687bafe23455ed0f26269f44be20252eddaa624e/ormsgpack-1.12.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:84b285b1f3f185aad7da45641b873b30acfd13084cf829cf668c4c6480a81583", size = 195893 },
|
| 4031 |
+
{ url = "https://files.pythonhosted.org/packages/c6/67/e197ceb04c3b550589e5407fc9fdae10f4e2e2eba5fdac921a269e02e974/ormsgpack-1.12.0-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:e23604fc79fe110292cb365f4c8232e64e63a34f470538be320feae3921f271b", size = 206503 },
|
| 4032 |
+
{ url = "https://files.pythonhosted.org/packages/0b/b1/7fa8ba82a25cef678983c7976f85edeef5014f5c26495f338258e6a3cf1c/ormsgpack-1.12.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:dc32b156c113a0fae2975051417d8d9a7a5247c34b2d7239410c46b75ce9348a", size = 208257 },
|
| 4033 |
+
{ url = "https://files.pythonhosted.org/packages/ce/b1/759e999390000d2589e6d0797f7265e6ec28378547075d28d3736248ab63/ormsgpack-1.12.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:94ac500dd10c20fa8b8a23bc55606250bfe711bf9716828d9f3d44dfd1f25668", size = 377852 },
|
| 4034 |
+
{ url = "https://files.pythonhosted.org/packages/51/e7/0af737c94272494d9d84a3c29cc42c973ef7fd2342917020906596db863c/ormsgpack-1.12.0-cp313-cp313-musllinux_1_2_armv7l.whl", hash = "sha256:c5201ff7ec24f721f813a182885a17064cffdbe46b2412685a52e6374a872c8f", size = 471456 },
|
| 4035 |
+
{ url = "https://files.pythonhosted.org/packages/f4/ba/c81f0aa4f19fbf457213395945b672e6fde3ce777e3587456e7f0fca2147/ormsgpack-1.12.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:a9740bb3839c9368aacae1cbcfc474ee6976458f41cc135372b7255d5206c953", size = 381813 },
|
| 4036 |
+
{ url = "https://files.pythonhosted.org/packages/ce/15/429c72d64323503fd42cc4ca8398930ded8aa8b3470df8a86b3bbae7a35c/ormsgpack-1.12.0-cp313-cp313-win_amd64.whl", hash = "sha256:8ed37f29772432048b58174e920a1d4c4cde0404a5d448d3d8bbcc95d86a6918", size = 112949 },
|
| 4037 |
+
{ url = "https://files.pythonhosted.org/packages/55/b9/e72c451a40f8c57bfc229e0b8e536ecea7203c8f0a839676df2ffb605c62/ormsgpack-1.12.0-cp313-cp313-win_arm64.whl", hash = "sha256:b03994bbec5d6d42e03d6604e327863f885bde67aa61e06107ce1fa5bdd3e71d", size = 106689 },
|
| 4038 |
+
{ url = "https://files.pythonhosted.org/packages/13/16/13eab1a75da531b359105fdee90dda0b6bd1ca0a09880250cf91d8bdfdea/ormsgpack-1.12.0-cp314-cp314-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:0f3981ba3cba80656012090337e548e597799e14b41e3d0b595ab5ab05a23d7f", size = 369620 },
|
| 4039 |
+
{ url = "https://files.pythonhosted.org/packages/a0/c1/cbcc38b7af4ce58d8893e56d3595c0c8dcd117093bf048f889cf351bdba0/ormsgpack-1.12.0-cp314-cp314-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:901f6f55184d6776dbd5183cbce14caf05bf7f467eef52faf9b094686980bf71", size = 195925 },
|
| 4040 |
+
{ url = "https://files.pythonhosted.org/packages/5c/59/4fa4dc0681490e12b75333440a1c0fd9741b0ebff272b1db4a29d35c2021/ormsgpack-1.12.0-cp314-cp314-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:e13b15412571422b711b40f45e3fe6d993ea3314b5e97d1a853fe99226c5effc", size = 206594 },
|
| 4041 |
+
{ url = "https://files.pythonhosted.org/packages/39/67/249770896bc32bb91b22c30256961f935d0915cbcf6e289a7fc961d9b14c/ormsgpack-1.12.0-cp314-cp314-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:91fa8a452553a62e5fb3fbab471e7faf7b3bec3c87a2f355ebf3d7aab290fe4f", size = 208307 },
|
| 4042 |
+
{ url = "https://files.pythonhosted.org/packages/07/0a/e041a248cd72f2f4c07e155913e0a3ede4c86cf21a40ae6cd79f135f2847/ormsgpack-1.12.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:74ec101f69624695eec4ce7c953192d97748254abe78fb01b591f06d529e1952", size = 377844 },
|
| 4043 |
+
{ url = "https://files.pythonhosted.org/packages/d8/71/6f7773e4ffda73a358ce4bba69b3e8bee9d40a7a06315e4c1cd7a3ea9d02/ormsgpack-1.12.0-cp314-cp314-musllinux_1_2_armv7l.whl", hash = "sha256:9bbf7896580848326c1f9bd7531f264e561f98db7e08e15aa75963d83832c717", size = 471572 },
|
| 4044 |
+
{ url = "https://files.pythonhosted.org/packages/65/29/af6769a4289c07acc71e7bda1d64fb31800563147d73142686e185e82348/ormsgpack-1.12.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:7567917da613b8f8d591c1674e411fd3404bea41ef2b9a0e0a1e049c0f9406d7", size = 381842 },
|
| 4045 |
+
{ url = "https://files.pythonhosted.org/packages/0b/dd/0a86195ee7a1a96c088aefc8504385e881cf56f4563ed81bafe21cbf1fb0/ormsgpack-1.12.0-cp314-cp314-win_amd64.whl", hash = "sha256:4e418256c5d8622b8bc92861936f7c6a0131355e7bcad88a42102ae8227f8a1c", size = 113008 },
|
| 4046 |
+
{ url = "https://files.pythonhosted.org/packages/4c/57/fafc79e32f3087f6f26f509d80b8167516326bfea38d30502627c01617e0/ormsgpack-1.12.0-cp314-cp314-win_arm64.whl", hash = "sha256:433ace29aa02713554f714c62a4e4dcad0c9e32674ba4f66742c91a4c3b1b969", size = 106648 },
|
| 4047 |
+
{ url = "https://files.pythonhosted.org/packages/b3/cf/5d58d9b132128d2fe5d586355dde76af386554abef00d608f66b913bff1f/ormsgpack-1.12.0-cp314-cp314t-macosx_10_12_x86_64.macosx_11_0_arm64.macosx_10_12_universal2.whl", hash = "sha256:e57164be4ca34b64e210ec515059193280ac84df4d6f31a6fcbfb2fc8436de55", size = 369803 },
|
| 4048 |
+
{ url = "https://files.pythonhosted.org/packages/67/42/968a2da361eaff2e4cbb17c82c7599787babf16684110ad70409646cc1e4/ormsgpack-1.12.0-cp314-cp314t-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:904f96289deaa92fc6440b122edc27c5bdc28234edd63717f6d853d88c823a83", size = 195991 },
|
| 4049 |
+
{ url = "https://files.pythonhosted.org/packages/03/f0/9696c6c6cf8ad35170f0be8d0ef3523cc258083535f6c8071cb8235ebb8b/ormsgpack-1.12.0-cp314-cp314t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4b291d086e524a1062d57d1b7b5a8bcaaf29caebf0212fec12fd86240bd33633", size = 208316 },
|
| 4050 |
+
]
|
| 4051 |
+
|
| 4052 |
[[package]]
|
| 4053 |
name = "overrides"
|
| 4054 |
version = "7.7.0"
|
|
|
|
| 5352 |
{ url = "https://files.pythonhosted.org/packages/3b/5d/63d4ae3b9daea098d5d6f5da83984853c1bbacd5dc826764b249fe119d24/requests_oauthlib-2.0.0-py2.py3-none-any.whl", hash = "sha256:7dd8a5c40426b779b0868c404bdef9768deccf22749cde15852df527e6269b36", size = 24179 },
|
| 5353 |
]
|
| 5354 |
|
| 5355 |
+
[[package]]
|
| 5356 |
+
name = "requests-toolbelt"
|
| 5357 |
+
version = "1.0.0"
|
| 5358 |
+
source = { registry = "https://pypi.org/simple" }
|
| 5359 |
+
dependencies = [
|
| 5360 |
+
{ name = "requests" },
|
| 5361 |
+
]
|
| 5362 |
+
sdist = { url = "https://files.pythonhosted.org/packages/f3/61/d7545dafb7ac2230c70d38d31cbfe4cc64f7144dc41f6e4e4b78ecd9f5bb/requests-toolbelt-1.0.0.tar.gz", hash = "sha256:7681a0a3d047012b5bdc0ee37d7f8f07ebe76ab08caeccfc3921ce23c88d5bc6", size = 206888 }
|
| 5363 |
+
wheels = [
|
| 5364 |
+
{ url = "https://files.pythonhosted.org/packages/3f/51/d4db610ef29373b879047326cbf6fa98b6c1969d6f6dc423279de2b1be2c/requests_toolbelt-1.0.0-py2.py3-none-any.whl", hash = "sha256:cccfdd665f0a24fcf4726e690f65639d272bb0637b9b92dfd91a5568ccf6bd06", size = 54481 },
|
| 5365 |
+
]
|
| 5366 |
+
|
| 5367 |
[[package]]
|
| 5368 |
name = "respx"
|
| 5369 |
version = "0.22.0"
|
|
|
|
| 5841 |
{ name = "greenlet" },
|
| 5842 |
]
|
| 5843 |
|
| 5844 |
+
[[package]]
|
| 5845 |
+
name = "sqlite-vec"
|
| 5846 |
+
version = "0.1.6"
|
| 5847 |
+
source = { registry = "https://pypi.org/simple" }
|
| 5848 |
+
wheels = [
|
| 5849 |
+
{ url = "https://files.pythonhosted.org/packages/88/ed/aabc328f29ee6814033d008ec43e44f2c595447d9cccd5f2aabe60df2933/sqlite_vec-0.1.6-py3-none-macosx_10_6_x86_64.whl", hash = "sha256:77491bcaa6d496f2acb5cc0d0ff0b8964434f141523c121e313f9a7d8088dee3", size = 164075 },
|
| 5850 |
+
{ url = "https://files.pythonhosted.org/packages/a7/57/05604e509a129b22e303758bfa062c19afb020557d5e19b008c64016704e/sqlite_vec-0.1.6-py3-none-macosx_11_0_arm64.whl", hash = "sha256:fdca35f7ee3243668a055255d4dee4dea7eed5a06da8cad409f89facf4595361", size = 165242 },
|
| 5851 |
+
{ url = "https://files.pythonhosted.org/packages/f2/48/dbb2cc4e5bad88c89c7bb296e2d0a8df58aab9edc75853728c361eefc24f/sqlite_vec-0.1.6-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7b0519d9cd96164cd2e08e8eed225197f9cd2f0be82cb04567692a0a4be02da3", size = 103704 },
|
| 5852 |
+
{ url = "https://files.pythonhosted.org/packages/80/76/97f33b1a2446f6ae55e59b33869bed4eafaf59b7f4c662c8d9491b6a714a/sqlite_vec-0.1.6-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux1_x86_64.whl", hash = "sha256:823b0493add80d7fe82ab0fe25df7c0703f4752941aee1c7b2b02cec9656cb24", size = 151556 },
|
| 5853 |
+
{ url = "https://files.pythonhosted.org/packages/6a/98/e8bc58b178266eae2fcf4c9c7a8303a8d41164d781b32d71097924a6bebe/sqlite_vec-0.1.6-py3-none-win_amd64.whl", hash = "sha256:c65bcfd90fa2f41f9000052bcb8bb75d38240b2dae49225389eca6c3136d3f0c", size = 281540 },
|
| 5854 |
+
]
|
| 5855 |
+
|
| 5856 |
[[package]]
|
| 5857 |
name = "sse-starlette"
|
| 5858 |
version = "3.0.3"
|
|
|
|
| 6321 |
|
| 6322 |
[[package]]
|
| 6323 |
name = "urllib3"
|
| 6324 |
+
version = "2.5.0"
|
| 6325 |
source = { registry = "https://pypi.org/simple" }
|
| 6326 |
+
sdist = { url = "https://files.pythonhosted.org/packages/15/22/9ee70a2574a4f4599c47dd506532914ce044817c7752a79b6a51286319bc/urllib3-2.5.0.tar.gz", hash = "sha256:3fc47733c7e419d4bc3f6b3dc2b4f890bb743906a30d56ba4a5bfa4bbff92760", size = 393185 }
|
| 6327 |
wheels = [
|
| 6328 |
+
{ url = "https://files.pythonhosted.org/packages/a7/c2/fe1e52489ae3122415c51f387e221dd0773709bad6c6cdaa599e8a2c5185/urllib3-2.5.0-py3-none-any.whl", hash = "sha256:e6b01673c0fa6a13e374b50871808eb3bf7046c4b125b216f6bf1cc604cff0dc", size = 129795 },
|
| 6329 |
]
|
| 6330 |
|
| 6331 |
[[package]]
|
|
|
|
| 6619 |
{ url = "https://files.pythonhosted.org/packages/c0/20/69a0e6058bc5ea74892d089d64dfc3a62ba78917ec5e2cfa70f7c92ba3a5/xmltodict-1.0.2-py3-none-any.whl", hash = "sha256:62d0fddb0dcbc9f642745d8bbf4d81fd17d6dfaec5a15b5c1876300aad92af0d", size = 13893 },
|
| 6620 |
]
|
| 6621 |
|
| 6622 |
+
[[package]]
|
| 6623 |
+
name = "xxhash"
|
| 6624 |
+
version = "3.6.0"
|
| 6625 |
+
source = { registry = "https://pypi.org/simple" }
|
| 6626 |
+
sdist = { url = "https://files.pythonhosted.org/packages/02/84/30869e01909fb37a6cc7e18688ee8bf1e42d57e7e0777636bd47524c43c7/xxhash-3.6.0.tar.gz", hash = "sha256:f0162a78b13a0d7617b2845b90c763339d1f1d82bb04a4b07f4ab535cc5e05d6", size = 85160 }
|
| 6627 |
+
wheels = [
|
| 6628 |
+
{ url = "https://files.pythonhosted.org/packages/17/d4/cc2f0400e9154df4b9964249da78ebd72f318e35ccc425e9f403c392f22a/xxhash-3.6.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:b47bbd8cf2d72797f3c2772eaaac0ded3d3af26481a26d7d7d41dc2d3c46b04a", size = 32844 },
|
| 6629 |
+
{ url = "https://files.pythonhosted.org/packages/5e/ec/1cc11cd13e26ea8bc3cb4af4eaadd8d46d5014aebb67be3f71fb0b68802a/xxhash-3.6.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:2b6821e94346f96db75abaa6e255706fb06ebd530899ed76d32cd99f20dc52fa", size = 30809 },
|
| 6630 |
+
{ url = "https://files.pythonhosted.org/packages/04/5f/19fe357ea348d98ca22f456f75a30ac0916b51c753e1f8b2e0e6fb884cce/xxhash-3.6.0-cp311-cp311-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:d0a9751f71a1a65ce3584e9cae4467651c7e70c9d31017fa57574583a4540248", size = 194665 },
|
| 6631 |
+
{ url = "https://files.pythonhosted.org/packages/90/3b/d1f1a8f5442a5fd8beedae110c5af7604dc37349a8e16519c13c19a9a2de/xxhash-3.6.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8b29ee68625ab37b04c0b40c3fafdf24d2f75ccd778333cfb698f65f6c463f62", size = 213550 },
|
| 6632 |
+
{ url = "https://files.pythonhosted.org/packages/c4/ef/3a9b05eb527457d5db13a135a2ae1a26c80fecd624d20f3e8dcc4cb170f3/xxhash-3.6.0-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:6812c25fe0d6c36a46ccb002f40f27ac903bf18af9f6dd8f9669cb4d176ab18f", size = 212384 },
|
| 6633 |
+
{ url = "https://files.pythonhosted.org/packages/0f/18/ccc194ee698c6c623acbf0f8c2969811a8a4b6185af5e824cd27b9e4fd3e/xxhash-3.6.0-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:4ccbff013972390b51a18ef1255ef5ac125c92dc9143b2d1909f59abc765540e", size = 445749 },
|
| 6634 |
+
{ url = "https://files.pythonhosted.org/packages/a5/86/cf2c0321dc3940a7aa73076f4fd677a0fb3e405cb297ead7d864fd90847e/xxhash-3.6.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:297b7fbf86c82c550e12e8fb71968b3f033d27b874276ba3624ea868c11165a8", size = 193880 },
|
| 6635 |
+
{ url = "https://files.pythonhosted.org/packages/82/fb/96213c8560e6f948a1ecc9a7613f8032b19ee45f747f4fca4eb31bb6d6ed/xxhash-3.6.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:dea26ae1eb293db089798d3973a5fc928a18fdd97cc8801226fae705b02b14b0", size = 210912 },
|
| 6636 |
+
{ url = "https://files.pythonhosted.org/packages/40/aa/4395e669b0606a096d6788f40dbdf2b819d6773aa290c19e6e83cbfc312f/xxhash-3.6.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:7a0b169aafb98f4284f73635a8e93f0735f9cbde17bd5ec332480484241aaa77", size = 198654 },
|
| 6637 |
+
{ url = "https://files.pythonhosted.org/packages/67/74/b044fcd6b3d89e9b1b665924d85d3f400636c23590226feb1eb09e1176ce/xxhash-3.6.0-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:08d45aef063a4531b785cd72de4887766d01dc8f362a515693df349fdb825e0c", size = 210867 },
|
| 6638 |
+
{ url = "https://files.pythonhosted.org/packages/bc/fd/3ce73bf753b08cb19daee1eb14aa0d7fe331f8da9c02dd95316ddfe5275e/xxhash-3.6.0-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:929142361a48ee07f09121fe9e96a84950e8d4df3bb298ca5d88061969f34d7b", size = 414012 },
|
| 6639 |
+
{ url = "https://files.pythonhosted.org/packages/ba/b3/5a4241309217c5c876f156b10778f3ab3af7ba7e3259e6d5f5c7d0129eb2/xxhash-3.6.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:51312c768403d8540487dbbfb557454cfc55589bbde6424456951f7fcd4facb3", size = 191409 },
|
| 6640 |
+
{ url = "https://files.pythonhosted.org/packages/c0/01/99bfbc15fb9abb9a72b088c1d95219fc4782b7d01fc835bd5744d66dd0b8/xxhash-3.6.0-cp311-cp311-win32.whl", hash = "sha256:d1927a69feddc24c987b337ce81ac15c4720955b667fe9b588e02254b80446fd", size = 30574 },
|
| 6641 |
+
{ url = "https://files.pythonhosted.org/packages/65/79/9d24d7f53819fe301b231044ea362ce64e86c74f6e8c8e51320de248b3e5/xxhash-3.6.0-cp311-cp311-win_amd64.whl", hash = "sha256:26734cdc2d4ffe449b41d186bbeac416f704a482ed835d375a5c0cb02bc63fef", size = 31481 },
|
| 6642 |
+
{ url = "https://files.pythonhosted.org/packages/30/4e/15cd0e3e8772071344eab2961ce83f6e485111fed8beb491a3f1ce100270/xxhash-3.6.0-cp311-cp311-win_arm64.whl", hash = "sha256:d72f67ef8bf36e05f5b6c65e8524f265bd61071471cd4cf1d36743ebeeeb06b7", size = 27861 },
|
| 6643 |
+
{ url = "https://files.pythonhosted.org/packages/9a/07/d9412f3d7d462347e4511181dea65e47e0d0e16e26fbee2ea86a2aefb657/xxhash-3.6.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:01362c4331775398e7bb34e3ab403bc9ee9f7c497bc7dee6272114055277dd3c", size = 32744 },
|
| 6644 |
+
{ url = "https://files.pythonhosted.org/packages/79/35/0429ee11d035fc33abe32dca1b2b69e8c18d236547b9a9b72c1929189b9a/xxhash-3.6.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:b7b2df81a23f8cb99656378e72501b2cb41b1827c0f5a86f87d6b06b69f9f204", size = 30816 },
|
| 6645 |
+
{ url = "https://files.pythonhosted.org/packages/b7/f2/57eb99aa0f7d98624c0932c5b9a170e1806406cdbcdb510546634a1359e0/xxhash-3.6.0-cp312-cp312-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:dc94790144e66b14f67b10ac8ed75b39ca47536bf8800eb7c24b50271ea0c490", size = 194035 },
|
| 6646 |
+
{ url = "https://files.pythonhosted.org/packages/4c/ed/6224ba353690d73af7a3f1c7cdb1fc1b002e38f783cb991ae338e1eb3d79/xxhash-3.6.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:93f107c673bccf0d592cdba077dedaf52fe7f42dcd7676eba1f6d6f0c3efffd2", size = 212914 },
|
| 6647 |
+
{ url = "https://files.pythonhosted.org/packages/38/86/fb6b6130d8dd6b8942cc17ab4d90e223653a89aa32ad2776f8af7064ed13/xxhash-3.6.0-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:2aa5ee3444c25b69813663c9f8067dcfaa2e126dc55e8dddf40f4d1c25d7effa", size = 212163 },
|
| 6648 |
+
{ url = "https://files.pythonhosted.org/packages/ee/dc/e84875682b0593e884ad73b2d40767b5790d417bde603cceb6878901d647/xxhash-3.6.0-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:f7f99123f0e1194fa59cc69ad46dbae2e07becec5df50a0509a808f90a0f03f0", size = 445411 },
|
| 6649 |
+
{ url = "https://files.pythonhosted.org/packages/11/4f/426f91b96701ec2f37bb2b8cec664eff4f658a11f3fa9d94f0a887ea6d2b/xxhash-3.6.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:49e03e6fe2cac4a1bc64952dd250cf0dbc5ef4ebb7b8d96bce82e2de163c82a2", size = 193883 },
|
| 6650 |
+
{ url = "https://files.pythonhosted.org/packages/53/5a/ddbb83eee8e28b778eacfc5a85c969673e4023cdeedcfcef61f36731610b/xxhash-3.6.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:bd17fede52a17a4f9a7bc4472a5867cb0b160deeb431795c0e4abe158bc784e9", size = 210392 },
|
| 6651 |
+
{ url = "https://files.pythonhosted.org/packages/1e/c2/ff69efd07c8c074ccdf0a4f36fcdd3d27363665bcdf4ba399abebe643465/xxhash-3.6.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:6fb5f5476bef678f69db04f2bd1efbed3030d2aba305b0fc1773645f187d6a4e", size = 197898 },
|
| 6652 |
+
{ url = "https://files.pythonhosted.org/packages/58/ca/faa05ac19b3b622c7c9317ac3e23954187516298a091eb02c976d0d3dd45/xxhash-3.6.0-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:843b52f6d88071f87eba1631b684fcb4b2068cd2180a0224122fe4ef011a9374", size = 210655 },
|
| 6653 |
+
{ url = "https://files.pythonhosted.org/packages/d4/7a/06aa7482345480cc0cb597f5c875b11a82c3953f534394f620b0be2f700c/xxhash-3.6.0-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:7d14a6cfaf03b1b6f5f9790f76880601ccc7896aff7ab9cd8978a939c1eb7e0d", size = 414001 },
|
| 6654 |
+
{ url = "https://files.pythonhosted.org/packages/23/07/63ffb386cd47029aa2916b3d2f454e6cc5b9f5c5ada3790377d5430084e7/xxhash-3.6.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:418daf3db71e1413cfe211c2f9a528456936645c17f46b5204705581a45390ae", size = 191431 },
|
| 6655 |
+
{ url = "https://files.pythonhosted.org/packages/0f/93/14fde614cadb4ddf5e7cebf8918b7e8fac5ae7861c1875964f17e678205c/xxhash-3.6.0-cp312-cp312-win32.whl", hash = "sha256:50fc255f39428a27299c20e280d6193d8b63b8ef8028995323bf834a026b4fbb", size = 30617 },
|
| 6656 |
+
{ url = "https://files.pythonhosted.org/packages/13/5d/0d125536cbe7565a83d06e43783389ecae0c0f2ed037b48ede185de477c0/xxhash-3.6.0-cp312-cp312-win_amd64.whl", hash = "sha256:c0f2ab8c715630565ab8991b536ecded9416d615538be8ecddce43ccf26cbc7c", size = 31534 },
|
| 6657 |
+
{ url = "https://files.pythonhosted.org/packages/54/85/6ec269b0952ec7e36ba019125982cf11d91256a778c7c3f98a4c5043d283/xxhash-3.6.0-cp312-cp312-win_arm64.whl", hash = "sha256:eae5c13f3bc455a3bbb68bdc513912dc7356de7e2280363ea235f71f54064829", size = 27876 },
|
| 6658 |
+
{ url = "https://files.pythonhosted.org/packages/33/76/35d05267ac82f53ae9b0e554da7c5e281ee61f3cad44c743f0fcd354f211/xxhash-3.6.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:599e64ba7f67472481ceb6ee80fa3bd828fd61ba59fb11475572cc5ee52b89ec", size = 32738 },
|
| 6659 |
+
{ url = "https://files.pythonhosted.org/packages/31/a8/3fbce1cd96534a95e35d5120637bf29b0d7f5d8fa2f6374e31b4156dd419/xxhash-3.6.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:7d8b8aaa30fca4f16f0c84a5c8d7ddee0e25250ec2796c973775373257dde8f1", size = 30821 },
|
| 6660 |
+
{ url = "https://files.pythonhosted.org/packages/0c/ea/d387530ca7ecfa183cb358027f1833297c6ac6098223fd14f9782cd0015c/xxhash-3.6.0-cp313-cp313-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:d597acf8506d6e7101a4a44a5e428977a51c0fadbbfd3c39650cca9253f6e5a6", size = 194127 },
|
| 6661 |
+
{ url = "https://files.pythonhosted.org/packages/ba/0c/71435dcb99874b09a43b8d7c54071e600a7481e42b3e3ce1eb5226a5711a/xxhash-3.6.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:858dc935963a33bc33490128edc1c12b0c14d9c7ebaa4e387a7869ecc4f3e263", size = 212975 },
|
| 6662 |
+
{ url = "https://files.pythonhosted.org/packages/84/7a/c2b3d071e4bb4a90b7057228a99b10d51744878f4a8a6dd643c8bd897620/xxhash-3.6.0-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:ba284920194615cb8edf73bf52236ce2e1664ccd4a38fdb543506413529cc546", size = 212241 },
|
| 6663 |
+
{ url = "https://files.pythonhosted.org/packages/81/5f/640b6eac0128e215f177df99eadcd0f1b7c42c274ab6a394a05059694c5a/xxhash-3.6.0-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:4b54219177f6c6674d5378bd862c6aedf64725f70dd29c472eaae154df1a2e89", size = 445471 },
|
| 6664 |
+
{ url = "https://files.pythonhosted.org/packages/5e/1e/3c3d3ef071b051cc3abbe3721ffb8365033a172613c04af2da89d5548a87/xxhash-3.6.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:42c36dd7dbad2f5238950c377fcbf6811b1cdb1c444fab447960030cea60504d", size = 193936 },
|
| 6665 |
+
{ url = "https://files.pythonhosted.org/packages/2c/bd/4a5f68381939219abfe1c22a9e3a5854a4f6f6f3c4983a87d255f21f2e5d/xxhash-3.6.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:f22927652cba98c44639ffdc7aaf35828dccf679b10b31c4ad72a5b530a18eb7", size = 210440 },
|
| 6666 |
+
{ url = "https://files.pythonhosted.org/packages/eb/37/b80fe3d5cfb9faff01a02121a0f4d565eb7237e9e5fc66e73017e74dcd36/xxhash-3.6.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:b45fad44d9c5c119e9c6fbf2e1c656a46dc68e280275007bbfd3d572b21426db", size = 197990 },
|
| 6667 |
+
{ url = "https://files.pythonhosted.org/packages/d7/fd/2c0a00c97b9e18f72e1f240ad4e8f8a90fd9d408289ba9c7c495ed7dc05c/xxhash-3.6.0-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:6f2580ffab1a8b68ef2b901cde7e55fa8da5e4be0977c68f78fc80f3c143de42", size = 210689 },
|
| 6668 |
+
{ url = "https://files.pythonhosted.org/packages/93/86/5dd8076a926b9a95db3206aba20d89a7fc14dd5aac16e5c4de4b56033140/xxhash-3.6.0-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:40c391dd3cd041ebc3ffe6f2c862f402e306eb571422e0aa918d8070ba31da11", size = 414068 },
|
| 6669 |
+
{ url = "https://files.pythonhosted.org/packages/af/3c/0bb129170ee8f3650f08e993baee550a09593462a5cddd8e44d0011102b1/xxhash-3.6.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:f205badabde7aafd1a31e8ca2a3e5a763107a71c397c4481d6a804eb5063d8bd", size = 191495 },
|
| 6670 |
+
{ url = "https://files.pythonhosted.org/packages/e9/3a/6797e0114c21d1725e2577508e24006fd7ff1d8c0c502d3b52e45c1771d8/xxhash-3.6.0-cp313-cp313-win32.whl", hash = "sha256:2577b276e060b73b73a53042ea5bd5203d3e6347ce0d09f98500f418a9fcf799", size = 30620 },
|
| 6671 |
+
{ url = "https://files.pythonhosted.org/packages/86/15/9bc32671e9a38b413a76d24722a2bf8784a132c043063a8f5152d390b0f9/xxhash-3.6.0-cp313-cp313-win_amd64.whl", hash = "sha256:757320d45d2fbcce8f30c42a6b2f47862967aea7bf458b9625b4bbe7ee390392", size = 31542 },
|
| 6672 |
+
{ url = "https://files.pythonhosted.org/packages/39/c5/cc01e4f6188656e56112d6a8e0dfe298a16934b8c47a247236549a3f7695/xxhash-3.6.0-cp313-cp313-win_arm64.whl", hash = "sha256:457b8f85dec5825eed7b69c11ae86834a018b8e3df5e77783c999663da2f96d6", size = 27880 },
|
| 6673 |
+
{ url = "https://files.pythonhosted.org/packages/f3/30/25e5321c8732759e930c555176d37e24ab84365482d257c3b16362235212/xxhash-3.6.0-cp313-cp313t-macosx_10_13_x86_64.whl", hash = "sha256:a42e633d75cdad6d625434e3468126c73f13f7584545a9cf34e883aa1710e702", size = 32956 },
|
| 6674 |
+
{ url = "https://files.pythonhosted.org/packages/9f/3c/0573299560d7d9f8ab1838f1efc021a280b5ae5ae2e849034ef3dee18810/xxhash-3.6.0-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:568a6d743219e717b07b4e03b0a828ce593833e498c3b64752e0f5df6bfe84db", size = 31072 },
|
| 6675 |
+
{ url = "https://files.pythonhosted.org/packages/7a/1c/52d83a06e417cd9d4137722693424885cc9878249beb3a7c829e74bf7ce9/xxhash-3.6.0-cp313-cp313t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:bec91b562d8012dae276af8025a55811b875baace6af510412a5e58e3121bc54", size = 196409 },
|
| 6676 |
+
{ url = "https://files.pythonhosted.org/packages/e3/8e/c6d158d12a79bbd0b878f8355432075fc82759e356ab5a111463422a239b/xxhash-3.6.0-cp313-cp313t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:78e7f2f4c521c30ad5e786fdd6bae89d47a32672a80195467b5de0480aa97b1f", size = 215736 },
|
| 6677 |
+
{ url = "https://files.pythonhosted.org/packages/bc/68/c4c80614716345d55071a396cf03d06e34b5f4917a467faf43083c995155/xxhash-3.6.0-cp313-cp313t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:3ed0df1b11a79856df5ffcab572cbd6b9627034c1c748c5566fa79df9048a7c5", size = 214833 },
|
| 6678 |
+
{ url = "https://files.pythonhosted.org/packages/7e/e9/ae27c8ffec8b953efa84c7c4a6c6802c263d587b9fc0d6e7cea64e08c3af/xxhash-3.6.0-cp313-cp313t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:0e4edbfc7d420925b0dd5e792478ed393d6e75ff8fc219a6546fb446b6a417b1", size = 448348 },
|
| 6679 |
+
{ url = "https://files.pythonhosted.org/packages/d7/6b/33e21afb1b5b3f46b74b6bd1913639066af218d704cc0941404ca717fc57/xxhash-3.6.0-cp313-cp313t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:fba27a198363a7ef87f8c0f6b171ec36b674fe9053742c58dd7e3201c1ab30ee", size = 196070 },
|
| 6680 |
+
{ url = "https://files.pythonhosted.org/packages/96/b6/fcabd337bc5fa624e7203aa0fa7d0c49eed22f72e93229431752bddc83d9/xxhash-3.6.0-cp313-cp313t-musllinux_1_2_aarch64.whl", hash = "sha256:794fe9145fe60191c6532fa95063765529770edcdd67b3d537793e8004cabbfd", size = 212907 },
|
| 6681 |
+
{ url = "https://files.pythonhosted.org/packages/4b/d3/9ee6160e644d660fcf176c5825e61411c7f62648728f69c79ba237250143/xxhash-3.6.0-cp313-cp313t-musllinux_1_2_i686.whl", hash = "sha256:6105ef7e62b5ac73a837778efc331a591d8442f8ef5c7e102376506cb4ae2729", size = 200839 },
|
| 6682 |
+
{ url = "https://files.pythonhosted.org/packages/0d/98/e8de5baa5109394baf5118f5e72ab21a86387c4f89b0e77ef3e2f6b0327b/xxhash-3.6.0-cp313-cp313t-musllinux_1_2_ppc64le.whl", hash = "sha256:f01375c0e55395b814a679b3eea205db7919ac2af213f4a6682e01220e5fe292", size = 213304 },
|
| 6683 |
+
{ url = "https://files.pythonhosted.org/packages/7b/1d/71056535dec5c3177eeb53e38e3d367dd1d16e024e63b1cee208d572a033/xxhash-3.6.0-cp313-cp313t-musllinux_1_2_s390x.whl", hash = "sha256:d706dca2d24d834a4661619dcacf51a75c16d65985718d6a7d73c1eeeb903ddf", size = 416930 },
|
| 6684 |
+
{ url = "https://files.pythonhosted.org/packages/dc/6c/5cbde9de2cd967c322e651c65c543700b19e7ae3e0aae8ece3469bf9683d/xxhash-3.6.0-cp313-cp313t-musllinux_1_2_x86_64.whl", hash = "sha256:5f059d9faeacd49c0215d66f4056e1326c80503f51a1532ca336a385edadd033", size = 193787 },
|
| 6685 |
+
{ url = "https://files.pythonhosted.org/packages/19/fa/0172e350361d61febcea941b0cc541d6e6c8d65d153e85f850a7b256ff8a/xxhash-3.6.0-cp313-cp313t-win32.whl", hash = "sha256:1244460adc3a9be84731d72b8e80625788e5815b68da3da8b83f78115a40a7ec", size = 30916 },
|
| 6686 |
+
{ url = "https://files.pythonhosted.org/packages/ad/e6/e8cf858a2b19d6d45820f072eff1bea413910592ff17157cabc5f1227a16/xxhash-3.6.0-cp313-cp313t-win_amd64.whl", hash = "sha256:b1e420ef35c503869c4064f4a2f2b08ad6431ab7b229a05cce39d74268bca6b8", size = 31799 },
|
| 6687 |
+
{ url = "https://files.pythonhosted.org/packages/56/15/064b197e855bfb7b343210e82490ae672f8bc7cdf3ddb02e92f64304ee8a/xxhash-3.6.0-cp313-cp313t-win_arm64.whl", hash = "sha256:ec44b73a4220623235f67a996c862049f375df3b1052d9899f40a6382c32d746", size = 28044 },
|
| 6688 |
+
{ url = "https://files.pythonhosted.org/packages/7e/5e/0138bc4484ea9b897864d59fce9be9086030825bc778b76cb5a33a906d37/xxhash-3.6.0-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:a40a3d35b204b7cc7643cbcf8c9976d818cb47befcfac8bbefec8038ac363f3e", size = 32754 },
|
| 6689 |
+
{ url = "https://files.pythonhosted.org/packages/18/d7/5dac2eb2ec75fd771957a13e5dda560efb2176d5203f39502a5fc571f899/xxhash-3.6.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:a54844be970d3fc22630b32d515e79a90d0a3ddb2644d8d7402e3c4c8da61405", size = 30846 },
|
| 6690 |
+
{ url = "https://files.pythonhosted.org/packages/fe/71/8bc5be2bb00deb5682e92e8da955ebe5fa982da13a69da5a40a4c8db12fb/xxhash-3.6.0-cp314-cp314-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:016e9190af8f0a4e3741343777710e3d5717427f175adfdc3e72508f59e2a7f3", size = 194343 },
|
| 6691 |
+
{ url = "https://files.pythonhosted.org/packages/e7/3b/52badfb2aecec2c377ddf1ae75f55db3ba2d321c5e164f14461c90837ef3/xxhash-3.6.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:4f6f72232f849eb9d0141e2ebe2677ece15adfd0fa599bc058aad83c714bb2c6", size = 213074 },
|
| 6692 |
+
{ url = "https://files.pythonhosted.org/packages/a2/2b/ae46b4e9b92e537fa30d03dbc19cdae57ed407e9c26d163895e968e3de85/xxhash-3.6.0-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:63275a8aba7865e44b1813d2177e0f5ea7eadad3dd063a21f7cf9afdc7054063", size = 212388 },
|
| 6693 |
+
{ url = "https://files.pythonhosted.org/packages/f5/80/49f88d3afc724b4ac7fbd664c8452d6db51b49915be48c6982659e0e7942/xxhash-3.6.0-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:3cd01fa2aa00d8b017c97eb46b9a794fbdca53fc14f845f5a328c71254b0abb7", size = 445614 },
|
| 6694 |
+
{ url = "https://files.pythonhosted.org/packages/ed/ba/603ce3961e339413543d8cd44f21f2c80e2a7c5cfe692a7b1f2cccf58f3c/xxhash-3.6.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:0226aa89035b62b6a86d3c68df4d7c1f47a342b8683da2b60cedcddb46c4d95b", size = 194024 },
|
| 6695 |
+
{ url = "https://files.pythonhosted.org/packages/78/d1/8e225ff7113bf81545cfdcd79eef124a7b7064a0bba53605ff39590b95c2/xxhash-3.6.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:c6e193e9f56e4ca4923c61238cdaced324f0feac782544eb4c6d55ad5cc99ddd", size = 210541 },
|
| 6696 |
+
{ url = "https://files.pythonhosted.org/packages/6f/58/0f89d149f0bad89def1a8dd38feb50ccdeb643d9797ec84707091d4cb494/xxhash-3.6.0-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:9176dcaddf4ca963d4deb93866d739a343c01c969231dbe21680e13a5d1a5bf0", size = 198305 },
|
| 6697 |
+
{ url = "https://files.pythonhosted.org/packages/11/38/5eab81580703c4df93feb5f32ff8fa7fe1e2c51c1f183ee4e48d4bb9d3d7/xxhash-3.6.0-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:c1ce4009c97a752e682b897aa99aef84191077a9433eb237774689f14f8ec152", size = 210848 },
|
| 6698 |
+
{ url = "https://files.pythonhosted.org/packages/5e/6b/953dc4b05c3ce678abca756416e4c130d2382f877a9c30a20d08ee6a77c0/xxhash-3.6.0-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:8cb2f4f679b01513b7adbb9b1b2f0f9cdc31b70007eaf9d59d0878809f385b11", size = 414142 },
|
| 6699 |
+
{ url = "https://files.pythonhosted.org/packages/08/a9/238ec0d4e81a10eb5026d4a6972677cbc898ba6c8b9dbaec12ae001b1b35/xxhash-3.6.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:653a91d7c2ab54a92c19ccf43508b6a555440b9be1bc8be553376778be7f20b5", size = 191547 },
|
| 6700 |
+
{ url = "https://files.pythonhosted.org/packages/f1/ee/3cf8589e06c2164ac77c3bf0aa127012801128f1feebf2a079272da5737c/xxhash-3.6.0-cp314-cp314-win32.whl", hash = "sha256:a756fe893389483ee8c394d06b5ab765d96e68fbbfe6fde7aa17e11f5720559f", size = 31214 },
|
| 6701 |
+
{ url = "https://files.pythonhosted.org/packages/02/5d/a19552fbc6ad4cb54ff953c3908bbc095f4a921bc569433d791f755186f1/xxhash-3.6.0-cp314-cp314-win_amd64.whl", hash = "sha256:39be8e4e142550ef69629c9cd71b88c90e9a5db703fecbcf265546d9536ca4ad", size = 32290 },
|
| 6702 |
+
{ url = "https://files.pythonhosted.org/packages/b1/11/dafa0643bc30442c887b55baf8e73353a344ee89c1901b5a5c54a6c17d39/xxhash-3.6.0-cp314-cp314-win_arm64.whl", hash = "sha256:25915e6000338999236f1eb68a02a32c3275ac338628a7eaa5a269c401995679", size = 28795 },
|
| 6703 |
+
{ url = "https://files.pythonhosted.org/packages/2c/db/0e99732ed7f64182aef4a6fb145e1a295558deec2a746265dcdec12d191e/xxhash-3.6.0-cp314-cp314t-macosx_10_13_x86_64.whl", hash = "sha256:c5294f596a9017ca5a3e3f8884c00b91ab2ad2933cf288f4923c3fd4346cf3d4", size = 32955 },
|
| 6704 |
+
{ url = "https://files.pythonhosted.org/packages/55/f4/2a7c3c68e564a099becfa44bb3d398810cc0ff6749b0d3cb8ccb93f23c14/xxhash-3.6.0-cp314-cp314t-macosx_11_0_arm64.whl", hash = "sha256:1cf9dcc4ab9cff01dfbba78544297a3a01dafd60f3bde4e2bfd016cf7e4ddc67", size = 31072 },
|
| 6705 |
+
{ url = "https://files.pythonhosted.org/packages/c6/d9/72a29cddc7250e8a5819dad5d466facb5dc4c802ce120645630149127e73/xxhash-3.6.0-cp314-cp314t-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:01262da8798422d0685f7cef03b2bd3f4f46511b02830861df548d7def4402ad", size = 196579 },
|
| 6706 |
+
{ url = "https://files.pythonhosted.org/packages/63/93/b21590e1e381040e2ca305a884d89e1c345b347404f7780f07f2cdd47ef4/xxhash-3.6.0-cp314-cp314t-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:51a73fb7cb3a3ead9f7a8b583ffd9b8038e277cdb8cb87cf890e88b3456afa0b", size = 215854 },
|
| 6707 |
+
{ url = "https://files.pythonhosted.org/packages/ce/b8/edab8a7d4fa14e924b29be877d54155dcbd8b80be85ea00d2be3413a9ed4/xxhash-3.6.0-cp314-cp314t-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:b9c6df83594f7df8f7f708ce5ebeacfc69f72c9fbaaababf6cf4758eaada0c9b", size = 214965 },
|
| 6708 |
+
{ url = "https://files.pythonhosted.org/packages/27/67/dfa980ac7f0d509d54ea0d5a486d2bb4b80c3f1bb22b66e6a05d3efaf6c0/xxhash-3.6.0-cp314-cp314t-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:627f0af069b0ea56f312fd5189001c24578868643203bca1abbc2c52d3a6f3ca", size = 448484 },
|
| 6709 |
+
{ url = "https://files.pythonhosted.org/packages/8c/63/8ffc2cc97e811c0ca5d00ab36604b3ea6f4254f20b7bc658ca825ce6c954/xxhash-3.6.0-cp314-cp314t-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:aa912c62f842dfd013c5f21a642c9c10cd9f4c4e943e0af83618b4a404d9091a", size = 196162 },
|
| 6710 |
+
{ url = "https://files.pythonhosted.org/packages/4b/77/07f0e7a3edd11a6097e990f6e5b815b6592459cb16dae990d967693e6ea9/xxhash-3.6.0-cp314-cp314t-musllinux_1_2_aarch64.whl", hash = "sha256:b465afd7909db30168ab62afe40b2fcf79eedc0b89a6c0ab3123515dc0df8b99", size = 213007 },
|
| 6711 |
+
{ url = "https://files.pythonhosted.org/packages/ae/d8/bc5fa0d152837117eb0bef6f83f956c509332ce133c91c63ce07ee7c4873/xxhash-3.6.0-cp314-cp314t-musllinux_1_2_i686.whl", hash = "sha256:a881851cf38b0a70e7c4d3ce81fc7afd86fbc2a024f4cfb2a97cf49ce04b75d3", size = 200956 },
|
| 6712 |
+
{ url = "https://files.pythonhosted.org/packages/26/a5/d749334130de9411783873e9b98ecc46688dad5db64ca6e04b02acc8b473/xxhash-3.6.0-cp314-cp314t-musllinux_1_2_ppc64le.whl", hash = "sha256:9b3222c686a919a0f3253cfc12bb118b8b103506612253b5baeaac10d8027cf6", size = 213401 },
|
| 6713 |
+
{ url = "https://files.pythonhosted.org/packages/89/72/abed959c956a4bfc72b58c0384bb7940663c678127538634d896b1195c10/xxhash-3.6.0-cp314-cp314t-musllinux_1_2_s390x.whl", hash = "sha256:c5aa639bc113e9286137cec8fadc20e9cd732b2cc385c0b7fa673b84fc1f2a93", size = 417083 },
|
| 6714 |
+
{ url = "https://files.pythonhosted.org/packages/0c/b3/62fd2b586283b7d7d665fb98e266decadf31f058f1cf6c478741f68af0cb/xxhash-3.6.0-cp314-cp314t-musllinux_1_2_x86_64.whl", hash = "sha256:5c1343d49ac102799905e115aee590183c3921d475356cb24b4de29a4bc56518", size = 193913 },
|
| 6715 |
+
{ url = "https://files.pythonhosted.org/packages/9a/9a/c19c42c5b3f5a4aad748a6d5b4f23df3bed7ee5445accc65a0fb3ff03953/xxhash-3.6.0-cp314-cp314t-win32.whl", hash = "sha256:5851f033c3030dd95c086b4a36a2683c2ff4a799b23af60977188b057e467119", size = 31586 },
|
| 6716 |
+
{ url = "https://files.pythonhosted.org/packages/03/d6/4cc450345be9924fd5dc8c590ceda1db5b43a0a889587b0ae81a95511360/xxhash-3.6.0-cp314-cp314t-win_amd64.whl", hash = "sha256:0444e7967dac37569052d2409b00a8860c2135cff05502df4da80267d384849f", size = 32526 },
|
| 6717 |
+
{ url = "https://files.pythonhosted.org/packages/0f/c9/7243eb3f9eaabd1a88a5a5acadf06df2d83b100c62684b7425c6a11bcaa8/xxhash-3.6.0-cp314-cp314t-win_arm64.whl", hash = "sha256:bb79b1e63f6fd84ec778a4b1916dfe0a7c3fdb986c06addd5db3a0d413819d95", size = 28898 },
|
| 6718 |
+
{ url = "https://files.pythonhosted.org/packages/93/1e/8aec23647a34a249f62e2398c42955acd9b4c6ed5cf08cbea94dc46f78d2/xxhash-3.6.0-pp311-pypy311_pp73-macosx_10_15_x86_64.whl", hash = "sha256:0f7b7e2ec26c1666ad5fc9dbfa426a6a3367ceaf79db5dd76264659d509d73b0", size = 30662 },
|
| 6719 |
+
{ url = "https://files.pythonhosted.org/packages/b8/0b/b14510b38ba91caf43006209db846a696ceea6a847a0c9ba0a5b1adc53d6/xxhash-3.6.0-pp311-pypy311_pp73-manylinux1_i686.manylinux_2_28_i686.manylinux_2_5_i686.whl", hash = "sha256:5dc1e14d14fa0f5789ec29a7062004b5933964bb9b02aae6622b8f530dc40296", size = 41056 },
|
| 6720 |
+
{ url = "https://files.pythonhosted.org/packages/50/55/15a7b8a56590e66ccd374bbfa3f9ffc45b810886c8c3b614e3f90bd2367c/xxhash-3.6.0-pp311-pypy311_pp73-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:881b47fc47e051b37d94d13e7455131054b56749b91b508b0907eb07900d1c13", size = 36251 },
|
| 6721 |
+
{ url = "https://files.pythonhosted.org/packages/62/b2/5ac99a041a29e58e95f907876b04f7067a0242cb85b5f39e726153981503/xxhash-3.6.0-pp311-pypy311_pp73-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c6dc31591899f5e5666f04cc2e529e69b4072827085c1ef15294d91a004bc1bd", size = 32481 },
|
| 6722 |
+
{ url = "https://files.pythonhosted.org/packages/7b/d9/8d95e906764a386a3d3b596f3c68bb63687dfca806373509f51ce8eea81f/xxhash-3.6.0-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:15e0dac10eb9309508bfc41f7f9deaa7755c69e35af835db9cb10751adebc35d", size = 31565 },
|
| 6723 |
+
]
|
| 6724 |
+
|
| 6725 |
[[package]]
|
| 6726 |
name = "yarl"
|
| 6727 |
version = "1.22.0"
|
|
|
|
| 6840 |
wheels = [
|
| 6841 |
{ url = "https://files.pythonhosted.org/packages/2e/54/647ade08bf0db230bfea292f893923872fd20be6ac6f53b2b936ba839d75/zipp-3.23.0-py3-none-any.whl", hash = "sha256:071652d6115ed432f5ce1d34c336c0adfd6a884660d1e9712a256d3d3bd4b14e", size = 10276 },
|
| 6842 |
]
|
| 6843 |
+
|
| 6844 |
+
[[package]]
|
| 6845 |
+
name = "zstandard"
|
| 6846 |
+
version = "0.25.0"
|
| 6847 |
+
source = { registry = "https://pypi.org/simple" }
|
| 6848 |
+
sdist = { url = "https://files.pythonhosted.org/packages/fd/aa/3e0508d5a5dd96529cdc5a97011299056e14c6505b678fd58938792794b1/zstandard-0.25.0.tar.gz", hash = "sha256:7713e1179d162cf5c7906da876ec2ccb9c3a9dcbdffef0cc7f70c3667a205f0b", size = 711513 }
|
| 6849 |
+
wheels = [
|
| 6850 |
+
{ url = "https://files.pythonhosted.org/packages/2a/83/c3ca27c363d104980f1c9cee1101cc8ba724ac8c28a033ede6aab89585b1/zstandard-0.25.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:933b65d7680ea337180733cf9e87293cc5500cc0eb3fc8769f4d3c88d724ec5c", size = 795254 },
|
| 6851 |
+
{ url = "https://files.pythonhosted.org/packages/ac/4d/e66465c5411a7cf4866aeadc7d108081d8ceba9bc7abe6b14aa21c671ec3/zstandard-0.25.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:a3f79487c687b1fc69f19e487cd949bf3aae653d181dfb5fde3bf6d18894706f", size = 640559 },
|
| 6852 |
+
{ url = "https://files.pythonhosted.org/packages/12/56/354fe655905f290d3b147b33fe946b0f27e791e4b50a5f004c802cb3eb7b/zstandard-0.25.0-cp311-cp311-manylinux2010_i686.manylinux2014_i686.manylinux_2_12_i686.manylinux_2_17_i686.whl", hash = "sha256:0bbc9a0c65ce0eea3c34a691e3c4b6889f5f3909ba4822ab385fab9057099431", size = 5348020 },
|
| 6853 |
+
{ url = "https://files.pythonhosted.org/packages/3b/13/2b7ed68bd85e69a2069bcc72141d378f22cae5a0f3b353a2c8f50ef30c1b/zstandard-0.25.0-cp311-cp311-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:01582723b3ccd6939ab7b3a78622c573799d5d8737b534b86d0e06ac18dbde4a", size = 5058126 },
|
| 6854 |
+
{ url = "https://files.pythonhosted.org/packages/c9/dd/fdaf0674f4b10d92cb120ccff58bbb6626bf8368f00ebfd2a41ba4a0dc99/zstandard-0.25.0-cp311-cp311-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:5f1ad7bf88535edcf30038f6919abe087f606f62c00a87d7e33e7fc57cb69fcc", size = 5405390 },
|
| 6855 |
+
{ url = "https://files.pythonhosted.org/packages/0f/67/354d1555575bc2490435f90d67ca4dd65238ff2f119f30f72d5cde09c2ad/zstandard-0.25.0-cp311-cp311-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:06acb75eebeedb77b69048031282737717a63e71e4ae3f77cc0c3b9508320df6", size = 5452914 },
|
| 6856 |
+
{ url = "https://files.pythonhosted.org/packages/bb/1f/e9cfd801a3f9190bf3e759c422bbfd2247db9d7f3d54a56ecde70137791a/zstandard-0.25.0-cp311-cp311-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:9300d02ea7c6506f00e627e287e0492a5eb0371ec1670ae852fefffa6164b072", size = 5559635 },
|
| 6857 |
+
{ url = "https://files.pythonhosted.org/packages/21/88/5ba550f797ca953a52d708c8e4f380959e7e3280af029e38fbf47b55916e/zstandard-0.25.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:bfd06b1c5584b657a2892a6014c2f4c20e0db0208c159148fa78c65f7e0b0277", size = 5048277 },
|
| 6858 |
+
{ url = "https://files.pythonhosted.org/packages/46/c0/ca3e533b4fa03112facbe7fbe7779cb1ebec215688e5df576fe5429172e0/zstandard-0.25.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:f373da2c1757bb7f1acaf09369cdc1d51d84131e50d5fa9863982fd626466313", size = 5574377 },
|
| 6859 |
+
{ url = "https://files.pythonhosted.org/packages/12/9b/3fb626390113f272abd0799fd677ea33d5fc3ec185e62e6be534493c4b60/zstandard-0.25.0-cp311-cp311-musllinux_1_2_aarch64.whl", hash = "sha256:6c0e5a65158a7946e7a7affa6418878ef97ab66636f13353b8502d7ea03c8097", size = 4961493 },
|
| 6860 |
+
{ url = "https://files.pythonhosted.org/packages/cb/d3/23094a6b6a4b1343b27ae68249daa17ae0651fcfec9ed4de09d14b940285/zstandard-0.25.0-cp311-cp311-musllinux_1_2_i686.whl", hash = "sha256:c8e167d5adf59476fa3e37bee730890e389410c354771a62e3c076c86f9f7778", size = 5269018 },
|
| 6861 |
+
{ url = "https://files.pythonhosted.org/packages/8c/a7/bb5a0c1c0f3f4b5e9d5b55198e39de91e04ba7c205cc46fcb0f95f0383c1/zstandard-0.25.0-cp311-cp311-musllinux_1_2_ppc64le.whl", hash = "sha256:98750a309eb2f020da61e727de7d7ba3c57c97cf6213f6f6277bb7fb42a8e065", size = 5443672 },
|
| 6862 |
+
{ url = "https://files.pythonhosted.org/packages/27/22/503347aa08d073993f25109c36c8d9f029c7d5949198050962cb568dfa5e/zstandard-0.25.0-cp311-cp311-musllinux_1_2_s390x.whl", hash = "sha256:22a086cff1b6ceca18a8dd6096ec631e430e93a8e70a9ca5efa7561a00f826fa", size = 5822753 },
|
| 6863 |
+
{ url = "https://files.pythonhosted.org/packages/e2/be/94267dc6ee64f0f8ba2b2ae7c7a2df934a816baaa7291db9e1aa77394c3c/zstandard-0.25.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:72d35d7aa0bba323965da807a462b0966c91608ef3a48ba761678cb20ce5d8b7", size = 5366047 },
|
| 6864 |
+
{ url = "https://files.pythonhosted.org/packages/7b/a3/732893eab0a3a7aecff8b99052fecf9f605cf0fb5fb6d0290e36beee47a4/zstandard-0.25.0-cp311-cp311-win32.whl", hash = "sha256:f5aeea11ded7320a84dcdd62a3d95b5186834224a9e55b92ccae35d21a8b63d4", size = 436484 },
|
| 6865 |
+
{ url = "https://files.pythonhosted.org/packages/43/a3/c6155f5c1cce691cb80dfd38627046e50af3ee9ddc5d0b45b9b063bfb8c9/zstandard-0.25.0-cp311-cp311-win_amd64.whl", hash = "sha256:daab68faadb847063d0c56f361a289c4f268706b598afbf9ad113cbe5c38b6b2", size = 506183 },
|
| 6866 |
+
{ url = "https://files.pythonhosted.org/packages/8c/3e/8945ab86a0820cc0e0cdbf38086a92868a9172020fdab8a03ac19662b0e5/zstandard-0.25.0-cp311-cp311-win_arm64.whl", hash = "sha256:22a06c5df3751bb7dc67406f5374734ccee8ed37fc5981bf1ad7041831fa1137", size = 462533 },
|
| 6867 |
+
{ url = "https://files.pythonhosted.org/packages/82/fc/f26eb6ef91ae723a03e16eddb198abcfce2bc5a42e224d44cc8b6765e57e/zstandard-0.25.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:7b3c3a3ab9daa3eed242d6ecceead93aebbb8f5f84318d82cee643e019c4b73b", size = 795738 },
|
| 6868 |
+
{ url = "https://files.pythonhosted.org/packages/aa/1c/d920d64b22f8dd028a8b90e2d756e431a5d86194caa78e3819c7bf53b4b3/zstandard-0.25.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:913cbd31a400febff93b564a23e17c3ed2d56c064006f54efec210d586171c00", size = 640436 },
|
| 6869 |
+
{ url = "https://files.pythonhosted.org/packages/53/6c/288c3f0bd9fcfe9ca41e2c2fbfd17b2097f6af57b62a81161941f09afa76/zstandard-0.25.0-cp312-cp312-manylinux2010_i686.manylinux2014_i686.manylinux_2_12_i686.manylinux_2_17_i686.whl", hash = "sha256:011d388c76b11a0c165374ce660ce2c8efa8e5d87f34996aa80f9c0816698b64", size = 5343019 },
|
| 6870 |
+
{ url = "https://files.pythonhosted.org/packages/1e/15/efef5a2f204a64bdb5571e6161d49f7ef0fffdbca953a615efbec045f60f/zstandard-0.25.0-cp312-cp312-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:6dffecc361d079bb48d7caef5d673c88c8988d3d33fb74ab95b7ee6da42652ea", size = 5063012 },
|
| 6871 |
+
{ url = "https://files.pythonhosted.org/packages/b7/37/a6ce629ffdb43959e92e87ebdaeebb5ac81c944b6a75c9c47e300f85abdf/zstandard-0.25.0-cp312-cp312-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:7149623bba7fdf7e7f24312953bcf73cae103db8cae49f8154dd1eadc8a29ecb", size = 5394148 },
|
| 6872 |
+
{ url = "https://files.pythonhosted.org/packages/e3/79/2bf870b3abeb5c070fe2d670a5a8d1057a8270f125ef7676d29ea900f496/zstandard-0.25.0-cp312-cp312-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:6a573a35693e03cf1d67799fd01b50ff578515a8aeadd4595d2a7fa9f3ec002a", size = 5451652 },
|
| 6873 |
+
{ url = "https://files.pythonhosted.org/packages/53/60/7be26e610767316c028a2cbedb9a3beabdbe33e2182c373f71a1c0b88f36/zstandard-0.25.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:5a56ba0db2d244117ed744dfa8f6f5b366e14148e00de44723413b2f3938a902", size = 5546993 },
|
| 6874 |
+
{ url = "https://files.pythonhosted.org/packages/85/c7/3483ad9ff0662623f3648479b0380d2de5510abf00990468c286c6b04017/zstandard-0.25.0-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:10ef2a79ab8e2974e2075fb984e5b9806c64134810fac21576f0668e7ea19f8f", size = 5046806 },
|
| 6875 |
+
{ url = "https://files.pythonhosted.org/packages/08/b3/206883dd25b8d1591a1caa44b54c2aad84badccf2f1de9e2d60a446f9a25/zstandard-0.25.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:aaf21ba8fb76d102b696781bddaa0954b782536446083ae3fdaa6f16b25a1c4b", size = 5576659 },
|
| 6876 |
+
{ url = "https://files.pythonhosted.org/packages/9d/31/76c0779101453e6c117b0ff22565865c54f48f8bd807df2b00c2c404b8e0/zstandard-0.25.0-cp312-cp312-musllinux_1_2_aarch64.whl", hash = "sha256:1869da9571d5e94a85a5e8d57e4e8807b175c9e4a6294e3b66fa4efb074d90f6", size = 4953933 },
|
| 6877 |
+
{ url = "https://files.pythonhosted.org/packages/18/e1/97680c664a1bf9a247a280a053d98e251424af51f1b196c6d52f117c9720/zstandard-0.25.0-cp312-cp312-musllinux_1_2_i686.whl", hash = "sha256:809c5bcb2c67cd0ed81e9229d227d4ca28f82d0f778fc5fea624a9def3963f91", size = 5268008 },
|
| 6878 |
+
{ url = "https://files.pythonhosted.org/packages/1e/73/316e4010de585ac798e154e88fd81bb16afc5c5cb1a72eeb16dd37e8024a/zstandard-0.25.0-cp312-cp312-musllinux_1_2_ppc64le.whl", hash = "sha256:f27662e4f7dbf9f9c12391cb37b4c4c3cb90ffbd3b1fb9284dadbbb8935fa708", size = 5433517 },
|
| 6879 |
+
{ url = "https://files.pythonhosted.org/packages/5b/60/dd0f8cfa8129c5a0ce3ea6b7f70be5b33d2618013a161e1ff26c2b39787c/zstandard-0.25.0-cp312-cp312-musllinux_1_2_s390x.whl", hash = "sha256:99c0c846e6e61718715a3c9437ccc625de26593fea60189567f0118dc9db7512", size = 5814292 },
|
| 6880 |
+
{ url = "https://files.pythonhosted.org/packages/fc/5f/75aafd4b9d11b5407b641b8e41a57864097663699f23e9ad4dbb91dc6bfe/zstandard-0.25.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:474d2596a2dbc241a556e965fb76002c1ce655445e4e3bf38e5477d413165ffa", size = 5360237 },
|
| 6881 |
+
{ url = "https://files.pythonhosted.org/packages/ff/8d/0309daffea4fcac7981021dbf21cdb2e3427a9e76bafbcdbdf5392ff99a4/zstandard-0.25.0-cp312-cp312-win32.whl", hash = "sha256:23ebc8f17a03133b4426bcc04aabd68f8236eb78c3760f12783385171b0fd8bd", size = 436922 },
|
| 6882 |
+
{ url = "https://files.pythonhosted.org/packages/79/3b/fa54d9015f945330510cb5d0b0501e8253c127cca7ebe8ba46a965df18c5/zstandard-0.25.0-cp312-cp312-win_amd64.whl", hash = "sha256:ffef5a74088f1e09947aecf91011136665152e0b4b359c42be3373897fb39b01", size = 506276 },
|
| 6883 |
+
{ url = "https://files.pythonhosted.org/packages/ea/6b/8b51697e5319b1f9ac71087b0af9a40d8a6288ff8025c36486e0c12abcc4/zstandard-0.25.0-cp312-cp312-win_arm64.whl", hash = "sha256:181eb40e0b6a29b3cd2849f825e0fa34397f649170673d385f3598ae17cca2e9", size = 462679 },
|
| 6884 |
+
{ url = "https://files.pythonhosted.org/packages/35/0b/8df9c4ad06af91d39e94fa96cc010a24ac4ef1378d3efab9223cc8593d40/zstandard-0.25.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:ec996f12524f88e151c339688c3897194821d7f03081ab35d31d1e12ec975e94", size = 795735 },
|
| 6885 |
+
{ url = "https://files.pythonhosted.org/packages/3f/06/9ae96a3e5dcfd119377ba33d4c42a7d89da1efabd5cb3e366b156c45ff4d/zstandard-0.25.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:a1a4ae2dec3993a32247995bdfe367fc3266da832d82f8438c8570f989753de1", size = 640440 },
|
| 6886 |
+
{ url = "https://files.pythonhosted.org/packages/d9/14/933d27204c2bd404229c69f445862454dcc101cd69ef8c6068f15aaec12c/zstandard-0.25.0-cp313-cp313-manylinux2010_i686.manylinux2014_i686.manylinux_2_12_i686.manylinux_2_17_i686.whl", hash = "sha256:e96594a5537722fdfb79951672a2a63aec5ebfb823e7560586f7484819f2a08f", size = 5343070 },
|
| 6887 |
+
{ url = "https://files.pythonhosted.org/packages/6d/db/ddb11011826ed7db9d0e485d13df79b58586bfdec56e5c84a928a9a78c1c/zstandard-0.25.0-cp313-cp313-manylinux2014_aarch64.manylinux_2_17_aarch64.whl", hash = "sha256:bfc4e20784722098822e3eee42b8e576b379ed72cca4a7cb856ae733e62192ea", size = 5063001 },
|
| 6888 |
+
{ url = "https://files.pythonhosted.org/packages/db/00/87466ea3f99599d02a5238498b87bf84a6348290c19571051839ca943777/zstandard-0.25.0-cp313-cp313-manylinux2014_ppc64le.manylinux_2_17_ppc64le.whl", hash = "sha256:457ed498fc58cdc12fc48f7950e02740d4f7ae9493dd4ab2168a47c93c31298e", size = 5394120 },
|
| 6889 |
+
{ url = "https://files.pythonhosted.org/packages/2b/95/fc5531d9c618a679a20ff6c29e2b3ef1d1f4ad66c5e161ae6ff847d102a9/zstandard-0.25.0-cp313-cp313-manylinux2014_s390x.manylinux_2_17_s390x.whl", hash = "sha256:fd7a5004eb1980d3cefe26b2685bcb0b17989901a70a1040d1ac86f1d898c551", size = 5451230 },
|
| 6890 |
+
{ url = "https://files.pythonhosted.org/packages/63/4b/e3678b4e776db00f9f7b2fe58e547e8928ef32727d7a1ff01dea010f3f13/zstandard-0.25.0-cp313-cp313-manylinux2014_x86_64.manylinux_2_17_x86_64.whl", hash = "sha256:8e735494da3db08694d26480f1493ad2cf86e99bdd53e8e9771b2752a5c0246a", size = 5547173 },
|
| 6891 |
+
{ url = "https://files.pythonhosted.org/packages/4e/d5/ba05ed95c6b8ec30bd468dfeab20589f2cf709b5c940483e31d991f2ca58/zstandard-0.25.0-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:3a39c94ad7866160a4a46d772e43311a743c316942037671beb264e395bdd611", size = 5046736 },
|
| 6892 |
+
{ url = "https://files.pythonhosted.org/packages/50/d5/870aa06b3a76c73eced65c044b92286a3c4e00554005ff51962deef28e28/zstandard-0.25.0-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:172de1f06947577d3a3005416977cce6168f2261284c02080e7ad0185faeced3", size = 5576368 },
|
| 6893 |
+
{ url = "https://files.pythonhosted.org/packages/5d/35/398dc2ffc89d304d59bc12f0fdd931b4ce455bddf7038a0a67733a25f550/zstandard-0.25.0-cp313-cp313-musllinux_1_2_aarch64.whl", hash = "sha256:3c83b0188c852a47cd13ef3bf9209fb0a77fa5374958b8c53aaa699398c6bd7b", size = 4954022 },
|
| 6894 |
+
{ url = "https://files.pythonhosted.org/packages/9a/5c/36ba1e5507d56d2213202ec2b05e8541734af5f2ce378c5d1ceaf4d88dc4/zstandard-0.25.0-cp313-cp313-musllinux_1_2_i686.whl", hash = "sha256:1673b7199bbe763365b81a4f3252b8e80f44c9e323fc42940dc8843bfeaf9851", size = 5267889 },
|
| 6895 |
+
{ url = "https://files.pythonhosted.org/packages/70/e8/2ec6b6fb7358b2ec0113ae202647ca7c0e9d15b61c005ae5225ad0995df5/zstandard-0.25.0-cp313-cp313-musllinux_1_2_ppc64le.whl", hash = "sha256:0be7622c37c183406f3dbf0cba104118eb16a4ea7359eeb5752f0794882fc250", size = 5433952 },
|
| 6896 |
+
{ url = "https://files.pythonhosted.org/packages/7b/01/b5f4d4dbc59ef193e870495c6f1275f5b2928e01ff5a81fecb22a06e22fb/zstandard-0.25.0-cp313-cp313-musllinux_1_2_s390x.whl", hash = "sha256:5f5e4c2a23ca271c218ac025bd7d635597048b366d6f31f420aaeb715239fc98", size = 5814054 },
|
| 6897 |
+
{ url = "https://files.pythonhosted.org/packages/b2/e5/fbd822d5c6f427cf158316d012c5a12f233473c2f9c5fe5ab1ae5d21f3d8/zstandard-0.25.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:4f187a0bb61b35119d1926aee039524d1f93aaf38a9916b8c4b78ac8514a0aaf", size = 5360113 },
|
| 6898 |
+
{ url = "https://files.pythonhosted.org/packages/8e/e0/69a553d2047f9a2c7347caa225bb3a63b6d7704ad74610cb7823baa08ed7/zstandard-0.25.0-cp313-cp313-win32.whl", hash = "sha256:7030defa83eef3e51ff26f0b7bfb229f0204b66fe18e04359ce3474ac33cbc09", size = 436936 },
|
| 6899 |
+
{ url = "https://files.pythonhosted.org/packages/d9/82/b9c06c870f3bd8767c201f1edbdf9e8dc34be5b0fbc5682c4f80fe948475/zstandard-0.25.0-cp313-cp313-win_amd64.whl", hash = "sha256:1f830a0dac88719af0ae43b8b2d6aef487d437036468ef3c2ea59c51f9d55fd5", size = 506232 },
|
| 6900 |
+
{ url = "https://files.pythonhosted.org/packages/d4/57/60c3c01243bb81d381c9916e2a6d9e149ab8627c0c7d7abb2d73384b3c0c/zstandard-0.25.0-cp313-cp313-win_arm64.whl", hash = "sha256:85304a43f4d513f5464ceb938aa02c1e78c2943b29f44a750b48b25ac999a049", size = 462671 },
|
| 6901 |
+
{ url = "https://files.pythonhosted.org/packages/3d/5c/f8923b595b55fe49e30612987ad8bf053aef555c14f05bb659dd5dbe3e8a/zstandard-0.25.0-cp314-cp314-macosx_10_13_x86_64.whl", hash = "sha256:e29f0cf06974c899b2c188ef7f783607dbef36da4c242eb6c82dcd8b512855e3", size = 795887 },
|
| 6902 |
+
{ url = "https://files.pythonhosted.org/packages/8d/09/d0a2a14fc3439c5f874042dca72a79c70a532090b7ba0003be73fee37ae2/zstandard-0.25.0-cp314-cp314-macosx_11_0_arm64.whl", hash = "sha256:05df5136bc5a011f33cd25bc9f506e7426c0c9b3f9954f056831ce68f3b6689f", size = 640658 },
|
| 6903 |
+
{ url = "https://files.pythonhosted.org/packages/5d/7c/8b6b71b1ddd517f68ffb55e10834388d4f793c49c6b83effaaa05785b0b4/zstandard-0.25.0-cp314-cp314-manylinux2010_i686.manylinux_2_12_i686.manylinux_2_28_i686.whl", hash = "sha256:f604efd28f239cc21b3adb53eb061e2a205dc164be408e553b41ba2ffe0ca15c", size = 5379849 },
|
| 6904 |
+
{ url = "https://files.pythonhosted.org/packages/a4/86/a48e56320d0a17189ab7a42645387334fba2200e904ee47fc5a26c1fd8ca/zstandard-0.25.0-cp314-cp314-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:223415140608d0f0da010499eaa8ccdb9af210a543fac54bce15babbcfc78439", size = 5058095 },
|
| 6905 |
+
{ url = "https://files.pythonhosted.org/packages/f8/ad/eb659984ee2c0a779f9d06dbfe45e2dc39d99ff40a319895df2d3d9a48e5/zstandard-0.25.0-cp314-cp314-manylinux2014_ppc64le.manylinux_2_17_ppc64le.manylinux_2_28_ppc64le.whl", hash = "sha256:2e54296a283f3ab5a26fc9b8b5d4978ea0532f37b231644f367aa588930aa043", size = 5551751 },
|
| 6906 |
+
{ url = "https://files.pythonhosted.org/packages/61/b3/b637faea43677eb7bd42ab204dfb7053bd5c4582bfe6b1baefa80ac0c47b/zstandard-0.25.0-cp314-cp314-manylinux2014_s390x.manylinux_2_17_s390x.manylinux_2_28_s390x.whl", hash = "sha256:ca54090275939dc8ec5dea2d2afb400e0f83444b2fc24e07df7fdef677110859", size = 6364818 },
|
| 6907 |
+
{ url = "https://files.pythonhosted.org/packages/31/dc/cc50210e11e465c975462439a492516a73300ab8caa8f5e0902544fd748b/zstandard-0.25.0-cp314-cp314-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:e09bb6252b6476d8d56100e8147b803befa9a12cea144bbe629dd508800d1ad0", size = 5560402 },
|
| 6908 |
+
{ url = "https://files.pythonhosted.org/packages/c9/ae/56523ae9c142f0c08efd5e868a6da613ae76614eca1305259c3bf6a0ed43/zstandard-0.25.0-cp314-cp314-musllinux_1_2_aarch64.whl", hash = "sha256:a9ec8c642d1ec73287ae3e726792dd86c96f5681eb8df274a757bf62b750eae7", size = 4955108 },
|
| 6909 |
+
{ url = "https://files.pythonhosted.org/packages/98/cf/c899f2d6df0840d5e384cf4c4121458c72802e8bda19691f3b16619f51e9/zstandard-0.25.0-cp314-cp314-musllinux_1_2_i686.whl", hash = "sha256:a4089a10e598eae6393756b036e0f419e8c1d60f44a831520f9af41c14216cf2", size = 5269248 },
|
| 6910 |
+
{ url = "https://files.pythonhosted.org/packages/1b/c0/59e912a531d91e1c192d3085fc0f6fb2852753c301a812d856d857ea03c6/zstandard-0.25.0-cp314-cp314-musllinux_1_2_ppc64le.whl", hash = "sha256:f67e8f1a324a900e75b5e28ffb152bcac9fbed1cc7b43f99cd90f395c4375344", size = 5430330 },
|
| 6911 |
+
{ url = "https://files.pythonhosted.org/packages/a0/1d/7e31db1240de2df22a58e2ea9a93fc6e38cc29353e660c0272b6735d6669/zstandard-0.25.0-cp314-cp314-musllinux_1_2_s390x.whl", hash = "sha256:9654dbc012d8b06fc3d19cc825af3f7bf8ae242226df5f83936cb39f5fdc846c", size = 5811123 },
|
| 6912 |
+
{ url = "https://files.pythonhosted.org/packages/f6/49/fac46df5ad353d50535e118d6983069df68ca5908d4d65b8c466150a4ff1/zstandard-0.25.0-cp314-cp314-musllinux_1_2_x86_64.whl", hash = "sha256:4203ce3b31aec23012d3a4cf4a2ed64d12fea5269c49aed5e4c3611b938e4088", size = 5359591 },
|
| 6913 |
+
{ url = "https://files.pythonhosted.org/packages/c2/38/f249a2050ad1eea0bb364046153942e34abba95dd5520af199aed86fbb49/zstandard-0.25.0-cp314-cp314-win32.whl", hash = "sha256:da469dc041701583e34de852d8634703550348d5822e66a0c827d39b05365b12", size = 444513 },
|
| 6914 |
+
{ url = "https://files.pythonhosted.org/packages/3a/43/241f9615bcf8ba8903b3f0432da069e857fc4fd1783bd26183db53c4804b/zstandard-0.25.0-cp314-cp314-win_amd64.whl", hash = "sha256:c19bcdd826e95671065f8692b5a4aa95c52dc7a02a4c5a0cac46deb879a017a2", size = 516118 },
|
| 6915 |
+
{ url = "https://files.pythonhosted.org/packages/f0/ef/da163ce2450ed4febf6467d77ccb4cd52c4c30ab45624bad26ca0a27260c/zstandard-0.25.0-cp314-cp314-win_arm64.whl", hash = "sha256:d7541afd73985c630bafcd6338d2518ae96060075f9463d7dc14cfb33514383d", size = 476940 },
|
| 6916 |
+
]
|