Skip to content

Graph-Native Infrastructure for Context and Accountable AI Systems

Potential fix for pull request finding 'Wrong number of arguments in a call'

Mohd Kaif7267425eb5a1
diff --git a/mcp/tools/extraction.py b/mcp/tools/extraction.py
index 8d346df9..edda83bd 100644
--- a/mcp/tools/extraction.py
+++ b/mcp/tools/extraction.py
@@ -108,7 +108,7 @@ def handle_extract_all(args: dict) -> dict:
]
resolved = CoreferenceResolver().resolve(text)
- relations = RelationExtractor().extract(resolved) or []
+ relations = RelationExtractor().extract(resolved, entities) or []
result["relations"] = [
{"source": getattr(r, "source", None),
"type": getattr(r, "type", None),