pydantic_core._pydantic_core.ValidationError

Hi,
My App’s Link: ai-trip-planner
App’s public GitHub repository link: GitHub Link

────────────────────── Traceback (most recent call last) ───────────────────────

  /home/adminuser/venv/lib/python3.11/site-packages/streamlit/runtime/scriptru  

  nner/script_runner.py:600 in _run_script                                      

                                                                                

  /mount/src/trip-planner-from-scratch/streamlit_app.py:41 in <module>          

                                                                                

    38 │   │   │   #inputs = f"Research Topic: {topic}\nOrigin: {origin}\City:  

    39 │   │   │   # inputs = {topic, origin, cities, date_range, interests}    

    40 │   │   │   research_crew = TripCrew(origin, cities, date_range, intere  

  ❱ 41 │   │   │   result = research_crew.run()                                 

    42 │   │   │   st.subheader("Here is you Trip Plan:")                       

    43 │   │   │   st.write(result)                                             

    44                                                                          

                                                                                

  /mount/src/trip-planner-from-scratch/main.py:28 in run                        

                                                                                

    25 │   │   local_tour_guide = agents.local_tour_guide()                     

    26 │   │                                                                    

    27 │   │   # Custom tasks include agent name and variables as input         

  ❱ 28 │   │   plan_itinerary = tasks.plan_itinerary(                           

    29 │   │   │   expert_travel_agent,                                         

    30 │   │   │   self.cities,                                                 

    31 │   │   │   self.date_range,                                             

                                                                                

  /mount/src/trip-planner-from-scratch/tasks.py:52 in plan_itinerary            

                                                                                

     49 │   │   return "If you do your BEST WORK, I'll give you a $10,000 comm  

     50 │                                                                       

     51 │   def plan_itinerary(self, agent, city, travel_dates, interests):     

  ❱  52 │   │   return Task(                                                    

     53 │   │   │   description=dedent(                                         

     54 │   │   │   │   f"""                                                    

     55 │   │   │   **Task**: Develop a 7-Day Travel Itinerary                  

                                                                                

  /home/adminuser/venv/lib/python3.11/site-packages/crewai/task.py:117 in       

  __init__                                                                      

                                                                                

    114 │                                                                       

    115 │   def __init__(__pydantic_self__, **data):                            

    116 │   │   config = data.pop("config", {})                                 

  ❱ 117 │   │   super().__init__(**config, **data)                              

    118 │                                                                       

    119 │   @field_validator("id", mode="before")                               

    120 │   @classmethod                                                        

                                                                                

  /home/adminuser/venv/lib/python3.11/site-packages/pydantic/main.py:193 in     

  __init__                                                                      

                                                                                

     190 │   │   """                                                            

     191 │   │   # `__tracebackhide__` tells pytest and some other tools to om  

     192 │   │   __tracebackhide__ = True                                       

  ❱  193 │   │   self.__pydantic_validator__.validate_python(data, self_instan  

     194 │                                                                      

     195 │   # The following line sets a flag that we use to determine when `_  

     196 │   __init__.__pydantic_base_init__ = True  # pyright: ignore[reportF  

────────────────────────────────────────────────────────────────────────────────

ValidationError: 1 validation error for Task

expected_output

  Field required [type=missing, input_value={'description': "\n**Task...ng 

travel iteneraries.)}, input_type=dict]

    For further information visit https://errors.pydantic.dev/2.8/v/missing

Streamlit Version = 1.35.0
Python Version = 3.11

Please guide I am getting this issue on my streamlit app but when I run it locally it is running fine.