Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion metagpt/ext/android_assistant/actions/parse_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ async def run(self, task_dir: Path, docs_dir: Path):

logger.info(f"Waiting for GPT-4V to generate documentation for the element {resource_id}")
node = await RECORD_PARSE_NODE.fill(
context=context, llm=self.llm, images=[img_before_base64, img_after_base64]
req=context, llm=self.llm, images=[img_before_base64, img_after_base64]
)
if "error" in node.content:
return AndroidActionOutput(action_state=RunState.FAIL)
Expand Down
2 changes: 1 addition & 1 deletion metagpt/ext/android_assistant/actions/screenshot_parse.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ async def run(

ui_doc = self._makeup_ui_document(elem_list, docs_dir)
context = parse_template.format(ui_document=ui_doc, task_description=task_desc, last_act=last_act)
node = await SCREENSHOT_PARSE_NODE.fill(context=context, llm=self.llm, images=[img_base64])
node = await SCREENSHOT_PARSE_NODE.fill(req=context, llm=self.llm, images=[img_base64])

if "error" in node.content:
return AndroidActionOutput(action_state=RunState.FAIL)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ async def run_self_learn(
self_explore_template = screenshot_parse_self_explore_template
context = self_explore_template.format(task_description=task_desc, last_act=last_act)

node = await SCREENSHOT_PARSE_NODE.fill(context=context, llm=self.llm, images=[img_base64])
node = await SCREENSHOT_PARSE_NODE.fill(req=context, llm=self.llm, images=[img_base64])
logger.debug(f"fill result:{node}")
if "error" in node.content:
return AndroidActionOutput(action_state=RunState.FAIL)
Expand Down
2 changes: 1 addition & 1 deletion metagpt/ext/android_assistant/roles/android_assistant.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ async def _observe(self, ignore_memory=True) -> int:
ignore_memory = False
state_val = newest_msg.content.split(".")[-1] # RoundCount: 1, action_state: RunState.SUCCESS
logger.warning(f"Latest action_state is {state_val}, will run in the remainder rounds without `react`")
return await super()._observe(ignore_memory)
return await super()._observe()

async def _act(self) -> Message:
logger.info(f"{self._setting}: to do {self.rc.todo}({self.rc.todo.name})")
Expand Down
Loading