|
9 | 9 | import os |
10 | 10 |
|
11 | 11 | from .wrappers import wraps_function |
| 12 | +from .types.browse_output import BrowseOutput |
12 | 13 | from .types.retrieve_output import RetrieveOutput |
13 | 14 |
|
14 | | - |
15 | 15 | # this is used as the default value for optional parameters |
16 | 16 | OMIT = typing.cast(typing.Any, ...) |
17 | 17 |
|
@@ -63,7 +63,7 @@ def __init__( |
63 | 63 |
|
64 | 64 | @agentops.record_function(event_name="browse") # type: ignore |
65 | 65 | @wraps_function(BaseMultiOn.browse) |
66 | | - def browse(self, *args, **kwargs): |
| 66 | + def browse(self, *args, **kwargs) -> BrowseOutput: |
67 | 67 | agentops.start_session(tags=["multion-sdk"]) |
68 | 68 | return super().browse(*args, **kwargs) |
69 | 69 |
|
@@ -121,12 +121,12 @@ def __init__( |
121 | 121 |
|
122 | 122 | @agentops.record_function(event_name="browse") # type: ignore |
123 | 123 | @wraps_function(AsyncBaseMultiOn.browse) |
124 | | - async def browse(self, *args, **kwargs): |
| 124 | + async def browse(self, *args, **kwargs) -> BrowseOutput: |
125 | 125 | agentops.start_session(tags=["multion-sdk"]) |
126 | | - return super().browse(*args, **kwargs) |
| 126 | + return await super().browse(*args, **kwargs) |
127 | 127 |
|
128 | 128 | @agentops.record_function(event_name="retrieve") # type: ignore |
129 | 129 | @wraps_function(BaseMultiOn.retrieve) |
130 | 130 | async def retrieve(self, *args, **kwargs) -> RetrieveOutput: |
131 | 131 | agentops.start_session(tags=["multion-sdk"]) |
132 | | - return super().retrieve(*args, **kwargs) |
| 132 | + return await super().retrieve(*args, **kwargs) |
0 commit comments