Runtime logging with transform messages confusion #2486
                  
                    
                      Nathan-Intergral
                    
                  
                
                  started this conversation in
                General
              
            Replies: 1 comment 14 replies
-
| runtime_logger should log the exact request sent to LLM. So it looks like the transformation is not applied to some of your agents. Can you post your code snippet? I suspect the transformation is not applied to the group chat select speaker messages. | 
Beta Was this translation helpful? Give feedback.
                  
                    14 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
Hey everyone,
I'm a bit puzzled and hope someone can shed some light on this. I've set up runtime logging in my group chat, which uses TransfromMessages to limit message tokens and history. Everything seems fine in the console and debug logs—the limits are being applied as they should. But when I check the runtime logs, it looks like the token count for each message keeps increasing. Upon closer inspection, it seems like every "request" field includes the whole chat history.
So now I'm questioning the accuracy of my logs. I'm not sure if the token counts and costs I'm getting from group_chat_manager.get_total_usage() are reliable or if they even match what's shown in the chat completion logs. Does anyone else see this happening? Am I missing something?
Is it known that the runtime logger doesnt take in to account your transforms?
Beta Was this translation helpful? Give feedback.
All reactions