MCPcopy
hub / github.com/zai-org/Open-AutoGLM / reset

Method reset

phone_agent/agent.py:131–134  ·  view source on GitHub ↗

Reset the agent state for a new task.

(self)

Source from the content-addressed store, hash-verified

129 return self._execute_step(task, is_first)
130
131 def reset(self) -> None:
132 """Reset the agent state for a new task."""
133 self._context = []
134 self._step_count = 0
135
136 def _execute_step(
137 self, user_prompt: str | None = None, is_first: bool = False

Callers 2

mainFunction · 0.95
example_multiple_tasksFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected