MCPcopy
hub / github.com/PromtEngineer/localGPT / get_user_input

Method get_user_input

create_index_script.py:70–75  ·  view source on GitHub ↗

Get user input with optional default value.

(self, prompt: str, default: str = "")

Source from the content-addressed store, hash-verified

68 return PIPELINE_CONFIGS.get("default", {})
69
70 def get_user_input(self, prompt: str, default: str = "") -> str:
71 """Get user input with optional default value."""
72 if default:
73 user_input = input(f"{prompt} [{default}]: ").strip()
74 return user_input if user_input else default
75 return input(f"{prompt}: ").strip()
76
77 def select_documents(self) -> List[str]:
78 """Interactive document selection."""

Callers 4

select_documentsMethod · 0.95
configure_processingMethod · 0.95
test_indexMethod · 0.95

Calls

no outgoing calls

Tested by 1

test_indexMethod · 0.76