markdown-flow 0.2.13__tar.gz → 0.2.14__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.13 → markdown_flow-0.2.14}/PKG-INFO +1 -1
- {markdown_flow-0.2.13 → markdown_flow-0.2.14}/markdown_flow/__init__.py +1 -1
- {markdown_flow-0.2.13 → markdown_flow-0.2.14}/markdown_flow/core.py +45 -27
- {markdown_flow-0.2.13 → markdown_flow-0.2.14}/markdown_flow.egg-info/PKG-INFO +1 -1
- {markdown_flow-0.2.13 → markdown_flow-0.2.14}/LICENSE +0 -0
- {markdown_flow-0.2.13 → markdown_flow-0.2.14}/README.md +0 -0
- {markdown_flow-0.2.13 → markdown_flow-0.2.14}/markdown_flow/constants.py +0 -0
- {markdown_flow-0.2.13 → markdown_flow-0.2.14}/markdown_flow/enums.py +0 -0
- {markdown_flow-0.2.13 → markdown_flow-0.2.14}/markdown_flow/exceptions.py +0 -0
- {markdown_flow-0.2.13 → markdown_flow-0.2.14}/markdown_flow/llm.py +0 -0
- {markdown_flow-0.2.13 → markdown_flow-0.2.14}/markdown_flow/models.py +0 -0
- {markdown_flow-0.2.13 → markdown_flow-0.2.14}/markdown_flow/utils.py +0 -0
- {markdown_flow-0.2.13 → markdown_flow-0.2.14}/markdown_flow.egg-info/SOURCES.txt +0 -0
- {markdown_flow-0.2.13 → markdown_flow-0.2.14}/markdown_flow.egg-info/dependency_links.txt +0 -0
- {markdown_flow-0.2.13 → markdown_flow-0.2.14}/markdown_flow.egg-info/top_level.txt +0 -0
- {markdown_flow-0.2.13 → markdown_flow-0.2.14}/pyproject.toml +0 -0
- {markdown_flow-0.2.13 → markdown_flow-0.2.14}/setup.cfg +0 -0
- {markdown_flow-0.2.13 → markdown_flow-0.2.14}/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.14
|
|
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
|
|
@@ -925,43 +925,61 @@ Original Error: {error_message}
|
|
|
925
925
|
# System prompt for detection
|
|
926
926
|
system_prompt = """You are an intelligent document processing assistant specializing in creating interactive forms.
|
|
927
927
|
|
|
928
|
-
Task: Analyze the given content block and determine if it needs to be converted to an interaction block
|
|
928
|
+
Task: Analyze the given content block and determine if it needs to be converted to an interaction block.
|
|
929
929
|
|
|
930
|
-
**
|
|
930
|
+
**CORE PRINCIPLE**: Focus on INTENT and PATTERNS, not specific keywords.
|
|
931
931
|
|
|
932
|
-
|
|
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
|
|
932
|
+
**CONVERSION REQUIRED when the text shows:**
|
|
937
933
|
|
|
938
|
-
|
|
939
|
-
-
|
|
940
|
-
-
|
|
941
|
-
-
|
|
934
|
+
1. **Collection Pattern**:
|
|
935
|
+
- PATTERN: [Action verb] + [choices/options] + [storage indicator]
|
|
936
|
+
- PATTERN: Request for user input/selection/choice + destination variable
|
|
937
|
+
- PATTERN: Interactive UI request with specific options
|
|
942
938
|
|
|
943
|
-
|
|
944
|
-
-
|
|
945
|
-
-
|
|
946
|
-
-
|
|
947
|
-
- The text is performing an operation using already collected data
|
|
939
|
+
2. **Storage Indicators** (language-agnostic):
|
|
940
|
+
- Presence of target variable for NEW data: {{new_variable}}
|
|
941
|
+
- Assignment operators or arrows: →, =>, "to", "into", "as"
|
|
942
|
+
- Save/store/record semantics in ANY language
|
|
948
943
|
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
944
|
+
3. **Interactive Intent Signals**:
|
|
945
|
+
- Imperative mood requesting user action
|
|
946
|
+
- Multiple specific options provided (not just descriptions)
|
|
947
|
+
- Form-like structure with fields to fill
|
|
952
948
|
|
|
953
|
-
|
|
954
|
-
(Using existing variable, not collecting new data)
|
|
949
|
+
**DO NOT CONVERT when the text shows:**
|
|
955
950
|
|
|
956
|
-
|
|
957
|
-
|
|
951
|
+
1. **Display/Reference Pattern**:
|
|
952
|
+
- PATTERN: Using {{existing_var}} + display/list/show action
|
|
953
|
+
- PATTERN: Information presentation without collection
|
|
954
|
+
- Keywords suggesting reference/viewing (regardless of language):
|
|
955
|
+
* "for reference", "供参考", "zur Referenz", "pour référence"
|
|
956
|
+
* "display", "show", "list", "罗列", "afficher", "anzeigen"
|
|
958
957
|
|
|
959
|
-
|
|
960
|
-
|
|
958
|
+
2. **Information Flow**:
|
|
959
|
+
- Data flows FROM variable TO display (not from user to variable)
|
|
960
|
+
- Descriptive or explanatory content
|
|
961
|
+
- Recommendations or suggestions without explicit selection request
|
|
961
962
|
|
|
962
|
-
|
|
963
|
+
**Language-Agnostic Examples**:
|
|
963
964
|
|
|
964
|
-
|
|
965
|
+
❌ Don't convert (any language):
|
|
966
|
+
- "Based on {{history}}, list/display/show [items] for reference"
|
|
967
|
+
- "根据{{history}}的选择,罗列该朝代的皇帝或者年号,供用户参考"
|
|
968
|
+
- "Selon {{history}}, afficher les empereurs pour référence"
|
|
969
|
+
|
|
970
|
+
✅ Convert (any language):
|
|
971
|
+
- "Ask user to select [option] and save to {{variable}}"
|
|
972
|
+
- "让用户选择风格并记录到{{style}}"
|
|
973
|
+
- "Create buttons: Yes/No" (implies interaction needed)
|
|
974
|
+
- "Demander à l'utilisateur de choisir et enregistrer dans {{choix}}"
|
|
975
|
+
|
|
976
|
+
**Decision Rule**:
|
|
977
|
+
Look for the SEMANTIC INTENT, not specific words:
|
|
978
|
+
- Is NEW information being COLLECTED from user? → Convert
|
|
979
|
+
- Is EXISTING information being DISPLAYED to user? → Don't convert
|
|
980
|
+
- When uncertain, check: Does this create a new {{variable}} or just use existing ones?
|
|
981
|
+
|
|
982
|
+
If conversion is needed, generate a STANDARD interaction block format."""
|
|
965
983
|
|
|
966
984
|
# User message with content and context
|
|
967
985
|
# Build user prompt with document context
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: markdown-flow
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.14
|
|
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
|