MCPcopy Create free account

hub / github.com/LLMQuant/quant-mind / functions

Functions343 in github.com/LLMQuant/quant-mind

↓ 22 callersFunction_now
()
tests/knowledge/test_base.py:17
↓ 18 callersFunction_src
()
tests/knowledge/test_base.py:21
↓ 10 callersFunctionbatch_run
Run ``flow_fn`` over ``inputs`` with bounded concurrency. Args: flow_fn: Any flow function with signature ``(input, *, cfg, *
quantmind/flows/batch.py:51
↓ 9 callersFunction_extract_arxiv_id
Pull the canonical arXiv id from a raw user input. Returns: Canonical id in either modern (``YYMM.NNNNN``) or legacy (``archive[.
quantmind/preprocess/fetch/arxiv.py:35
↓ 9 callersFunctionparse_filing_date
Parse a date string (filing dates, news timestamps) into UTC datetime. Accepts ISO-8601 with or without time component, ``YYYY-MM-DD``, ``YYY
quantmind/preprocess/time.py:39
↓ 9 callersFunctionresolve_doi
Look up a DOI on Crossref and return canonical metadata. Args: doi: A DOI string. Accepts canonical form (``10.NNNN/...``), `
quantmind/preprocess/fetch/doi.py:81
↓ 8 callersFunction_now
()
tests/knowledge/test_roundtrip.py:26
↓ 8 callersFunction_patch_runner
(return_value: Any)
tests/flows/test_paper.py:47
↓ 8 callersFunction_stub_paper
()
tests/flows/test_paper.py:32
↓ 8 callersFunctionbusiness_days_between
Count weekdays (Mon-Fri) strictly between ``a`` and ``b``. The count is **inclusive of both endpoints** when they fall on weekdays, and direc
quantmind/preprocess/time.py:73
↓ 8 callersFunctionpaper_flow
Extract a ``Paper`` from a typed ``PaperInput``. See design doc §4.1 for the rationale on each kwarg. ``memory`` is a PR6 placeholder — non-N
quantmind/flows/paper.py:64
↓ 8 callersFunctionread_local_file
Read a file from disk into a ``Fetched`` value. Args: path: Path to the file. Tilde and relative paths are accepted; both are
quantmind/preprocess/fetch/local.py:32
↓ 7 callersFunction_format_by_content_type
Route a ``Fetched`` payload through the right format helper.
quantmind/flows/paper.py:161
↓ 7 callersFunction_make_tree
Three-level tree: root ├── a │ ├── a1 │ └── a2 └── b
tests/knowledge/test_tree.py:26
↓ 7 callersFunction_pydantic_schema_str
Render a JSON-schema-ish description for resolver instructions. Cases handled: 1. ``Annotated[X, ...]`` — peel via ``__metadata__`` and recu
quantmind/magic.py:162
↓ 7 callersFunctioncollapse_whitespace
Collapse runs of horizontal whitespace; keep paragraph breaks. Preserves single and double newlines (the markdown-paragraph signal) but colla
quantmind/preprocess/clean.py:55
↓ 7 callersFunctionnormalize_unicode
Apply NFKC + ligature/smart-quote normalisation + control-char drop. Order matters: NFKC first (so e.g. fullwidth digits collapse to ASCII),
quantmind/preprocess/clean.py:38
↓ 6 callersFunction_crossref_payload
(**overrides)
tests/preprocess/fetch/test_doi.py:16
↓ 6 callersFunction_fetch_and_format
Dispatch on the input variant; return (markdown, source metadata).
quantmind/flows/paper.py:117
↓ 6 callersFunction_now
()
tests/knowledge/test_news.py:12
↓ 6 callersFunction_src
(kind: str = "manual")
tests/knowledge/test_roundtrip.py:30
↓ 6 callersFunctionfetch_arxiv
Fetch arXiv metadata and PDF bytes for a single paper. Args: id_or_url: ArXiv id, ``arXiv:`` prefixed string, or full ``arxiv
quantmind/preprocess/fetch/arxiv.py:77
↓ 6 callersFunctionfetch_url
GET ``url`` and return the body as ``Fetched``. Streams the response so we can short-circuit on payloads larger than ``max_bytes`` without bu
quantmind/preprocess/fetch/http.py:26
↓ 6 callersFunctionhtml_to_markdown
Convert an HTML document into markdown. Args: html: Raw HTML source as a string. Pass already-decoded text — the fetch layer
quantmind/preprocess/format/html.py:25
↓ 6 callersFunctionpdf_to_markdown
Convert PDF bytes to a plain-text/markdown string. PyMuPDF returns plain text rather than rich markdown — there is no structural tree (headin
quantmind/preprocess/format/pdf.py:44
↓ 5 callersFunction_introspect_flow_signature
Return ``(input_annotation, cfg_type)`` for a flow function. ``input_annotation`` is returned as-is — it may be a discriminated- union alias
quantmind/magic.py:118
↓ 5 callersFunction_strip_optional
Peel ``T | None`` / ``Optional[T]`` to return the inner T.
quantmind/magic.py:152
↓ 5 callersFunctiondedupe_lines
Drop consecutive duplicate lines. Useful for killing repeated PDF page headers/footers ("Page 3 of 12", journal banners) without touching leg
quantmind/preprocess/clean.py:71
↓ 4 callersFunction_collect_hooks
Return hooks in run order: memory hooks first (PR6), then extras.
quantmind/flows/_runner.py:62
↓ 4 callersFunction_compose_hooks
Merge multiple `RunHooks` into one (the SDK takes a single instance).
quantmind/flows/_runner.py:75
↓ 4 callersFunction_now
()
tests/knowledge/test_paper.py:12
↓ 4 callersFunction_src
()
tests/knowledge/test_paper.py:16
↓ 4 callersMethodembedding_text
(self)
tests/knowledge/test_base.py:83
↓ 4 callersFunctionresolve_magic_input
Parse ``natural_language`` into ``(input_obj, cfg_obj)`` for ``target_flow``. Args: natural_language: User-supplied free-form description
quantmind/magic.py:62
↓ 4 callersMethodroot
(self)
quantmind/knowledge/_tree.py:59
↓ 4 callersFunctionrun_with_observability
Build `RunConfig` + composed hooks, run the agent, return final output. Args: agent: The Agents SDK ``Agent`` to invoke. input: P
quantmind/flows/_runner.py:17
↓ 3 callersFunction_compose_instructions
Render the system instructions, appending ``extra`` if provided.
quantmind/flows/paper.py:177
↓ 3 callersFunction_format_input
Concatenate metadata + content into the prompt the agent sees.
quantmind/flows/paper.py:191
↓ 3 callersFunction_now
()
tests/knowledge/test_factor.py:10
↓ 3 callersFunction_now
()
tests/knowledge/test_earnings.py:10
↓ 3 callersFunction_single_node_paper
(**overrides)
tests/knowledge/test_paper.py:20
↓ 3 callersFunction_src
()
tests/knowledge/test_factor.py:14
↓ 3 callersFunction_src
()
tests/knowledge/test_earnings.py:14
↓ 3 callersFunction_src
()
tests/knowledge/test_news.py:16
↓ 3 callersFunction_stub_arxiv_result
( *, pdf_url: str = "https://arxiv.org/pdf/2401.12345v1", title: str = "A Test Paper", )
tests/preprocess/fetch/test_arxiv.py:19
↓ 3 callersMethodfind_path
Root-to-node path. Empty if `node_id` is not in the tree.
quantmind/knowledge/_tree.py:76
↓ 3 callersFunctionsetup_logger
Set up a logger with consistent formatting and optional colors. Args: name: Logger name (defaults to 'quantmind') level: Logging
quantmind/utils/logger.py:80
↓ 3 callersFunctionto_utc
Return a UTC-aware datetime equivalent to ``dt``. Naive inputs are *interpreted* as UTC (we do not guess local time). Aware inputs are conver
quantmind/preprocess/time.py:28
↓ 2 callersFunction_archive_run_artifacts
No-op stub. PR6 writes a trajectory record under ``<memory_dir>/runs/``. Kept as a real call site (rather than commented-out) so PR6 changes
quantmind/flows/_runner.py:126
↓ 2 callersMethod_build_paper
(self)
tests/knowledge/test_roundtrip.py:95
↓ 2 callersFunction_ext
()
tests/knowledge/test_roundtrip.py:34
↓ 2 callersFunction_now
()
tests/knowledge/test_thesis.py:10
↓ 2 callersFunction_src
()
tests/knowledge/test_thesis.py:14
↓ 2 callersMethodembedding_text
Default: title + summary. Override per domain if needed.
quantmind/knowledge/_tree.py:42
↓ 2 callersMethodembedding_text
(self)
quantmind/knowledge/factor.py:21
↓ 2 callersMethodformat
Format the log record with colors.
quantmind/utils/logger.py:53
↓ 2 callersMethodfreshness
Time elapsed since ``as_of``. Defaults ``now`` to ``utcnow()``.
quantmind/knowledge/_base.py:118
↓ 2 callersMethodis_extracted
True iff the item came from an LLM flow (vs hand-curated).
quantmind/knowledge/_base.py:114
↓ 2 callersMethodon_llm_start
(self, *_: Any, **__: Any)
tests/flows/test_runner.py:26
↓ 2 callersMethodwalk_dfs
Depth-first traversal starting at the root.
quantmind/knowledge/_tree.py:66
↓ 2 callersMethodwith_tags
Return a copy with extra tags appended (frozen-friendly). Duplicates are skipped so the operation is idempotent.
quantmind/knowledge/_base.py:123
↓ 1 callersFunction_format_authors
(items: list[dict[str, str]] | None)
quantmind/preprocess/fetch/doi.py:65
↓ 1 callersFunction_infer_content_type
(path: Path)
quantmind/preprocess/fetch/local.py:26
↓ 1 callersFunction_normalize_doi
Strip common decorations from a user-supplied DOI string.
quantmind/preprocess/fetch/doi.py:36
↓ 1 callersFunction_now
()
tests/knowledge/test_tree.py:14
↓ 1 callersFunction_parse_crossref_date
Convert Crossref's ``date-parts: [[YYYY, MM, DD]]`` to a UTC datetime. Crossref returns date-parts arrays where missing components are simply
quantmind/preprocess/fetch/doi.py:46
↓ 1 callersFunction_src
()
tests/knowledge/test_tree.py:18
↓ 1 callersFunction_to_utc
(dt: datetime | None)
quantmind/preprocess/fetch/arxiv.py:60
↓ 1 callersMethodchildren_of
(self, node_id: UUID)
quantmind/knowledge/_tree.py:62
↓ 1 callersMethodembedding_text
(self)
quantmind/knowledge/thesis.py:20
↓ 1 callersMethodembedding_text
(self)
quantmind/knowledge/earnings.py:23
↓ 1 callersMethodembedding_text
(self)
quantmind/knowledge/paper.py:51
↓ 1 callersMethodembedding_text
(self)
quantmind/knowledge/news.py:23
↓ 1 callersFunctionget_logger
Get a logger instance with QuantMind formatting and optional colors. Args: name: Logger name (usually __name__) level: Optional l
quantmind/utils/logger.py:140
↓ 1 callersMethodon_agent_end
(self, *_: Any, **__: Any)
tests/flows/test_runner.py:35
↓ 1 callersMethodon_agent_start
(self, *_: Any, **__: Any)
tests/flows/test_runner.py:32
↓ 1 callersMethodon_handoff
(self, *_: Any, **__: Any)
tests/flows/test_runner.py:38
↓ 1 callersMethodon_llm_end
(self, *_: Any, **__: Any)
tests/flows/test_runner.py:29
↓ 1 callersMethodon_tool_end
(self, *_: Any, **__: Any)
tests/flows/test_runner.py:44
↓ 1 callersMethodon_tool_start
(self, *_: Any, **__: Any)
tests/flows/test_runner.py:41
↓ 1 callersFunctionpreview_resolve
Resolve and pretty-print the result without invoking the flow.
quantmind/magic.py:101
↓ 1 callersFunctionrun_one
(i: int, inp: InputT)
quantmind/flows/batch.py:108
Method__init__
Initialize the colored formatter. Args: *args: Positional arguments passed to parent Formatter use_color: Whether to
quantmind/utils/logger.py:32
Method__init__
(self, inner: list[RunHooks[Any]])
quantmind/flows/_runner.py:94
Method__init__
(self, label: str, log: list[tuple[str, str]])
tests/flows/test_runner.py:22
Method__init_subclass__
(cls, **kwargs: Any)
quantmind/knowledge/_graph.py:34
Method_capture_agent
(*_a: object, **kwargs: object)
tests/test_magic.py:110
Method_capture_agent
(*_a: Any, **kwargs: Any)
tests/flows/test_paper.py:245
Function_extract_sync
(html: str, *, strip_boilerplate: bool)
quantmind/preprocess/format/html.py:13
Function_extract_text_sync
(pdf_bytes: bytes)
quantmind/preprocess/format/pdf.py:21
Function_fetch_metadata_sync
(arxiv_id: str)
quantmind/preprocess/fetch/arxiv.py:68
Methodbad
(*, cfg: PaperFlowCfg | None = None)
tests/test_magic.py:48
Functionconfigure_logging
Configure global logging settings for QuantMind. Args: level: Global logging level use_color: Whether to use colors (auto-detect
quantmind/utils/logger.py:175
Functioncreate_demo_logger
Create a demo logger to show color capabilities. Returns: Demo logger instance
quantmind/utils/logger.py:199
Methodembedding_text
Return the canonical string the store should embed for this item. Flatten subclasses: typically ``summary + key attrs``. Tree subclas
quantmind/knowledge/_base.py:99
Methodembedding_text
Default: root node's embedding text. Override per domain if needed.
quantmind/knowledge/_tree.py:89
Methodfailures
Alias for ``errors`` to mirror ``successes`` for symmetry.
quantmind/flows/batch.py:46
Methodflow
(input: RawText, *, cfg: Any = None)
tests/flows/test_batch.py:31
Methodon_agent_end
(self, *args: Any, **kwargs: Any)
quantmind/flows/_runner.py:109
Methodon_agent_start
(self, *args: Any, **kwargs: Any)
quantmind/flows/_runner.py:105
next →1–100 of 343, ranked by callers