markdown-flow 0.2.12__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.12 → markdown_flow-0.2.14}/PKG-INFO +1 -1
- {markdown_flow-0.2.12 → markdown_flow-0.2.14}/markdown_flow/__init__.py +1 -1
- {markdown_flow-0.2.12 → markdown_flow-0.2.14}/markdown_flow/core.py +53 -6
- {markdown_flow-0.2.12 → markdown_flow-0.2.14}/markdown_flow.egg-info/PKG-INFO +1 -1
- {markdown_flow-0.2.12 → markdown_flow-0.2.14}/LICENSE +0 -0
- {markdown_flow-0.2.12 → markdown_flow-0.2.14}/README.md +0 -0
- {markdown_flow-0.2.12 → markdown_flow-0.2.14}/markdown_flow/constants.py +0 -0
- {markdown_flow-0.2.12 → markdown_flow-0.2.14}/markdown_flow/enums.py +0 -0
- {markdown_flow-0.2.12 → markdown_flow-0.2.14}/markdown_flow/exceptions.py +0 -0
- {markdown_flow-0.2.12 → markdown_flow-0.2.14}/markdown_flow/llm.py +0 -0
- {markdown_flow-0.2.12 → markdown_flow-0.2.14}/markdown_flow/models.py +0 -0
- {markdown_flow-0.2.12 → markdown_flow-0.2.14}/markdown_flow/utils.py +0 -0
- {markdown_flow-0.2.12 → markdown_flow-0.2.14}/markdown_flow.egg-info/SOURCES.txt +0 -0
- {markdown_flow-0.2.12 → markdown_flow-0.2.14}/markdown_flow.egg-info/dependency_links.txt +0 -0
- {markdown_flow-0.2.12 → markdown_flow-0.2.14}/markdown_flow.egg-info/top_level.txt +0 -0
- {markdown_flow-0.2.12 → markdown_flow-0.2.14}/pyproject.toml +0 -0
- {markdown_flow-0.2.12 → markdown_flow-0.2.14}/setup.cfg +0 -0
- {markdown_flow-0.2.12 → 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,14 +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
|
-
|
|
931
|
-
1. It requires to generate/show buttons
|
|
932
|
-
2. It requires to generate/show checkboxs or multi-selection interactive elements
|
|
933
|
-
3. It requires to generate/show text input box
|
|
930
|
+
**CORE PRINCIPLE**: Focus on INTENT and PATTERNS, not specific keywords.
|
|
934
931
|
|
|
935
|
-
|
|
932
|
+
**CONVERSION REQUIRED when the text shows:**
|
|
933
|
+
|
|
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
|
|
938
|
+
|
|
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
|
|
943
|
+
|
|
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
|
|
948
|
+
|
|
949
|
+
**DO NOT CONVERT when the text shows:**
|
|
950
|
+
|
|
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"
|
|
957
|
+
|
|
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
|
|
962
|
+
|
|
963
|
+
**Language-Agnostic Examples**:
|
|
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."""
|
|
936
983
|
|
|
937
984
|
# User message with content and context
|
|
938
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
|