Skip to content

Commit 3e8103a

Browse files
committed
removing erroneous changes
1 parent 54cda1c commit 3e8103a

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

docs/tracing.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ By default, the SDK traces the following:
3535
- Function tool calls are each wrapped in `function_span()`
3636
- Guardrails are wrapped in `guardrail_span()`
3737
- Handoffs are wrapped in `handoff_span()`
38+
- Audio inputs (speech-to-text) are wrapped in a `transcription_span()`
39+
- Audio outputs (text-to-speech) are wrapped in a `speech_span()`
40+
- Related audio spans may be parented under a `speech_group_span()`
3841

3942
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].
4043

@@ -76,7 +79,11 @@ Spans are automatically part of the current trace, and are nested under the near
7679

7780
## Sensitive data
7881

79-
Some spans track potentially sensitive data. For example, the `generation_span()` stores the inputs/outputs of the LLM generation, and `function_span()` stores the inputs/outputs of function calls. These may contain sensitive data, so you can disable capturing that data via [`RunConfig.trace_include_sensitive_data`][agents.run.RunConfig.trace_include_sensitive_data].
82+
Certain spans may capture potentially sensitive data.
83+
84+
The `generation_span()` stores the inputs/outputs of the LLM generation, and `function_span()` stores the inputs/outputs of function calls. These may contain sensitive data, so you can disable capturing that data via [`RunConfig.trace_include_sensitive_data`][agents.run.RunConfig.trace_include_sensitive_data].
85+
86+
Similarly, Audio spans include base64-encoded PCM data for input and output audio by default. You can disable capturing this audio data by configuring [`RunConfig.trace_include_sensitive_audio_data`][agents.run.RunConfig.trace_include_sensitive_audio_data].
8087

8188
## Custom tracing processors
8289

examples/basic/hello_world.py

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,12 @@
11
import asyncio
22

3-
from agents import Agent, Runner, ModelSettings, OpenAIResponsesModel
3+
from agents import Agent, Runner
44

55

66
async def main():
77
agent = Agent(
8-
name="English agent",
9-
instructions="You only speak English",
10-
model=OpenAIResponsesModel(
11-
model="gpt-4o",
12-
model_settings=ModelSettings(
13-
store=False,
14-
)
15-
)
8+
name="Assistant",
9+
instructions="You only respond in haikus.",
1610
)
1711

1812
result = await Runner.run(agent, "Tell me about recursion in programming.")
@@ -23,4 +17,4 @@ async def main():
2317

2418

2519
if __name__ == "__main__":
26-
asyncio.run(main())
20+
asyncio.run(main())

0 commit comments

Comments
 (0)