Skip to content

trace_include_sensitive_data=False does not apply to agents as tools #1492

@panilya

Description

@panilya

Question

I have a system with

Runner.run_streamed(
   ....
   run_config=RunConfig(tracing_disabled=False, trace_include_sensitive_data=False)
)

which, according to the documentation shouldn't add input/output of my agents-as-a-tools. Correct?

Whether we include potentially sensitive data (for example: inputs/outputs of tool calls or LLM generations) in traces. If False, we'll still create spans for these events, but the sensitive data will not be included.
Source: https://openai.github.io/openai-agents-python/ref/run#agents.run.RunConfig.trace_include_sensitive_data

I'm asking this, because now, with enabled tracing and disabled logging of sensitive data I can see the system prompt, provided input and generated output of my agent-as-tool.

Please see the screenshots:

Image Image

With trace_include_sensitive_data=False I would expect to do NOT include inputs/outputs of my agents-as-a-tools.

So, my question is: is it the expected behavior?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions