MCPcopy Index your code
hub / github.com/caesarHQ/textSQL / extract_sql_query_from_message

Function extract_sql_query_from_message

byod/api/app/utils.py:81–84  ·  view source on GitHub ↗
(assistant_message_content)

Source from the content-addressed store, hash-verified

79
80
81def extract_sql_query_from_message(assistant_message_content):
82 print(assistant_message_content)
83 content = extract_code_from_markdown(assistant_message_content)
84 return clean_message_content(content)
85
86
87def extract_code_from_markdown(assistant_message_content):

Callers 1

text_to_sql_with_retryFunction · 0.50

Calls 2

clean_message_contentFunction · 0.85

Tested by

no test coverage detected