[BUG] triple backticks(```) are appended at the end of crew output responses

### Description

Versions: 
```
crewai==0.100.0
crewai-tools==0.33.0
```

I am working with a hierarchical crew developed using fastapi. The crew consists of a manager agent, few agents (with custom tools for every agent). The agent responses includes triple backticks (```) at the end of almost every response.

The agent responses that we observe are in the below format (includes backticks at the end) - 
```
   # Agent: <Agent_Name>
   ## Final Answer: 
    <agent_response>
    ```
```

The above behaviour is noticed whenever a crew that uses any sort of tool (custom defined tools, or manager agent delegating task using internal crewai tool) in my observation.

### Steps to Reproduce

Use `crewai==0.100.0` and `crewai-tools=0.33.0`

1. Create a basic crew with two agents. 
2. Use one of these agents as manager agent and keep the crew as hierarchical
3. Define a task for the crew. 
4. The task, agent goal, backstory definitions can be anything. The crew should just be able to generate an output after delegation. 
5. Run the crew for about 4-5 times and check the generated response. You should notice the triple backticks appended at the end of the crew output.  

### Expected behavior

The expected crew output is as below - 
```
   # Agent: <Agent_Name>
   ## Final Answer: 
    <agent_response>
```

without any backticks appended at the end of the final answer.

### Screenshots/Code snippets

I have a sample crew as below that generated responses attached ahead. 

```
manager = Agent(
    role="DeVops Manager",
    goal="Oversee and ensure task completion efficiently.",
    backstory="You are a strategic thinker, ensuring projects run smoothly.",
    verbose=True,
)
custom_agent = Agent(
    role="Data Processor",
    goal="Process and analyze data using available tools.",
    backstory="A highly skilled data analyst with expertise in automated processing.",
    verbose=True,
)
process_data_task = Task(
    description="Analyze the given query topic and provide insights on the topic.",
    expected_output="A well-structured analysis of the provided topic.",
    agent=custom_agent,
)
crew = Crew(
    agents=[custom_agent],
    tasks=[process_data_task],
    manager_agent=manager,
    process=Process.hierarchical,
)
```

![Image](https://github.com/user-attachments/assets/42aae187-5e9b-4c80-97cd-b393e9a4085d)

![Image](https://github.com/user-attachments/assets/7e3aeaf4-c4e9-4f22-a802-4812fe012d2b)

### Operating System

macOS Sonoma

### Python Version

3.12

### crewAI Version

0.100.0

### crewAI Tools Version

0.33.0

### Virtual Environment

Venv

### Evidence


![Image](https://github.com/user-attachments/assets/42aae187-5e9b-4c80-97cd-b393e9a4085d)

![Image](https://github.com/user-attachments/assets/147c243a-d92a-4389-a7da-a687861b5016)

### Possible Solution

None as of now. (would be happy to contribute once I have a solution)

### Additional context

- We noticed this bug since we started using crewai version `0.98.0`. We don't see the bug in version `0.95.0`. 
- The bug seems to be reproducing when tools (whether custom defined or internal tools that manager agent uses) are getting used. This is just an observation, could be possible that the bug is present in other cases as well. 

Labels: bug
State: closed