markdown-flow 0.2.12__tar.gz → 0.2.13__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.
Potentially problematic release.
This version of markdown-flow might be problematic. Click here for more details.
- {markdown_flow-0.2.12 → markdown_flow-0.2.13}/PKG-INFO +1 -1
- {markdown_flow-0.2.12 → markdown_flow-0.2.13}/markdown_flow/__init__.py +1 -1
- {markdown_flow-0.2.12 → markdown_flow-0.2.13}/markdown_flow/core.py +33 -4
- {markdown_flow-0.2.12 → markdown_flow-0.2.13}/markdown_flow.egg-info/PKG-INFO +1 -1
- {markdown_flow-0.2.12 → markdown_flow-0.2.13}/LICENSE +0 -0
- {markdown_flow-0.2.12 → markdown_flow-0.2.13}/README.md +0 -0
- {markdown_flow-0.2.12 → markdown_flow-0.2.13}/markdown_flow/constants.py +0 -0
- {markdown_flow-0.2.12 → markdown_flow-0.2.13}/markdown_flow/enums.py +0 -0
- {markdown_flow-0.2.12 → markdown_flow-0.2.13}/markdown_flow/exceptions.py +0 -0
- {markdown_flow-0.2.12 → markdown_flow-0.2.13}/markdown_flow/llm.py +0 -0
- {markdown_flow-0.2.12 → markdown_flow-0.2.13}/markdown_flow/models.py +0 -0
- {markdown_flow-0.2.12 → markdown_flow-0.2.13}/markdown_flow/utils.py +0 -0
- {markdown_flow-0.2.12 → markdown_flow-0.2.13}/markdown_flow.egg-info/SOURCES.txt +0 -0
- {markdown_flow-0.2.12 → markdown_flow-0.2.13}/markdown_flow.egg-info/dependency_links.txt +0 -0
- {markdown_flow-0.2.12 → markdown_flow-0.2.13}/markdown_flow.egg-info/top_level.txt +0 -0
- {markdown_flow-0.2.12 → markdown_flow-0.2.13}/pyproject.toml +0 -0
- {markdown_flow-0.2.12 → markdown_flow-0.2.13}/setup.cfg +0 -0
- {markdown_flow-0.2.12 → markdown_flow-0.2.13}/tests/test_dynamic_interaction.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: markdown-flow
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.13
|
|
4
4
|
Summary: An agent library designed to parse and process MarkdownFlow documents
|
|
5
5
|
Project-URL: Homepage, https://github.com/ai-shifu/markdown-flow-agent-py
|
|
6
6
|
Project-URL: Bug Tracker, https://github.com/ai-shifu/markdown-flow-agent-py/issues
|
|
@@ -927,10 +927,39 @@ Original Error: {error_message}
|
|
|
927
927
|
|
|
928
928
|
Task: Analyze the given content block and determine if it needs to be converted to an interaction block to collect user information.
|
|
929
929
|
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
930
|
+
**Core Principle**: Only convert when the text indicates a need to COLLECT and STORE user input into a variable (usually marked with {{variable_name}} or similar patterns).
|
|
931
|
+
|
|
932
|
+
Judgment criteria for CONVERSION:
|
|
933
|
+
1. **Variable Storage Requirement**: The text explicitly or implicitly mentions:
|
|
934
|
+
- Storing user input into a variable (e.g., "record to {{style}}", "save as {{preference}}")
|
|
935
|
+
- Collecting information for later use in the workflow
|
|
936
|
+
- Building user profile or preferences that will be referenced later
|
|
937
|
+
|
|
938
|
+
2. **Data Collection Intent**: The interaction aims to:
|
|
939
|
+
- Gather user choices that will affect subsequent steps
|
|
940
|
+
- Collect structured information that needs to be preserved
|
|
941
|
+
- Create reusable data points for the conversation flow
|
|
942
|
+
|
|
943
|
+
DO NOT convert if:
|
|
944
|
+
- The text only describes an action or recommendation without collecting input
|
|
945
|
+
- It's showing/displaying information based on existing variables (e.g., "based on {{history}}")
|
|
946
|
+
- It's a simple question without the need to store the response
|
|
947
|
+
- The text is performing an operation using already collected data
|
|
948
|
+
|
|
949
|
+
Examples:
|
|
950
|
+
❌ Don't convert: "询问想了解的朝代:"
|
|
951
|
+
(Simple inquiry, no storage indicated)
|
|
952
|
+
|
|
953
|
+
❌ Don't convert: "根据{{history}}的选择推荐选这个朝代的皇帝或者年号"
|
|
954
|
+
(Using existing variable, not collecting new data)
|
|
955
|
+
|
|
956
|
+
✅ Convert: "根据用户提供{{故事类型}},进一步询问用户故事风格,比如幽默,搞笑,文言文等.并且记录到{{风格}}"
|
|
957
|
+
(Explicitly mentions collecting and storing to {{风格}})
|
|
958
|
+
|
|
959
|
+
✅ Convert: "请选择您的偏好并保存到{{user_preference}}"
|
|
960
|
+
(Clear intent to store user input)
|
|
961
|
+
|
|
962
|
+
Key indicator: Look for phrases like "记录到", "保存为", "存储到", "collect as", "save to", or the presence of target variables {{}} for storing new input.
|
|
934
963
|
|
|
935
964
|
If conversion is needed, generate a STANDARD interaction block format with SPECIFIC options based on the document-level instructions and context provided in the user message."""
|
|
936
965
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: markdown-flow
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.13
|
|
4
4
|
Summary: An agent library designed to parse and process MarkdownFlow documents
|
|
5
5
|
Project-URL: Homepage, https://github.com/ai-shifu/markdown-flow-agent-py
|
|
6
6
|
Project-URL: Bug Tracker, https://github.com/ai-shifu/markdown-flow-agent-py/issues
|
|
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
|