not use camera tool

This commit is contained in:
2026-01-19 16:05:51 +08:00
parent c1070df725
commit 59983de4cc

View File

@@ -402,11 +402,11 @@ if __name__ == "__main__":
print("-" * 80) print("-" * 80)
## Use the self_camera_capture_and_send tool ## Use the self_camera_capture_and_send tool
camera_tool = next((t for t in tools if t.name == "self_camera_take_photo"), None) # camera_tool = next((t for t in tools if t.name == "self_camera_take_photo"), None)
if camera_tool: # if camera_tool:
print("\n=== Using self_camera_capture_and_send tool ===") # print("\n=== Using self_camera_capture_and_send tool ===")
result = camera_tool.invoke({"question": ""}) # result = camera_tool.invoke({"question": ""})
print(f"Result: {result}") # print(f"Result: {result}")
# Use the self_screen_set_brightness tool # Use the self_screen_set_brightness tool
# brightness_tool = next((t for t in tools if t.name == "self_screen_set_brightness"), None) # brightness_tool = next((t for t in tools if t.name == "self_screen_set_brightness"), None)