Use only the leading content line so bot examples do not get reparsed as user input.
(text: Any)
| 774 | |
| 775 | |
| 776 | def first_meaningful_line(text: Any) -> str: |
| 777 | """Use only the leading content line so bot examples do not get reparsed as user input.""" |
| 778 | for raw_line in str(text or "").splitlines(): |
| 779 | cleaned = raw_line.strip().strip("\"'") |
| 780 | if cleaned: |
| 781 | return cleaned |
| 782 | return "" |
| 783 | |
| 784 | |
| 785 | def detect_explicit_command_intent(text: Any) -> Optional[Dict[str, Any]]: |
no outgoing calls
no test coverage detected