def METHOD_NAME(cls, file_name: str, agent: Agent, agent_execution: AgentExecution):
    """Get agent resource path to write files
    Args:
        file_name (str): The name of the file.
        agent (Agent): The unique identifier of the agent.
        agent_execution (AgentExecution): The unique identifier of the agent.
    """
    root_dir = ResourceHelper.get_root_output_dir()
    if agent is not None and "{agent_id}" in root_dir:
        root_dir = ResourceHelper.get_formatted_agent_level_path(agent, root_dir)
        if agent_execution is not None and "{agent_execution_id}" in root_dir:
            root_dir = ResourceHelper.get_formatted_agent_execution_level_path(agent_execution, root_dir)
        directory = os.path.dirname(root_dir)
        os.makedirs(directory, exist_ok=True)
    final_path = root_dir + file_name
    return final_path