MCPcopy Create free account
hub / github.com/dbcli/mycli / destructive_keywords_from_config

Function destructive_keywords_from_config

mycli/app_state.py:65–67  ·  view source on GitHub ↗
(config: ConfigObj)

Source from the content-addressed store, hash-verified

63
64
65def destructive_keywords_from_config(config: ConfigObj) -> list[str]:
66 keywords = config['main'].get('destructive_keywords', 'DROP SHUTDOWN DELETE TRUNCATE ALTER UPDATE')
67 return [keyword for keyword in keywords.split(' ') if keyword]
68
69
70def llm_prompt_truncation(config: ConfigObj) -> tuple[int, int]:

Calls 2

splitMethod · 0.80
getMethod · 0.45