Tracing while generating response #2172
|
Hi, Context Problem Question Ideally, I’d like a way to:
Any guidance or patterns for handling this scenario would be appreciated. |
Replies: 4 comments 1 reply
|
Daniel (@dast-draftwise) Going to convert this to a discussion since it a general question and not an actionable issue with our SDK. Will respond there |
Depending on how the agent is cancelled, we should still trace the user input, you can ensure all traces are flushed by using |
|
Thank you for the reply. |
|
Daniel (@dast-draftwise) You can pass a langsmith client into the |
Daniel (@dast-draftwise) You can pass a langsmith client into the
OpenAIAgentsTracingProcessordirectly, and then flush the client outside of the trace wrapper