Skip to content

Commit fb6dc00

Browse files
authored
Merge pull request #19 from HowieG/fix-retrieve
2 parents e166d37 + 47ab985 commit fb6dc00

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/multion/client.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
import os
1010

1111
from .wrappers import wraps_function
12+
from .types.browse_output import BrowseOutput
1213
from .types.retrieve_output import RetrieveOutput
1314

14-
1515
# this is used as the default value for optional parameters
1616
OMIT = typing.cast(typing.Any, ...)
1717

@@ -63,7 +63,7 @@ def __init__(
6363

6464
@agentops.record_function(event_name="browse") # type: ignore
6565
@wraps_function(BaseMultiOn.browse)
66-
def browse(self, *args, **kwargs):
66+
def browse(self, *args, **kwargs) -> BrowseOutput:
6767
agentops.start_session(tags=["multion-sdk"])
6868
return super().browse(*args, **kwargs)
6969

@@ -121,12 +121,12 @@ def __init__(
121121

122122
@agentops.record_function(event_name="browse") # type: ignore
123123
@wraps_function(AsyncBaseMultiOn.browse)
124-
async def browse(self, *args, **kwargs):
124+
async def browse(self, *args, **kwargs) -> BrowseOutput:
125125
agentops.start_session(tags=["multion-sdk"])
126-
return super().browse(*args, **kwargs)
126+
return await super().browse(*args, **kwargs)
127127

128128
@agentops.record_function(event_name="retrieve") # type: ignore
129129
@wraps_function(BaseMultiOn.retrieve)
130130
async def retrieve(self, *args, **kwargs) -> RetrieveOutput:
131131
agentops.start_session(tags=["multion-sdk"])
132-
return super().retrieve(*args, **kwargs)
132+
return await super().retrieve(*args, **kwargs)

0 commit comments

Comments
 (0)