MCPcopy Create free account
hub / github.com/zai-org/Open-AutoGLM / my_confirmation

Function my_confirmation

examples/basic_usage.py:48–52  ·  view source on GitHub ↗

Sensitive operation confirmation callback / 敏感操作确认回调

(message: str)

Source from the content-addressed store, hash-verified

46 msgs = get_messages(lang)
47
48 def my_confirmation(message: str) -> bool:
49 """Sensitive operation confirmation callback / 敏感操作确认回调"""
50 print(f"\n[{msgs['confirmation_required']}] {message}")
51 response = input(f"{msgs['continue_prompt']}: ")
52 return response.lower() in ("yes", "y", "是")
53
54 def my_takeover(message: str) -> None:
55 """Manual takeover callback / 人工接管回调"""

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected