3
3
4
4
from literalai .api import AsyncLiteralAPI , LiteralAPI
5
5
from literalai .callback .langchain_callback import get_langchain_callback
6
- from literalai .context import active_steps_var , active_thread_var , active_root_run_var
6
+ from literalai .context import active_root_run_var , active_steps_var , active_thread_var
7
7
from literalai .environment import EnvContextManager , env_decorator
8
- from literalai .event_processor import EventProcessor
9
8
from literalai .evaluation .experiment_item_run import (
10
9
ExperimentItemRunContextManager ,
11
10
experiment_item_run_decorator ,
12
11
)
12
+ from literalai .event_processor import EventProcessor
13
13
from literalai .instrumentation .mistralai import instrument_mistralai
14
14
from literalai .instrumentation .openai import instrument_openai
15
- from literalai .observability .message import Message
16
15
from literalai .my_types import Environment
16
+ from literalai .observability .message import Message
17
17
from literalai .observability .step import (
18
+ Attachment ,
18
19
MessageStepType ,
19
20
Step ,
20
21
StepContextManager ,
21
22
TrueStepType ,
22
23
step_decorator ,
23
- Attachment ,
24
24
)
25
25
from literalai .observability .thread import ThreadContextManager , thread_decorator
26
-
27
26
from literalai .requirements import check_all_requirements
28
27
29
28
@@ -204,6 +203,7 @@ def run(
204
203
parent_id : Optional [str ] = None ,
205
204
thread_id : Optional [str ] = None ,
206
205
root_run_id : Optional [str ] = None ,
206
+ ** kwargs ,
207
207
):
208
208
return self .step (
209
209
original_function = original_function ,
@@ -213,6 +213,7 @@ def run(
213
213
parent_id = parent_id ,
214
214
thread_id = thread_id ,
215
215
root_run_id = root_run_id ,
216
+ ** kwargs ,
216
217
)
217
218
218
219
def message (
0 commit comments