Documentation Index
Fetch the complete documentation index at: https://reasonblocks.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
make_langchain_tools wires a CodebaseMemory instance and an optional ImportGraph to a list of LangChain @tool-decorated functions. Pass the returned list directly to create_agent or a LangGraph node alongside your own tools. The tools share the same memory and graph objects you provide, so findings stored during one step are immediately available on the next recall.
Installation
The LangChain integration requireslangchain-core. Install it alongside the ReasonBlocks SDK:
make_langchain_tools
Tool objects. The list length depends on which flags are enabled and which arguments are provided: up to three tools (recall_findings, store_finding, impact_analysis).
Parameters
The
CodebaseMemory instance the tools read from and write to. Bind one instance per agent run. When None, both recall_findings and store_finding are omitted from the returned list regardless of enable_recall and enable_store.Optional
ImportGraph for the repository. When provided and enable_impact is True, an impact_analysis tool is added to the list. Pass None to omit the tool.Maximum number of findings to return from a single
recall_findings call. Increasing this value returns more context but uses more tokens.Minimum similarity score (0–1) a finding must reach to be included in recall results. Lower values return more results with potentially lower relevance; higher values return fewer, higher-confidence results.
Include the
recall_findings tool. Set to False to produce a write-only or impact-only tool set.Include the
store_finding tool. Set to False for read-only scenarios where the agent should not persist new observations.Include the
impact_analysis tool when a graph is provided. Set to False to suppress it even when graph is not None.Returns
A list of LangChain
Tool objects. Safe to concatenate with your own tool list: tools=[*rb_tools, *your_tools].Tools
recall_findings(query)
Searches CodebaseMemory for findings relevant to query. The agent should call this before reading a file — if findings already exist, it can skip the file read entirely.
| Parameter | Type | Description |
|---|---|---|
query | str | Natural-language description of what you are looking for |
store_finding(content, file_path, finding_type)
Persists a new finding to CodebaseMemory so future agent runs can recall it. Store small, self-contained facts rather than long paragraphs.
| Parameter | Type | Default | Description |
|---|---|---|---|
content | str | — | The finding text (under 8 000 characters) |
file_path | str | "" | Repo-relative path the finding is about, if applicable |
finding_type | str | "note" | Short tag: bug, behavior, pattern, or note |
"stored (id=<fid>)" on success or "store failed" on error.
impact_analysis(file_path)
Queries the ImportGraph to return the dependents (files that import this file) and dependencies (files this file imports). Use it to judge the blast radius of a proposed change.
| Parameter | Type | Description |
|---|---|---|
file_path | str | Repo-relative path, e.g. "pydantic/main.py" |
impact_analysis is only present in the returned list when you pass a non-None graph and enable_impact=True. If you conditionally build your tool list, check len(rb_tools) rather than assuming a fixed index.