MCPcopy Create free account
hub / github.com/CoopReason/TESSY / build_prompt

Function build_prompt

Boundary_Predictor/annotator.py:86–126  ·  view source on GitHub ↗

Construct prompt: Request the model to extract all transitional, tonal, and filler phrases without substantial reasoning content, return a JSON array in original text order, with each element being a verbatim copy of the string.

(think_text: str)

Source from the content-addressed store, hash-verified

84
85
86def build_prompt(think_text: str) -> str:
87 """
88 Construct prompt: Request the model to extract all transitional, tonal, and filler phrases without substantial reasoning content,
89 return a JSON array in original text order, with each element being a verbatim copy of the string.
90 """
91 return f"""You are a text analysis expert.
92
93Task:
94Extract all spans of text that are **transitional, filler, or tone-setting phrases**
95
96---
97
98### What to extract
99Include phrases or sentences that:
100- Express hesitation, tone, or attitude (e.g., "well", "okay", "so", "let’s see", "I think")
101- Indicate transition or setup (e.g., "to begin with", "in this case", "for example", "but if")
102- Serve as narration or connection, not analysis
103
104Do **not** include:
105- Actual reasoning, deduction, or explanation
106- Code or formula descriptions
107- Problem-solving steps
108
109---
110
111### Output format (STRICT JSON)
112Return a JSON array of strings, e.g.:
113
114["<span 1>", "<span 2>", ...]
115
116Rules:
1171. Each span must be **copied verbatim** from the original text.
1182. Preserve order of appearance.
1193. If there are none, return an **empty list**: `[]`
1204. Output **only** the JSON array — no explanation or extra text.
121
122---
123<input_text>
124{think_text}
125</input_text>
126"""
127
128
129

Callers 1

generate_responseFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected