diff --git a/agentops/partners/autogen_logger.py b/agentops/partners/autogen_logger.py index 9520801fa..4b6088a91 100644 --- a/agentops/partners/autogen_logger.py +++ b/agentops/partners/autogen_logger.py @@ -61,7 +61,7 @@ def log_chat_completion( # Note: Autogen tokens are not included in the request and function call tokens are not counted in the completion llm_event = LLMEvent( prompt=request["messages"], - completion=completion.message, + completion=completion.message.to_dict(), model=response.model, cost=cost, returns=completion.message.to_json(),