Log tools sent to OpenAI (#122024)

This commit is contained in:
HarvsG 2024-07-16 14:16:50 +01:00 committed by GitHub
parent f8ba4d41ba
commit 3a0b3a4589
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -223,6 +223,7 @@ class OpenAIConversationEntity(
]
LOGGER.debug("Prompt: %s", messages)
LOGGER.debug("Tools: %s", tools)
trace.async_conversation_trace_append(
trace.ConversationTraceEventType.AGENT_DETAIL, {"messages": messages}
)