How to log metadata for Response

Hi, we are able to log the metadata for record in Trace, but unable to log metadata for Response.
Can anyone help share the guideline to log this?

Thank you!

1 Like

It should be as simple as “store:true” to essentially persist forever (it seems).

Then when making API calls, you use the parameter:

"metadata": {"mykey": "bananas"}

Then you can get bananas, B-A-N-A-N-A-S.

Except for them not being useful except in OpenAI’s own site.

Hi @_j

run_config = RunConfig(workflow_name='Flow', trace_metadata={'user_id': user_id}) result = Runner.run_streamed(agent, input=input_items, context=agent_context, run_config=run_config)

This is my configuration with the Agent SDK; however, it only updates the metadata in Trace and does not update the Response tab in the OpenAI dashboard. Do you have any advice?