Compare commits
1 commit
main
...
urgent_fix
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e810be136d |
1 changed files with 15 additions and 13 deletions
|
|
@ -21,16 +21,16 @@ from cognee.shared.data_models import KnowledgeGraph
|
||||||
from cognee.modules.storage.utils import JSONEncoder
|
from cognee.modules.storage.utils import JSONEncoder
|
||||||
|
|
||||||
|
|
||||||
try:
|
# try:
|
||||||
from codingagents.coding_rule_associations import (
|
# from codingagents.coding_rule_associations import (
|
||||||
add_rule_associations,
|
# add_rule_associations,
|
||||||
get_existing_rules,
|
# get_existing_rules,
|
||||||
)
|
# )
|
||||||
except ModuleNotFoundError:
|
# except ModuleNotFoundError:
|
||||||
from .codingagents.coding_rule_associations import (
|
# from .codingagents.coding_rule_associations import (
|
||||||
add_rule_associations,
|
# add_rule_associations,
|
||||||
get_existing_rules,
|
# get_existing_rules,
|
||||||
)
|
# )
|
||||||
|
|
||||||
|
|
||||||
mcp = FastMCP("Cognee")
|
mcp = FastMCP("Cognee")
|
||||||
|
|
@ -298,7 +298,7 @@ async def save_interaction(data: str) -> list:
|
||||||
logger.info("Save interaction process finished.")
|
logger.info("Save interaction process finished.")
|
||||||
logger.info("Generating associated rules from interaction data.")
|
logger.info("Generating associated rules from interaction data.")
|
||||||
|
|
||||||
await add_rule_associations(data=data, rules_nodeset_name="coding_agent_rules")
|
# await add_rule_associations(data=data, rules_nodeset_name="coding_agent_rules")
|
||||||
|
|
||||||
logger.info("Associated rules generated from interaction data.")
|
logger.info("Associated rules generated from interaction data.")
|
||||||
|
|
||||||
|
|
@ -560,8 +560,10 @@ async def get_developer_rules() -> list:
|
||||||
async def fetch_rules_from_cognee() -> str:
|
async def fetch_rules_from_cognee() -> str:
|
||||||
"""Collect all developer rules from Cognee"""
|
"""Collect all developer rules from Cognee"""
|
||||||
with redirect_stdout(sys.stderr):
|
with redirect_stdout(sys.stderr):
|
||||||
developer_rules = await get_existing_rules(rules_nodeset_name="coding_agent_rules")
|
note = "This is broken in 0.2.2"
|
||||||
return developer_rules
|
return note
|
||||||
|
# developer_rules = await get_existing_rules(rules_nodeset_name="coding_agent_rules")
|
||||||
|
# return developer_rules
|
||||||
|
|
||||||
rules_text = await fetch_rules_from_cognee()
|
rules_text = await fetch_rules_from_cognee()
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue