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/tracing.md
+12-20Lines changed: 12 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ By default, the SDK traces the following:
39
39
- Audio outputs (text-to-speech) are wrapped in a `speech_span()`
40
40
- Related audio spans may be parented under a `speech_group_span()`
41
41
42
-
By default, the trace is named "Agent trace". You can set this name if you use `trace`, or you can can configure the name and other properties with the [`RunConfig`][agents.run.RunConfig].
42
+
By default, the trace is named "Agent workflow". You can set this name if you use `trace`, or you can configure the name and other properties with the [`RunConfig`][agents.run.RunConfig].
43
43
44
44
In addition, you can set up [custom trace processors](#custom-tracing-processors) to push traces to other destinations (as a replacement, or secondary destination).
45
45
@@ -98,37 +98,28 @@ To customize this default setup, to send traces to alternative or additional bac
98
98
2.[`set_trace_processors()`][agents.tracing.set_trace_processors] lets you **replace** the default processors with your own trace processors. This means traces will not be sent to the OpenAI backend unless you include a `TracingProcessor` that does so.
99
99
100
100
101
-
## Tracing with Non-OpenAI LLMs
101
+
## Tracing with Non-OpenAI Models
102
102
103
-
You can use an OpenAI API key with non-OpenAI LLMs to enable free tracing on the Openai Traces dashboard without disabling tracing.
103
+
You can use an OpenAI API key with non-OpenAI Models to enable free tracing in the OpenAI Traces dashboard without needing to disable tracing.
104
104
105
105
```python
106
-
from agents import set_tracing_export_api_key, Agent, Runner, AsyncOpenAI, OpenAIChatCompletionsModel
107
-
from dotenv import load_dotenv
108
-
load_dotenv()
109
-
import os
106
+
from agents import set_tracing_export_api_key, Agent, Runner
107
+
from agents.extensions.models.litellm_model import LitellmModel
0 commit comments