We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 900c976 commit 63c95daCopy full SHA for 63c95da
lib/subscribers/langchain/runnable.js
@@ -71,7 +71,7 @@ class LangchainRunnableSubscriber extends AiMonitoringChatSubscriber {
71
if (response || response === '') {
72
// Add the response if it is NOT an outgoing
73
// tool call with no result yet
74
- if (!(response.content === '' && response?.tool_calls?.length > 0)) {
+ if (!(response?.content === '' && response?.tool_calls?.length > 0)) {
75
messages.push(response)
76
}
77
0 commit comments