In an agent-based workspace, create an agent once before sending traces. Use agent addressing to select its identifier and environment. If an integration requires
project_name, use the selected environment’s tracer_session_name as a compatibility value.langsmith.wrappers.wrap_openai
instructor:
instructor as you normally would, but now everything is logged to LangSmith!
instructor inside of other functions.
You can get nested traces by using this wrapped client and decorating those functions with @traceable.
Please see Custom instrumentation for more information on how to annotate your code for tracing with the @traceable decorator.
Connect these docs to your agent of choice via MCP for real-time answers.

