MCPcopy Create free account

hub / github.com/anvix9/basis_research_agents / functions

Functions339 in github.com/anvix9/basis_research_agents

↓ 1 callersFunction_assign_cite_keys
Mutate sources in place, giving each a unique cite_key.
core/references.py:190
↓ 1 callersFunction_base_cite_key
(authors: list[str], year: Optional[int])
core/references.py:180
↓ 1 callersFunction_build_pass1_context
Pass 1: tree + structural gaps + current literature digest.
agents/gaper.py:163
↓ 1 callersFunction_build_pass2_context
Pass 2: structural gaps + analytical sketches + targeted sources.
agents/gaper.py:204
↓ 1 callersFunction_build_query
Build search query from theme keywords.
agents/social.py:774
↓ 1 callersMethod_build_query
Convert a plain keyword query into Scopus TITLE-ABS-KEY syntax. Handles multi-word phrases and simple keyword combinations.
agents/social.py:518
↓ 1 callersFunction_cache_key
(term: str)
core/concept_mapper.py:75
↓ 1 callersFunction_cache_verification
(src: CitableSource)
core/references.py:443
↓ 1 callersFunction_cached_verification
(source_id: str)
core/references.py:432
↓ 1 callersFunction_check_claim_vs_abstract
Basic consistency check: does the pipeline's claim about a work align with the work's actual abstract? Uses keyword overlap as a heuristi
tools/eval_references.py:441
↓ 1 callersFunction_check_crossref
Returns (exists, note). Crossref 200 means the DOI is registered.
core/references.py:459
↓ 1 callersFunction_check_openalex
Fallback: search OpenAlex by title.
core/references.py:476
↓ 1 callersFunction_check_url_head
(url: str, client: httpx.Client)
core/references.py:493
↓ 1 callersFunction_conceptnet_available
Check if the local ConceptNet SQLite database exists and has data.
core/concept_mapper.py:79
↓ 1 callersFunction_disciplines_to_themes
Map activated disciplines to theme_ids in config.json. Uses explicit override map first, then fuzzy matching as fallback. Explicit map pr
core/concept_mapper.py:307
↓ 1 callersMethod_ensure_anthropic
Re-check key in case it was set after initial import — lazy init.
core/llm.py:118
↓ 1 callersFunction_ensure_registered
Register with Consensus ourselves (follow_redirects=True) so we get a real server-issued client_id. Stored in token file so the SDK skips
core/consensus_mcp.py:138
↓ 1 callersFunction_evaluations_summary
(evaluations: list[dict])
core/context.py:74
↓ 1 callersFunction_extract_claims_for_validation
Walk the rendered text, find sentences that carry one or more valid [CiteKey] markers, and return [{"claim": sentence, "cite_keys": [...]}].
agents/scribe.py:520
↓ 1 callersFunction_extract_instructions
Extract the instructions section from a review document.
core/breaks.py:271
↓ 1 callersFunction_extract_instructions
Extract the instructions section from a review document.
agents/breaks.py:281
↓ 1 callersFunction_extract_raw_terms
Extract meaningful terms from problem statement. Removes stopwords and very short tokens.
core/concept_mapper.py:191
↓ 1 callersFunction_fallback_get_sources
Direct SQL fallback if database.py doesn't expose a helper.
core/references.py:248
↓ 1 callersFunction_fetch_conceptnet
Fetch ConceptNet relations for a term from local SQLite. Returns list of {rel, target, weight}. Checks pipeline.db cache first — queries
core/concept_mapper.py:92
↓ 1 callersFunction_fetch_targeted_sources
Pull relevant current sources per analytical gap from DB.
agents/gaper.py:251
↓ 1 callersFunction_first_initial
First initial from 'Last, First' or 'First Last'.
core/references.py:101
↓ 1 callersFunction_format_apa_authors
APA 7th author list: 1 author: Freire, P. 2 authors: Freire, P., & hooks, b. 3-20: Smith, A., Jones, B., & Lee, C.
core/references.py:113
↓ 1 callersMethod_get_lock
(self, source_id: str)
core/rate_limiter.py:76
↓ 1 callersMethod_get_models
(self, agent_name: str)
core/llm.py:124
↓ 1 callersMethod_headers
(self)
agents/social.py:504
↓ 1 callersFunction_import_agents
Lazy import agents to give clear error if one is missing.
main.py:53
↓ 1 callersFunction_llm_synthesis
LLM synthesis — prunes false positives and catches what static map missed. candidate_themes is the list of theme_ids that cluster matching propos
core/concept_mapper.py:523
↓ 1 callersFunction_match_clusters
Match expanded concepts against cluster trigger_concepts. Returns (activated_cluster_ids, activated_disciplines, bridge_concepts). A clu
core/concept_mapper.py:231
↓ 1 callersMethod_now
(self)
core/argument_tree.py:157
↓ 1 callersFunction_parse_authors
authors column may be JSON array, semicolon list, or plain string.
core/references.py:74
↓ 1 callersFunction_produce_break0_doc
Produce Break 0 review document.
core/breaks.py:36
↓ 1 callersFunction_produce_break0_doc
Produce Break 0 review document.
agents/breaks.py:36
↓ 1 callersFunction_produce_break1_doc
Produce Break 1 review document — Grounder + Historian + Gaper outputs.
core/breaks.py:81
↓ 1 callersFunction_produce_break1_doc
Produce Break 1 review document — Grounder + Historian + Gaper outputs.
agents/breaks.py:81
↓ 1 callersFunction_produce_break2_doc
Produce Break 2 review document — full synthesis for trajectory evaluation.
core/breaks.py:139
↓ 1 callersFunction_produce_break2_doc
Produce Break 2 review document — full synthesis for trajectory evaluation.
agents/breaks.py:139
↓ 1 callersFunction_redact_unknown_keys
Surgically remove hallucinated keys while preserving valid ones in the same bracket. [Good, Bad] -> [Good]. [Bad] alone -> [unsupported].
agents/scribe.py:549
↓ 1 callersMethod_render_node
(self, node: dict, lines: list, depth: int, max_depth: int, include_evidence: bool)
core/argument_tree.py:607
↓ 1 callersFunction_run_understanding_map
Dedicated Scribe path for the Understanding Map. Stages: 1. Build citable manifest from this run's sources. 2. Generate Understa
agents/scribe.py:373
↓ 1 callersFunction_salvage_truncated_json
Attempt to salvage implications from a truncated JSON response. Extracts all complete { ... } implication objects found before the trunca
agents/vision.py:129
↓ 1 callersFunction_save_doc
(run_id: str, problem: str, data: dict)
agents/historian.py:285
↓ 1 callersFunction_save_doc
(run_id: str, problem: str, data: dict)
agents/vision.py:171
↓ 1 callersFunction_save_doc
(run_id: str, problem: str, data: dict, proposals: list)
agents/rude.py:122
↓ 1 callersFunction_save_doc
(run_id: str, problem: str, structural: dict, pass1_data: dict, pass2_data: dict)
agents/gaper.py:562
↓ 1 callersFunction_save_doc
(run_id: str, problem: str, data: dict)
agents/synthesizer.py:128
↓ 1 callersFunction_save_doc
(run_id: str, problem: str, data: dict, sub_questions: list = None, decomp_logic: str = "")
agents/grounder.py:709
↓ 1 callersFunction_save_doc
(run_id: str, problem: str, data: dict)
agents/thinker.py:126
↓ 1 callersFunction_search_consensus
Semantic search via Consensus MCP — 200M+ peer-reviewed papers. Particularly valuable for Grounder because Consensus finds conceptually r
agents/grounder.py:363
↓ 1 callersFunction_search_google_books
Search Google Books API for foundational books.
agents/grounder.py:246
↓ 1 callersFunction_search_open_library
Search Open Library for foundational books — no key needed.
agents/grounder.py:289
↓ 1 callersFunction_search_openalex
Search OpenAlex with contextual query.
agents/grounder.py:165
↓ 1 callersFunction_search_semantic_scholar
Search Semantic Scholar with contextual query.
agents/grounder.py:211
↓ 1 callersFunction_search_web
Use Claude's web search tool via Anthropic API to get broader coverage. Returns results as pseudo-sources for the synthesis prompt.
agents/grounder.py:322
↓ 1 callersFunction_tex_escape
(text: str)
core/references.py:610
↓ 1 callersFunction_verify_link
(url: str)
agents/historian.py:97
↓ 1 callersFunction_verify_link
(url: str)
agents/grounder.py:397
↓ 1 callersFunctionexport_csv
Write seminal_references.csv — one row per paper, sorted by category then year.
export_seminal.py:208
↓ 1 callersFunctionexport_csv
Write seminal_references.csv — one row per paper, sorted by category then year.
tools/export_seminal.py:208
↓ 1 callersFunctionexport_jekyll
Write one Jekyll post per seminal paper. Filename: YYYY-MM-DD-slug.md (using date_collected or today)
export_seminal.py:255
↓ 1 callersFunctionexport_jekyll
Write one Jekyll post per seminal paper. Filename: YYYY-MM-DD-slug.md (using date_collected or today)
tools/export_seminal.py:255
↓ 1 callersFunctionexport_json
Write seminal_references.json with papers grouped by primary category. Structure: { "generated_at": "...", "total": N,
export_seminal.py:149
↓ 1 callersFunctionexport_json
Write seminal_references.json with papers grouped by primary category. Structure: { "generated_at": "...", "total": N,
tools/export_seminal.py:149
↓ 1 callersFunctionfeed
Mode 2: Pipeline feeder. If selected_themes provided (from concept mapper), uses those directly. Otherwise falls back to keyword matching
agents/social.py:1012
↓ 1 callersFunctionfor_gaper
Context for Gaper — minimal. Gaper builds its own two-pass context internally from the DB. We just pass the problem and break instructions.
core/context.py:107
↓ 1 callersFunctionfor_grounder
Context for Grounder — problem + Social intelligence.
core/context.py:90
↓ 1 callersFunctionfor_historian
Context for Historian — problem + seminal works from Grounder.
core/context.py:97
↓ 1 callersFunctionfor_scribe
Context for Scribe — synthesis + directions + output spec.
core/context.py:335
↓ 1 callersFunctionformat_apa
Format a CitableSource as an APA 7th entry (text string, no URL).
core/references.py:160
↓ 1 callersFunctiongenerate_reference_section
Generate a formatted reference section. If tree_only=True (default), only includes sources referenced in the argument tree. Otherwise in
tools/generate_references.py:182
↓ 1 callersFunctiongenerate_report
Generate the evaluation Markdown report.
tools/eval_references.py:479
↓ 1 callersFunctiongenerate_report
(run_id: str, results: list[ClaimResult], problem: str)
tools/eval_claims.py:319
↓ 1 callersFunctiongenerate_run_id
()
core/utils.py:41
↓ 1 callersFunctionget_client
()
core/llm.py:308
↓ 1 callersMethodget_client_info
(self)
core/consensus_mcp.py:127
↓ 1 callersFunctionget_problem
(db_path: Path, run_id: str)
tools/eval_claims.py:130
↓ 1 callersFunctioninit_db
(db_path: Path)
tools/import_conceptnet.py:150
↓ 1 callersFunctioninit_tree_table
Create the argument_tree table if it doesn't exist.
core/argument_tree.py:128
↓ 1 callersFunctionload_concept_map
()
core/concept_mapper.py:179
↓ 1 callersFunctionload_seminal
Return all seminal sources from the pipeline DB as a list of dicts. Optionally filter by run_id.
export_seminal.py:89
↓ 1 callersFunctionload_seminal
Return all seminal sources from the pipeline DB as a list of dicts. Optionally filter by run_id.
tools/export_seminal.py:89
↓ 1 callersFunctionload_sources
Load sources from the pipeline database for a given run.
tools/eval_references.py:104
↓ 1 callersFunctionload_sources
(db_path: Path, run_id: str, types: list[str] | None = None)
tools/eval_claims.py:86
↓ 1 callersFunctionload_sources_by_ids
Load full source records by their IDs.
tools/generate_references.py:54
↓ 1 callersFunctionload_tree_sources
Get all source_ids from the argument tree for a run.
tools/generate_references.py:35
↓ 1 callersFunctionmain
()
export_seminal.py:367
↓ 1 callersFunctionmain
()
main.py:622
↓ 1 callersFunctionmain
()
tools/generate_references.py:263
↓ 1 callersFunctionmain
()
tools/eval_references.py:611
↓ 1 callersFunctionmain
()
tools/export_seminal.py:367
↓ 1 callersFunctionmain
()
tools/eval_claims.py:459
↓ 1 callersFunctionmain
()
tools/import_conceptnet.py:402
↓ 1 callersFunctionmatch_themes_to_problem
Simple keyword-based theme matching. Returns (selected_themes, excluded_themes). Each theme has keywords — if any keyword seed appea
core/utils.py:65
↓ 1 callersFunctionncbi_api_key
()
core/keys.py:64
↓ 1 callersFunctionncbi_email
()
core/keys.py:67
↓ 1 callersFunctionparse_weight
Extract weight from the JSON metadata field.
tools/import_conceptnet.py:116
← previousnext →101–200 of 339, ranked by callers