Humphrey

Results issues of Humphrey

## Summary Closes #9853. `ReActV2.forward` and `ReAct.forward` built the final `Prediction` by spreading user outputs with `**` alongside explicit `history=` / `trajectory=` / `termination_reason=` kwargs. When a user's signature declared...

## Description \`langchain_postgres/__init__.py\` eagerly imports \`chat_message_histories.PostgresChatMessageHistory\`, which top-level imports \`psycopg\` (and \`psycopg.sql\`). So \`from langchain_postgres import PGEngine\` — or anything else from the driver-agnostic v2 API — transitively loads the...

## Description \`PGVector.add_embeddings\` (and \`aadd_embeddings\`) build the SQL insert payload via: \`\`\`python data = [ {...} for text, metadata, embedding, id in zip(texts, metadatas, embeddings, ids_) ] return ids_ \`\`\`...

## Description \`AsyncPGVectorStore.asimilarity_search\` and \`asimilarity_search_with_score\` back-fill \`fts_query\` on the \`HybridSearchConfig\` object retrieved from kwargs or, by default, from \`self.hybrid_search_config\`: \`\`\`python hybrid_search_config = kwargs.get(\"hybrid_search_config\", self.hybrid_search_config) if hybrid_search_config and not hybrid_search_config.fts_query: hybrid_search_config.fts_query...

## Description \`UnifiedRepository.put_writes\` issues N×2 **sequential** calls for N graph-state updates: a conditional \`put_item\` (metadata) plus a chunk-store write (payload) per update, one after another. \`aput_writes\` runs the whole method...

### Summary `PregelLoop.put_writes` runs on every task completion and re-scans **all** channels on each call: ```python # langgraph/pregel/_loop.py, put_writes() if any(isinstance(channel, UntrackedValue) for channel in self.channels.values()): ... ``` This answers...

external

### Summary `FuturesDict.on_done` (in `langgraph/pregel/_runner.py`) runs once per task completion. It adds the future to `self.done` and then calls `self.should_stop(self.done)`: ```python def on_done(self, task, fut): ... with self.lock: self.done.add(fut) self.counter...

external