Skip to content

Commit

Permalink
Requested changes
Browse files Browse the repository at this point in the history
  • Loading branch information
HowieG committed Jun 5, 2024
1 parent 941be01 commit 95c2cef
Show file tree
Hide file tree
Showing 9 changed files with 372 additions and 331 deletions.
2 changes: 0 additions & 2 deletions agentops/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,6 @@ def _record_event_sync(self, func, event_name, *args, **kwargs):

event.returns = returns

# NOTE: Will likely remove in future since this is tightly coupled. Adding it to see how useful we find it for now
# TODO: check if screenshot is the url string we expect it to be? And not e.g. "True"
if hasattr(returns, "screenshot"):
event.screenshot = returns.screenshot

Expand Down
2 changes: 1 addition & 1 deletion agentops/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def default(o):
return f"<<non-serializable: {type(o).__qualname__}>>"

def remove_unwanted_items(value):
"""Recursively remove unwanted items from dictionaries."""
"""Recursively remove self key and None/... values from dictionaries so they aren't serialized"""
if isinstance(value, dict):
return {
k: remove_unwanted_items(v)
Expand Down
88 changes: 88 additions & 0 deletions examples/multion/browse.ipynb

Large diffs are not rendered by default.

99 changes: 99 additions & 0 deletions examples/multion/retrieve.ipynb

Large diffs are not rendered by default.

184 changes: 184 additions & 0 deletions examples/multion/step.ipynb

Large diffs are not rendered by default.

66 changes: 0 additions & 66 deletions examples/multion_example_browse.ipynb

This file was deleted.

77 changes: 0 additions & 77 deletions examples/multion_example_retrieve.ipynb

This file was deleted.

89 changes: 0 additions & 89 deletions examples/multion_example_step_session.ipynb

This file was deleted.

96 changes: 0 additions & 96 deletions examples/multion_example_step_stream.ipynb

This file was deleted.

0 comments on commit 95c2cef

Please sign in to comment.