Update agent hints and UI SOP note
This commit is contained in:
1 parent
52e7519c1a
commit
8ec764a87e
3 files changed
+7
-2
No files matched your search
+5
-1
@@ -42,6 +42,10 @@ def get_system_prompt():
|
||||
prompt += get_global_memory()
|
||||
return prompt
|
||||
|
||||
# SDK:
|
||||
# agent = GenericAgent(); threading.Thread(target=agent.run, daemon=True).start()
|
||||
# output1_queue = agent.put_task(prompt1)
|
||||
# output2_queue = agent.put_task(prompt2)
|
||||
class GenericAgent:
|
||||
def __init__(self):
|
||||
os.makedirs(os.path.join(script_dir, 'temp'), exist_ok=True)
|
||||
@@ -187,7 +191,7 @@ class GenericAgent:
|
||||
self.task_queue.task_done()
|
||||
if self.handler is not None: self.handler.code_stop_signal.append(1)
|
||||
|
||||
GeneraticAgent = GenericAgent
|
||||
GeneraticAgent = GenericAgent
|
||||
|
||||
if __name__ == '__main__':
|
||||
import argparse
|
||||
|
||||
@@ -503,7 +503,7 @@ class GenericAgentHandler(BaseHandler):
|
||||
if remaining == 0:
|
||||
self._exit_plan_mode(); yield "[Info] Plan完成:plan.md中0个[ ]残留,退出plan模式。\n"
|
||||
|
||||
yield "[Info] Final response to user.\n"
|
||||
#yield "[Info] Final response to user.\n"
|
||||
return StepOutcome(response, next_prompt=None)
|
||||
|
||||
def do_start_long_term_update(self, args, response):
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
- `ljqCtrl.GrabWindow(hwnd_or_name)`: 前台截图(先Activate), 传hwnd(int)或窗口标题子串(str), 返回PIL Image
|
||||
- `ljqCtrl.GrabWindowBg(hwnd_or_name, timeout=5)`: WGC后台截图(Win10+)
|
||||
- `ljqCtrl.MouseDClick(staytime=0.05)`: 鼠标双击
|
||||
- 可先阅读computer_use.md
|
||||
|
||||
## 1. 环境载入
|
||||
import ljqCtrl
|
||||
|
||||
Reference in new issue
Block a user