dasein-core 0.2.21__tar.gz → 0.2.22__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {dasein_core-0.2.21/src/dasein_core.egg-info → dasein_core-0.2.22}/PKG-INFO +1 -1
- {dasein_core-0.2.21 → dasein_core-0.2.22}/pyproject.toml +1 -1
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/capture.py +19 -17
- {dasein_core-0.2.21 → dasein_core-0.2.22/src/dasein_core.egg-info}/PKG-INFO +1 -1
- {dasein_core-0.2.21 → dasein_core-0.2.22}/LICENSE +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/MANIFEST.in +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/README.md +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/examples/dasein_examples.ipynb +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/setup.cfg +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/setup.py +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/__init__.py +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/advice_format.py +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/api.py +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/config.py +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/events.py +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/extractors.py +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/injection_strategies.py +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/injector.py +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/microturn.py +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/models/en_core_web_sm/en_core_web_sm/__init__.py +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/models/en_core_web_sm/en_core_web_sm/en_core_web_sm-3.7.1/LICENSE +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/models/en_core_web_sm/en_core_web_sm/en_core_web_sm-3.7.1/LICENSES_SOURCES +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/models/en_core_web_sm/en_core_web_sm/en_core_web_sm-3.7.1/README.md +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/models/en_core_web_sm/en_core_web_sm/en_core_web_sm-3.7.1/accuracy.json +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/models/en_core_web_sm/en_core_web_sm/en_core_web_sm-3.7.1/attribute_ruler/patterns +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/models/en_core_web_sm/en_core_web_sm/en_core_web_sm-3.7.1/config.cfg +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/models/en_core_web_sm/en_core_web_sm/en_core_web_sm-3.7.1/lemmatizer/lookups/lookups.bin +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/models/en_core_web_sm/en_core_web_sm/en_core_web_sm-3.7.1/meta.json +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/models/en_core_web_sm/en_core_web_sm/en_core_web_sm-3.7.1/ner/cfg +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/models/en_core_web_sm/en_core_web_sm/en_core_web_sm-3.7.1/ner/model +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/models/en_core_web_sm/en_core_web_sm/en_core_web_sm-3.7.1/ner/moves +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/models/en_core_web_sm/en_core_web_sm/en_core_web_sm-3.7.1/parser/cfg +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/models/en_core_web_sm/en_core_web_sm/en_core_web_sm-3.7.1/parser/model +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/models/en_core_web_sm/en_core_web_sm/en_core_web_sm-3.7.1/parser/moves +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/models/en_core_web_sm/en_core_web_sm/en_core_web_sm-3.7.1/senter/cfg +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/models/en_core_web_sm/en_core_web_sm/en_core_web_sm-3.7.1/senter/model +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/models/en_core_web_sm/en_core_web_sm/en_core_web_sm-3.7.1/tagger/cfg +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/models/en_core_web_sm/en_core_web_sm/en_core_web_sm-3.7.1/tagger/model +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/models/en_core_web_sm/en_core_web_sm/en_core_web_sm-3.7.1/tok2vec/cfg +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/models/en_core_web_sm/en_core_web_sm/en_core_web_sm-3.7.1/tok2vec/model +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/models/en_core_web_sm/en_core_web_sm/en_core_web_sm-3.7.1/tokenizer +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/models/en_core_web_sm/en_core_web_sm/en_core_web_sm-3.7.1/vocab/key2row +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/models/en_core_web_sm/en_core_web_sm/en_core_web_sm-3.7.1/vocab/lookups.bin +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/models/en_core_web_sm/en_core_web_sm/en_core_web_sm-3.7.1/vocab/strings.json +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/models/en_core_web_sm/en_core_web_sm/en_core_web_sm-3.7.1/vocab/vectors +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/models/en_core_web_sm/en_core_web_sm/en_core_web_sm-3.7.1/vocab/vectors.cfg +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/models/en_core_web_sm/en_core_web_sm/meta.json +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/models/en_core_web_sm/en_core_web_sm-3.7.1.dist-info/LICENSE +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/models/en_core_web_sm/en_core_web_sm-3.7.1.dist-info/LICENSES_SOURCES +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/models/en_core_web_sm/en_core_web_sm-3.7.1.dist-info/METADATA +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/models/en_core_web_sm/en_core_web_sm-3.7.1.dist-info/RECORD +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/models/en_core_web_sm/en_core_web_sm-3.7.1.dist-info/WHEEL +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/models/en_core_web_sm/en_core_web_sm-3.7.1.dist-info/entry_points.txt +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/models/en_core_web_sm/en_core_web_sm-3.7.1.dist-info/top_level.txt +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/pipecleaner.py +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/services/__init__.py +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/services/post_run_client.py +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/services/pre_run_client.py +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/services/service_adapter.py +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/services/service_config.py +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/trace_buffer.py +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/types.py +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/wrappers.py +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein_core.egg-info/SOURCES.txt +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein_core.egg-info/dependency_links.txt +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein_core.egg-info/requires.txt +0 -0
- {dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein_core.egg-info/top_level.txt +0 -0
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "dasein-core"
|
7
|
-
version = "0.2.
|
7
|
+
version = "0.2.22"
|
8
8
|
description = "Universal memory for agentic AI. Attach a brain to any LangChain/LangGraph agent in a single line."
|
9
9
|
readme = "README.md"
|
10
10
|
requires-python = ">=3.8"
|
@@ -1769,14 +1769,14 @@ TURN 2+ (After ACK):
|
|
1769
1769
|
modified_prompts = prompts.copy()
|
1770
1770
|
system_prompt = modified_prompts[0]
|
1771
1771
|
|
1772
|
-
#
|
1772
|
+
# Build rule injections list
|
1773
1773
|
rule_injections = []
|
1774
1774
|
for advice in system_rules:
|
1775
|
+
# Preserve original markers for backward compatibility
|
1775
1776
|
if "TOOL RULE:" in advice:
|
1776
|
-
# Make tool rules even more explicit
|
1777
1777
|
rule_injections.append(f"🚨 CRITICAL TOOL OVERRIDE: {advice}")
|
1778
1778
|
else:
|
1779
|
-
rule_injections.append(f"🚨
|
1779
|
+
rule_injections.append(f"🚨 {advice}")
|
1780
1780
|
|
1781
1781
|
# Build execution state context (agent-agnostic, with argument previews)
|
1782
1782
|
# Strategy: Show all if ≤5 calls, else show most recent 3
|
@@ -1810,32 +1810,34 @@ TURN 2+ (After ACK):
|
|
1810
1810
|
|
1811
1811
|
if state_lines:
|
1812
1812
|
state_context = f"""
|
1813
|
-
EXECUTION STATE (functions called so far
|
1813
|
+
EXECUTION STATE (functions called so far):
|
1814
1814
|
{chr(10).join(state_lines)}
|
1815
1815
|
|
1816
1816
|
"""
|
1817
1817
|
|
1818
|
-
|
1819
|
-
|
1818
|
+
# REFACTORED INJECTION - Multi-architecture gate for ReAct + function calling + LangGraph
|
1819
|
+
# Philosophy: Bind to tool invocation moment (any format), force compliance or explicit refusal
|
1820
|
+
combined_injection = f"""BEFORE emitting 'Action:' OR calling any tool/function, run this check:
|
1821
|
+
1. Is this tool banned/skipped by rules below? → If yes, use alternative from rules OR refuse this call
|
1822
|
+
2. Are required params missing? → If yes, add them per rules OR refuse incomplete call
|
1823
|
+
3. Is there a preferred alternative? → If yes, use it
|
1820
1824
|
|
1821
|
-
|
1822
|
-
Precedence: AVOID/SKIP > FIX > PREFER > HINT. On conflict, the higher rule ALWAYS wins.
|
1825
|
+
If rules provide NO compliant alternative for your current need, STOP and explain why this tool is necessary despite rules.
|
1823
1826
|
|
1824
|
-
|
1825
|
-
- AVOID: no banned targets under ANY condition.
|
1826
|
-
- SKIP: bypass skipped steps/tools; NEVER retry them. All SKIP rules below provide COMPLETE and SUFFICIENT information to proceed safely. Calling skipped tools is REDUNDANT—you already have everything needed.
|
1827
|
-
- FIX: all required params/settings MUST be included.
|
1828
|
-
- PREFER: when multiple compliant options exist, choose the preferred—NO exceptions.
|
1829
|
-
- Recovery: if a banned/skipped item already failed, IMMEDIATELY switch to a compliant alternative.
|
1827
|
+
Examples (Bad → Good):
|
1830
1828
|
|
1831
|
-
|
1829
|
+
BAD: Thought: I'll use discovery_tool. Action: discovery_tool Action Input: {{}}
|
1830
|
+
GOOD: Thought: Rules say SKIP discovery_tool, schema provided: Table1,Table2 with cols=A,B,C. I'll use query_tool directly. Action: query_tool Action Input: {{"target":"Table1"}}
|
1832
1831
|
|
1833
|
-
|
1832
|
+
BAD: Thought: I'll call tool_X. Action: tool_X Action Input: {{"arg1":"value"}}
|
1833
|
+
GOOD: Thought: Rules require param 'limit'. Adding it. Action: tool_X Action Input: {{"arg1":"value","limit":10}}
|
1834
1834
|
|
1835
|
+
BAD: Thought: I'll extract all content. Action: extract_all Action Input: {{}}
|
1836
|
+
GOOD: Thought: Rules provide focused selector. Action: extract_focused Action Input: {{"selector":"div.content"}}
|
1835
1837
|
|
1838
|
+
{state_context}Rules:
|
1836
1839
|
{chr(10).join(rule_injections)}
|
1837
1840
|
|
1838
|
-
|
1839
1841
|
"""
|
1840
1842
|
# Put the injection at the VERY BEGINNING of the system prompt
|
1841
1843
|
modified_prompts[0] = combined_injection + system_prompt
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{dasein_core-0.2.21 → dasein_core-0.2.22}/src/dasein/models/en_core_web_sm/en_core_web_sm/meta.json
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|