oagi-core 0.9.2__py3-none-any.whl → 0.10.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- oagi/__init__.py +76 -33
- oagi/agent/__init__.py +2 -0
- oagi/agent/default.py +41 -8
- oagi/agent/factories.py +22 -3
- oagi/agent/observer/__init__.py +38 -0
- oagi/agent/observer/agent_observer.py +99 -0
- oagi/agent/observer/events.py +28 -0
- oagi/agent/observer/exporters.py +445 -0
- oagi/agent/observer/protocol.py +12 -0
- oagi/agent/registry.py +2 -2
- oagi/agent/tasker/models.py +1 -0
- oagi/agent/tasker/planner.py +30 -7
- oagi/agent/tasker/taskee_agent.py +171 -79
- oagi/agent/tasker/tasker_agent.py +20 -9
- oagi/cli/agent.py +42 -3
- oagi/cli/tracking.py +27 -17
- oagi/handler/pyautogui_action_handler.py +7 -0
- oagi/server/agent_wrappers.py +5 -5
- oagi/server/models.py +1 -1
- oagi/server/session_store.py +2 -2
- oagi/task/async_.py +11 -32
- oagi/task/async_short.py +1 -1
- oagi/task/base.py +41 -7
- oagi/task/short.py +1 -1
- oagi/task/sync.py +9 -32
- oagi/types/__init__.py +24 -4
- oagi/types/async_image_provider.py +3 -2
- oagi/types/image_provider.py +3 -2
- oagi/types/step_observer.py +75 -16
- oagi/types/url.py +3 -0
- {oagi_core-0.9.2.dist-info → oagi_core-0.10.0.dist-info}/METADATA +37 -25
- oagi_core-0.10.0.dist-info/RECORD +68 -0
- oagi/types/url_image.py +0 -47
- oagi_core-0.9.2.dist-info/RECORD +0 -63
- {oagi_core-0.9.2.dist-info → oagi_core-0.10.0.dist-info}/WHEEL +0 -0
- {oagi_core-0.9.2.dist-info → oagi_core-0.10.0.dist-info}/entry_points.txt +0 -0
- {oagi_core-0.9.2.dist-info → oagi_core-0.10.0.dist-info}/licenses/LICENSE +0 -0
oagi/types/url_image.py
DELETED
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"""URLImage implementation for handling images via URLs."""
|
|
2
|
-
|
|
3
|
-
from typing import Optional
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
class URLImage:
|
|
7
|
-
"""Image implementation that supports URLs.
|
|
8
|
-
|
|
9
|
-
This is useful when the image is already uploaded to a URL (e.g., S3)
|
|
10
|
-
and we want to pass the URL reference instead of downloading bytes.
|
|
11
|
-
"""
|
|
12
|
-
|
|
13
|
-
def __init__(self, url: str, cached_bytes: Optional[bytes] = None):
|
|
14
|
-
"""Initialize URLImage with a URL.
|
|
15
|
-
|
|
16
|
-
Args:
|
|
17
|
-
url: URL of the image
|
|
18
|
-
cached_bytes: Optional cached bytes of the image
|
|
19
|
-
"""
|
|
20
|
-
self.url = url
|
|
21
|
-
self._cached_bytes = cached_bytes
|
|
22
|
-
|
|
23
|
-
def read(self) -> bytes:
|
|
24
|
-
"""Read the image data as bytes.
|
|
25
|
-
|
|
26
|
-
For URL-based images, this returns empty bytes by default since
|
|
27
|
-
the image is already uploaded. Subclasses can override to fetch
|
|
28
|
-
the actual bytes from the URL if needed.
|
|
29
|
-
|
|
30
|
-
Returns:
|
|
31
|
-
Image bytes (empty for URL-only images)
|
|
32
|
-
"""
|
|
33
|
-
if self._cached_bytes is not None:
|
|
34
|
-
return self._cached_bytes
|
|
35
|
-
return b""
|
|
36
|
-
|
|
37
|
-
def get_url(self) -> str:
|
|
38
|
-
"""Get the URL of the image.
|
|
39
|
-
|
|
40
|
-
Returns:
|
|
41
|
-
The image URL
|
|
42
|
-
"""
|
|
43
|
-
return self.url
|
|
44
|
-
|
|
45
|
-
def __repr__(self) -> str:
|
|
46
|
-
"""String representation of URLImage."""
|
|
47
|
-
return f"URLImage(url='{self.url}')"
|
oagi_core-0.9.2.dist-info/RECORD
DELETED
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
oagi/__init__.py,sha256=cSqJ61OyscGJLHBCn53cS4PrCKC4DQl5xRDNkGR0TXo,3041
|
|
2
|
-
oagi/exceptions.py,sha256=Rco37GQTPYUfc2vRO3hozxPF_s8mKFDpFvBg2UKWo3Y,3066
|
|
3
|
-
oagi/logging.py,sha256=YT3KCMFj5fzO98R9xlDDgfSotUuz1xRD6OZeYM2rKoo,1760
|
|
4
|
-
oagi/agent/__init__.py,sha256=JU9zuWuDzpzitsVJB4z5ddvx8RMm5nbP-bjUCL1Sfvo,834
|
|
5
|
-
oagi/agent/default.py,sha256=0rnv-ZY5Gs4o25B6eVb1BFrOKWgNFo0TobLicNDkiHM,3095
|
|
6
|
-
oagi/agent/factories.py,sha256=eE0hcXyJX4dk2nvRRlEvQPJqkBraeIaT7nXiED2lH_Q,1605
|
|
7
|
-
oagi/agent/protocol.py,sha256=IQJGiMN4yZIacrh5e9JQsoM9TyHb8wJRQR4LAk8dSA0,1615
|
|
8
|
-
oagi/agent/registry.py,sha256=4oG65E_bV47Xl6F-HX9KaVoV0pcoC1uRRDU4RT_m3uU,4841
|
|
9
|
-
oagi/agent/tasker/__init__.py,sha256=faOC5ONY8ZKr4CjofC6HYg1WKWc1UiaGB9VHy8W280M,800
|
|
10
|
-
oagi/agent/tasker/memory.py,sha256=JsJjUMpnJoKW4VFzd8FI4M-FhnEihTecL61KVgO_YBI,6051
|
|
11
|
-
oagi/agent/tasker/models.py,sha256=VzvHB5hLv6qyYcyNiojVIEDlTzeGE4Quswk4EVIbzoI,2180
|
|
12
|
-
oagi/agent/tasker/planner.py,sha256=PGBSMMpADSSWCcGnCPYm1TbxDgcqXLC_IKMzhQIGYn4,13972
|
|
13
|
-
oagi/agent/tasker/taskee_agent.py,sha256=LzjsD0NQlGiKoHZGirmcJNHV46kmWK-njoup-YVgzwQ,14111
|
|
14
|
-
oagi/agent/tasker/tasker_agent.py,sha256=jxXAopGEUQu7OB4jU8PDTMOBxwnRbOSEmBTLURK7X7M,10992
|
|
15
|
-
oagi/cli/__init__.py,sha256=aDnJViTseShpo5fdGPTj-ELysZhmdvB6Z8mEj2D-_N4,359
|
|
16
|
-
oagi/cli/agent.py,sha256=UdAhKeXTQTC3TIfrugUblTnQ7vZ9e069EAFJlJvt1PE,4477
|
|
17
|
-
oagi/cli/display.py,sha256=rkAxuHa40ZtKdmvwARev1rgyfsNyVvQ-J6RdjOZIPwc,1729
|
|
18
|
-
oagi/cli/main.py,sha256=faHns0HaQCGyylDn2YZLpjQESuEiMYjoQVoMkt8FsH4,2292
|
|
19
|
-
oagi/cli/server.py,sha256=Z1ic8r55yaeQBFRCsMNZStC1jRiJdnDGqe9On9LmFzQ,3031
|
|
20
|
-
oagi/cli/tracking.py,sha256=jPH6QDUUwnfZ8bjQU6deofBmBflTEOOCINwinQJz9OI,1147
|
|
21
|
-
oagi/cli/utils.py,sha256=BI6C7WvC51NBsXEsjDONjSNwqdD4i0nHA_rsfpyLwmA,2986
|
|
22
|
-
oagi/client/__init__.py,sha256=F9DShPUdb6vZYmN1fpM1VYzp4MWqUao_e_R1KYmM4Q4,410
|
|
23
|
-
oagi/client/async_.py,sha256=t-GPHcz6xbHx_RPFv1V_hwZ1_f-O9ONH-Ahr0w-Nz8M,11046
|
|
24
|
-
oagi/client/base.py,sha256=4ZfhouEyIcldStJG5ipxpxpD6iVRGrMUZruQX0WKiXE,16934
|
|
25
|
-
oagi/client/sync.py,sha256=QKd6nTUXtyn1Am8YlFcpsoLh1KuHhQgbMemIkb7r39g,10882
|
|
26
|
-
oagi/handler/__init__.py,sha256=Ha11L42K33K3L9S4lQ10UC0DnD5g6egtQUsJpS_tKgg,835
|
|
27
|
-
oagi/handler/_macos.py,sha256=aHkp-xGzvWL_SBjuS690i9jf93OITFJfGHzHeYCK65I,1957
|
|
28
|
-
oagi/handler/async_pyautogui_action_handler.py,sha256=hQzseR1yBD0QMpgsEVNsUmuApGVAIIyGYD06BXd82Dc,1615
|
|
29
|
-
oagi/handler/async_screenshot_maker.py,sha256=8QCtUV59ozpOpvkqhUMb8QDI2qje2gsoFT1qB60tfJM,1689
|
|
30
|
-
oagi/handler/pil_image.py,sha256=yUcAoGBL-aZ0PCjSaAmQsDwtyzjldXHqXQp_OYRk6e4,4080
|
|
31
|
-
oagi/handler/pyautogui_action_handler.py,sha256=8jXF7Muc68JVjJY-cGUQN58WO44bCwI6AIc0mkEV5Nw,10272
|
|
32
|
-
oagi/handler/screenshot_maker.py,sha256=j1jTW-awx3vAnb1N5_FIMBC0Z-rNVQbiBP-S6Gh5dlE,1284
|
|
33
|
-
oagi/server/__init__.py,sha256=uZx8u3vJUb87kkNzwmmVrgAgbqRu0WxyMIQCLSx56kk,452
|
|
34
|
-
oagi/server/agent_wrappers.py,sha256=4f6ZKvqy9TDA57QRHGjAQVhpHmPE5QNeewmmURg5Ajo,3288
|
|
35
|
-
oagi/server/config.py,sha256=2gJ-pDpYAxNUubwSsGKOieGcOtNX9b5YGuSqtf6g2P0,1607
|
|
36
|
-
oagi/server/main.py,sha256=jnTxk7Prc5CzlsUnkBNJp4MOoYN-7HN_Be_m1d3COa8,4829
|
|
37
|
-
oagi/server/models.py,sha256=m04q03thCPMCrY1Urgc3t6yAvuy8XK4jQBa3Z-3iWWg,2588
|
|
38
|
-
oagi/server/session_store.py,sha256=UI14NiApAwvZWmMOG4SvPE2WkbGkNTHToZhTXQjN2_U,3624
|
|
39
|
-
oagi/server/socketio_server.py,sha256=NFw5Zu7yCFLW-gOu9OX8k6mNFaCN2jtX1Tob_9w5YM0,14344
|
|
40
|
-
oagi/task/__init__.py,sha256=g_8_7ZLDLKuCGzyrB42OzY3gSOjd_SxzkJW3_pf-PXs,662
|
|
41
|
-
oagi/task/async_.py,sha256=u1vJKkyRzxmnwbMxj0GekLkH6cRCKDZQAy_5myjBUb8,3916
|
|
42
|
-
oagi/task/async_short.py,sha256=tyJb0onY5FASMvhsK175vJUZrsp2T6Ow_60I-gBLTmA,2751
|
|
43
|
-
oagi/task/base.py,sha256=Udp_Yl5GVUWR7RtayrQlwa8Yg_Nrsyal3mGEkaG8FmE,4447
|
|
44
|
-
oagi/task/short.py,sha256=b8cNpZvm5zSEwYE0dZX8uuRLLBmq6yKTTmjUGcXsbFM,2560
|
|
45
|
-
oagi/task/sync.py,sha256=Qm4eXmOEo6fDjMWPW8sona6b1QJxGOWU104cQqk2rvo,3779
|
|
46
|
-
oagi/types/__init__.py,sha256=Vz6JArE8XvBWlES8CVLy-Nx97gooh1OSsltBL6iaFiM,884
|
|
47
|
-
oagi/types/action_handler.py,sha256=NH8E-m5qpGqWcXzTSWfF7W0Xdp8SkzJsbhCmQ0B96cg,1075
|
|
48
|
-
oagi/types/async_action_handler.py,sha256=k1AaqSkFcXlxwW8sn-w0WFHGsIqHFLbcOPrkknmSVug,1116
|
|
49
|
-
oagi/types/async_image_provider.py,sha256=wnhRyPtTmuALt45Qore74-RCkP5yxU9sZGjvOzFqzOk,1170
|
|
50
|
-
oagi/types/image.py,sha256=KgPCCTJ6D5vHIaGZdbTE7eQEa1WlT6G9tf59ZuUCV2U,537
|
|
51
|
-
oagi/types/image_provider.py,sha256=oYFdOYznrK_VOR9egzOjw5wFM5w8EY2sY01pH0ANAgU,1112
|
|
52
|
-
oagi/types/step_observer.py,sha256=KDw7yQxA_I6T2DqElspAOMa8rBJTYFWBNHfC-9NmasM,1025
|
|
53
|
-
oagi/types/url_image.py,sha256=iOwtXj2uwY6dVtDP7uvQLPvK-aTxkdrzhw_R4C6GwBw,1334
|
|
54
|
-
oagi/types/models/__init__.py,sha256=I86Z2moM8hCog_1K1FG_uATcBmWFv_UFetLAjzPzWAY,742
|
|
55
|
-
oagi/types/models/action.py,sha256=hh6mRRSSWgrW4jpZo71zGMCOcZpV5_COu4148uG6G48,967
|
|
56
|
-
oagi/types/models/client.py,sha256=fCN18DBq5XDjNyYB8w-2dFeQ_K9ywwdyh-rXa0GToU4,1357
|
|
57
|
-
oagi/types/models/image_config.py,sha256=tl6abVg_-IAPLwpaWprgknXu7wRWriMg-AEVyUX73v0,1567
|
|
58
|
-
oagi/types/models/step.py,sha256=RSI4H_2rrUBq_xyCoWKaq7JHdJWNobtQppaKC1l0aWU,471
|
|
59
|
-
oagi_core-0.9.2.dist-info/METADATA,sha256=aOVV3474s0JOmFZ2hGbVvqnBTH1UdK0vLTE2HRnUWS4,7638
|
|
60
|
-
oagi_core-0.9.2.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
61
|
-
oagi_core-0.9.2.dist-info/entry_points.txt,sha256=zzgsOSWX6aN3KUB0Z1it8DMxFFBJBqmZVqMVAJRjYuw,44
|
|
62
|
-
oagi_core-0.9.2.dist-info/licenses/LICENSE,sha256=sy5DLA2M29jFT4UfWsuBF9BAr3FnRkYtnAu6oDZiIf8,1075
|
|
63
|
-
oagi_core-0.9.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|