OpenAI Agent SDK + LangSmith Integration

You can set metadata and tags directly on the OpenAIAgentsTracingProcessor

session_metadata = {"session_id": <session_id>, "user_id": <user_id>}

if __name__ == "__main__":

    set_trace_processors([OpenAIAgentsTracingProcessor(metadata=session_metadata, tags=["agent", "openai", "production"])])
    asyncio.run(main())

Additionally project_name and name are also configurable