def save_temporary_memory(messages: list, agent_id: str) -> None:
    """
    Save messages for a specific agent ID in temporary memory.
    
    Args:
        messages: List of messages to store
        agent_id: Unique identifier for the agent
    """
    # Serialize messages using pickle and base64 encode for storage
    serialized_messages = base64.b64encode(pickle.dumps(messages)).decode('utf-8')
    Configuration.set(f"temp_memory_{agent_id}", serialized_messages)

    Save messages for a specific agent ID in temporary memory.
    
    Args:
        messages: List of messages to store
        agent_id: Unique identifier for the agent
    
src/upsonic/server/level_utilized/memory.py