Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions pebble/orchestrator/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
"""Pebble research orchestrator.

This package replaces the former single-file `pebble/orchestrator.py`. All
existing behavior lives unchanged in `_pipeline.py`; this `__init__.py`
re-exports the symbols that callers outside the package import today, so
existing import sites keep working without modification.

Future work (the L2 swarm) will add sibling modules (`schemas.py`,
`planner.py`, `renderer.py`, ...) inside this package.
"""

from ._pipeline import (
ProspectBudgetTracker,
activate_foragers,
quorum_verify_claims,
research_single_prospect,
score_source_richness,
synthesize_profile,
verify_urls,
)

__all__ = [
"ProspectBudgetTracker",
"activate_foragers",
"quorum_verify_claims",
"research_single_prospect",
"score_source_richness",
"synthesize_profile",
"verify_urls",
]
12 changes: 6 additions & 6 deletions pebble/orchestrator.py → pebble/orchestrator/_pipeline.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
from dataclasses import dataclass, field
from typing import Callable

from .model_client import ModelClient
from .harness import WorkerHarness, HarnessConfig, AgentOutcome, TaskSpec, harness_config_for_agent
from .storage.db import log_harness_outcome, get_source_reliability, save_profile, save_source_scores, save_session
from .data_sources import (
from ..model_client import ModelClient
from ..harness import WorkerHarness, HarnessConfig, AgentOutcome, TaskSpec, harness_config_for_agent
from ..storage.db import log_harness_outcome, get_source_reliability, save_profile, save_source_scores, save_session
from ..data_sources import (
fetch_organization,
search_organizations,
fetch_company,
Expand All @@ -37,8 +37,8 @@
fetch_full_profile,
search_officers,
)
from .data_sources.sec import search_cik
from .claim_templates import (
from ..data_sources.sec import search_cik
from ..claim_templates import (
claims_from_fec,
claims_from_usaspending,
claims_from_opencorporates,
Expand Down