Skip to content

Commit 9f5a3f2

Browse files
committed
improve docstrings and comments in overload.py
1 parent 63cc8af commit 9f5a3f2

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/humanloop/overload.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -78,15 +78,15 @@ def _overload_log(
7878
try:
7979
response = self._log(**kwargs_eval)
8080
except Exception as e:
81-
# Re-raising as HumanloopDecoratorError so the decorators don't catch it
81+
# Re-raising as HumanloopRuntimeError so the decorators don't catch it
8282
raise HumanloopRuntimeError from e
8383
if eval_callback is not None:
8484
eval_callback(response.id)
8585
else:
8686
try:
8787
response = self._log(**kwargs)
8888
except Exception as e:
89-
# Re-raising as HumanloopDecoratorError so the decorators don't catch it
89+
# Re-raising as HumanloopRuntimeError so the decorators don't catch it
9090
raise HumanloopRuntimeError from e
9191

9292
return response
@@ -116,7 +116,6 @@ def _overload_call(self, **kwargs) -> PromptCallResponse:
116116
}
117117

118118
try:
119-
logger.info(f"Calling inner overload")
120119
response = self._call(**kwargs)
121120
except Exception as e:
122121
# Re-raising as HumanloopRuntimeError so the decorators don't catch it
@@ -147,12 +146,7 @@ def overload_with_local_files(
147146
When use_local_files is True:
148147
- If only path is specified (no version_id or environment), attempts to use local file
149148
- If local file is not found or cannot be read, raises an error
150-
- If version_id or environment is specified, uses remote version with a warning
151-
152-
Args:
153-
client: The client to overload (PromptsClient or AgentsClient)
154-
sync_client: The sync client for handling local files
155-
use_local_files: Whether to use local files
149+
- If version_id and/or environment is specified, uses remote version with a warning
156150
157151
Raises:
158152
HumanloopRuntimeError: If use_local_files is True and local file cannot be accessed

0 commit comments

Comments
 (0)