|
18 | 18 | ) |
19 | 19 |
|
20 | 20 | from humanloop.base_client import AsyncBaseHumanloop, BaseHumanloop |
21 | | -from humanloop.overload import overload_call, overload_log, overload_with_local_files |
| 21 | +from humanloop.overload import overload_client |
22 | 22 | from humanloop.decorators.flow import flow as flow_decorator_factory |
23 | 23 | from humanloop.decorators.prompt import prompt_decorator_factory |
24 | 24 | from humanloop.decorators.tool import tool_decorator_factory as tool_decorator_factory |
@@ -150,20 +150,14 @@ def __init__( |
150 | 150 |
|
151 | 151 | # Overload the .log method of the clients to be aware of Evaluation Context |
152 | 152 | # and the @flow decorator providing the trace_id |
153 | | - self.prompts = overload_log(client=self.prompts) |
154 | | - self.prompts = overload_call(client=self.prompts) |
155 | | - self.prompts = overload_with_local_files( # type: ignore [assignment] |
156 | | - client=self.prompts, |
157 | | - sync_client=self._sync_client, |
158 | | - use_local_files=self.use_local_files, |
| 153 | + self.prompts = overload_client( |
| 154 | + client=self.prompts, sync_client=self._sync_client, use_local_files=self.use_local_files |
159 | 155 | ) |
160 | | - self.agents = overload_with_local_files( # type: ignore [assignment] |
161 | | - client=self.agents, |
162 | | - sync_client=self._sync_client, |
163 | | - use_local_files=self.use_local_files, |
| 156 | + self.agents = overload_client( |
| 157 | + client=self.agents, sync_client=self._sync_client, use_local_files=self.use_local_files |
164 | 158 | ) |
165 | | - self.flows = overload_log(client=self.flows) |
166 | | - self.tools = overload_log(client=self.tools) |
| 159 | + self.flows = overload_client(client=self.flows) |
| 160 | + self.tools = overload_client(client=self.tools) |
167 | 161 |
|
168 | 162 | if opentelemetry_tracer_provider is not None: |
169 | 163 | self._tracer_provider = opentelemetry_tracer_provider |
|
0 commit comments