You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/v2/usage/sdk-reference.mdx
+5-1Lines changed: 5 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ Initializes the AgentOps SDK and automatically starts tracking your application.
25
25
-`default_tags` (List[str], optional): Default tags for the sessions that can be used for grouping or sorting later (e.g. ["GPT-4"]).
26
26
-`tags` (List[str], optional): [Deprecated] Use `default_tags` instead.
27
27
-`instrument_llm_calls` (bool, optional): Whether to instrument LLM calls automatically. Defaults to True.
28
-
-`auto_start_session` (bool, optional): Whether to start a session automatically when the client is created. Defaults to True.
28
+
-`auto_start_session` (bool, optional): Whether to start a session automatically when the client is created. Set to False if running in a Jupyter Notebook. Defaults to True.
29
29
-`auto_init` (bool, optional): Whether to automatically initialize the client on import. Defaults to True.
30
30
-`skip_auto_end_session` (bool, optional): Don't automatically end session based on your framework's decision-making. Defaults to False.
31
31
-`env_data_opt_out` (bool, optional): Whether to opt out of collecting environment data. Defaults to False.
@@ -109,6 +109,8 @@ These functions help you manage the lifecycle of tracking traces.
109
109
110
110
Starts a new AgentOps trace manually. This is useful when you've disabled automatic session creation or need multiple separate traces.
111
111
112
+
Manually managing traces is required when running in a Jupyter Notebook as there is no end state.
113
+
112
114
**Parameters**:
113
115
114
116
-`trace_name` (str, optional): Name for the trace. If not provided, a default name will be used.
0 commit comments