MCPcopy Create free account
hub / github.com/acking-you/static_flow / read_message

Function read_message

scripts/test_llm_gateway_chat.py:30–38  ·  view source on GitHub ↗

Read the user prompt from argv or an interactive stdin prompt.

(positional_message: list[str])

Source from the content-addressed store, hash-verified

28
29
30def read_message(positional_message: list[str]) -> str:
31 """Read the user prompt from argv or an interactive stdin prompt."""
32 if positional_message:
33 message = " ".join(positional_message).strip()
34 else:
35 message = input("Message> ").strip()
36 if not message:
37 raise ValueError("message is required")
38 return message
39
40
41def build_headers(api_key: str, conversation_id: str | None) -> dict[str, str]:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected