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

Function my_takeover

examples/basic_usage.py:54–58  ·  view source on GitHub ↗

Manual takeover callback / 人工接管回调

(message: str)

Source from the content-addressed store, hash-verified

52 return response.lower() in ("yes", "y", "是")
53
54 def my_takeover(message: str) -> None:
55 """Manual takeover callback / 人工接管回调"""
56 print(f"\n[{msgs['manual_operation_required']}] {message}")
57 print(msgs["manual_operation_hint"])
58 input(f"{msgs['press_enter_when_done']}: ")
59
60 # Create Agent with custom callbacks
61 agent_config = AgentConfig(lang=lang)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected