Hi,
I am using Gemni model gemini-1.5-flash to run the example suprise trip.
I got the error below.
'
[2024-07-15 18:47:54][DEBUG]: == Working Agent: Activity Planner
[2024-07-15 18:47:54][INFO]: == Starting Task: Research and find cool things to do at New York, JFK. Focus on activities and events that match the traveler's interests and age group. Utilize internet search tools and recommendation engines to gather the information.
Traveler's information:
origin: São Paulo, GRU
destination: New York, JFK
age of the traveler: 31
hotel localtion: Brooklyn
flight infromation: GOL 1234, leaving at June 30th, 2024, 10:00
how long is the trip: 14 days
Entering new CrewAgentExecutor chain...
Traceback (most recent call last):
File "/Users/alaaalbarazi/Library/CloudStorage/GoogleDrive-alaabarazi@gmail.com/My Drive/Projects/Python_Projects/crewai/surprise_trip/src/surprise_travel/main.py", line 38, in
run()
File "/Users/alaaalbarazi/Library/CloudStorage/GoogleDrive-alaabarazi@gmail.com/My Drive/Projects/Python_Projects/crewai/surprise_trip/src/surprise_travel/main.py", line 15, in run
result = SurpriseTravelCrew().crew().kickoff(inputs=inputs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/alaaalbarazi/Library/Caches/pypoetry/virtualenvs/crewai_playground-IRQHd8YZ-py3.11/lib/python3.11/site-packages/crewai/crew.py", line 346, in kickoff
result = self._run_sequential_process()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/alaaalbarazi/Library/Caches/pypoetry/virtualenvs/crewai_playground-IRQHd8YZ-py3.11/lib/python3.11/site-packages/crewai/crew.py", line 446, in _run_sequential_process
output = task.execute(context=task_output)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/alaaalbarazi/Library/Caches/pypoetry/virtualenvs/crewai_playground-IRQHd8YZ-py3.11/lib/python3.11/site-packages/crewai/task.py", line 217, in execute
result = self._execute(
^^^^^^^^^^^^^^
File "/Users/alaaalbarazi/Library/Caches/pypoetry/virtualenvs/crewai_playground-IRQHd8YZ-py3.11/lib/python3.11/site-packages/crewai/task.py", line 226, in _execute
result = agent.execute_task(
^^^^^^^^^^^^^^^^^^^
File "/Users/alaaalbarazi/Library/Caches/pypoetry/virtualenvs/crewai_playground-IRQHd8YZ-py3.11/lib/python3.11/site-packages/crewai/agent.py", line 185, in execute_task
result = self.agent_executor.invoke(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/alaaalbarazi/Library/Caches/pypoetry/virtualenvs/crewai_playground-IRQHd8YZ-py3.11/lib/python3.11/site-packages/langchain/chains/base.py", line 166, in invoke
raise e
File "/Users/alaaalbarazi/Library/Caches/pypoetry/virtualenvs/crewai_playground-IRQHd8YZ-py3.11/lib/python3.11/site-packages/langchain/chains/base.py", line 156, in invoke
self._call(inputs, run_manager=run_manager)
File "/Users/alaaalbarazi/Library/Caches/pypoetry/virtualenvs/crewai_playground-IRQHd8YZ-py3.11/lib/python3.11/site-packages/crewai/agents/executor.py", line 80, in _call
next_step_output = self._take_next_step(
^^^^^^^^^^^^^^^^^^^^^
File "/Users/alaaalbarazi/Library/Caches/pypoetry/virtualenvs/crewai_playground-IRQHd8YZ-py3.11/lib/python3.11/site-packages/langchain/agents/agent.py", line 1342, in _take_next_step
[
File "/Users/alaaalbarazi/Library/Caches/pypoetry/virtualenvs/crewai_playground-IRQHd8YZ-py3.11/lib/python3.11/site-packages/langchain/agents/agent.py", line 1342, in
[
File "/Users/alaaalbarazi/Library/Caches/pypoetry/virtualenvs/crewai_playground-IRQHd8YZ-py3.11/lib/python3.11/site-packages/crewai/agents/executor.py", line 144, in _iter_next_step
output = self.agent.plan( # type: ignore # Incompatible types in assignment (expression has type "AgentAction | AgentFinish | list[AgentAction]", variable has type "AgentAction")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/alaaalbarazi/Library/Caches/pypoetry/virtualenvs/crewai_playground-IRQHd8YZ-py3.11/lib/python3.11/site-packages/langchain/agents/agent.py", line 463, in plan
for chunk in self.runnable.stream(inputs, config={"callbacks": callbacks}):
File "/Users/alaaalbarazi/Library/Caches/pypoetry/virtualenvs/crewai_playground-IRQHd8YZ-py3.11/lib/python3.11/site-packages/langchain_core/runnables/base.py", line 3174, in stream
yield from self.transform(iter([input]), config, kwargs)
File "/Users/alaaalbarazi/Library/Caches/pypoetry/virtualenvs/crewai_playground-IRQHd8YZ-py3.11/lib/python3.11/site-packages/langchain_core/runnables/base.py", line 3161, in transform
yield from self._transform_stream_with_config(
File "/Users/alaaalbarazi/Library/Caches/pypoetry/virtualenvs/crewai_playground-IRQHd8YZ-py3.11/lib/python3.11/site-packages/langchain_core/runnables/base.py", line 2003, in _transform_stream_with_config
chunk: Output = context.run(next, iterator) # type: ignore
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/alaaalbarazi/Library/Caches/pypoetry/virtualenvs/crewai_playground-IRQHd8YZ-py3.11/lib/python3.11/site-packages/langchain_core/runnables/base.py", line 3123, in _transform
for output in final_pipeline:
File "/Users/alaaalbarazi/Library/Caches/pypoetry/virtualenvs/crewai_playground-IRQHd8YZ-py3.11/lib/python3.11/site-packages/langchain_core/runnables/base.py", line 1221, in transform
for ichunk in input:
File "/Users/alaaalbarazi/Library/Caches/pypoetry/virtualenvs/crewai_playground-IRQHd8YZ-py3.11/lib/python3.11/site-packages/langchain_core/runnables/base.py", line 5185, in transform
yield from self.bound.transform(
File "/Users/alaaalbarazi/Library/Caches/pypoetry/virtualenvs/crewai_playground-IRQHd8YZ-py3.11/lib/python3.11/site-packages/langchain_core/runnables/base.py", line 1239, in transform
yield from self.stream(final, config, kwargs)
File "/Users/alaaalbarazi/Library/Caches/pypoetry/virtualenvs/crewai_playground-IRQHd8YZ-py3.11/lib/python3.11/site-packages/langchain_core/language_models/chat_models.py", line 360, in stream
raise e
File "/Users/alaaalbarazi/Library/Caches/pypoetry/virtualenvs/crewai_playground-IRQHd8YZ-py3.11/lib/python3.11/site-packages/langchain_core/language_models/chat_models.py", line 340, in stream
for chunk in self._stream(messages, stop=stop, **kwargs):
File "/Users/alaaalbarazi/Library/Caches/pypoetry/virtualenvs/crewai_playground-IRQHd8YZ-py3.11/lib/python3.11/site-packages/langchain_google_genai/chat_models.py", line 839, in _stream
for chunk in response:
TypeError: 'NoneType' object is not iterable
'
poetry.toml
[tool.poetry]
name = "crewai playground"
version = "0.1.0"
description = ""
authors = ["AlABarazi alaabarazi@gmail.com"]
readme = "README.md"
Hi, I am using Gemni model gemini-1.5-flash to run the example suprise trip.
I got the error below.
' [2024-07-15 18:47:54][DEBUG]: == Working Agent: Activity Planner
[2024-07-15 18:47:54][INFO]: == Starting Task: Research and find cool things to do at New York, JFK. Focus on activities and events that match the traveler's interests and age group. Utilize internet search tools and recommendation engines to gather the information.
Traveler's information:
poetry.toml [tool.poetry] name = "crewai playground" version = "0.1.0" description = "" authors = ["AlABarazi alaabarazi@gmail.com"] readme = "README.md"
[tool.poetry.dependencies] python = ">=3.11,<=3.13" crewai = "" langchain-core = ">=0.2.17,<0.3" langchain-anthropic = "0.1.20" poetry = "" pipenv-poetry-migrate = "*" crewai-tools = "^0.4.8" langchain-groq = "^0.1.6" langchain-google-genai = "^1.0.7"
[tool.poetry.group.dev.dependencies]
[build-system] requires = ["poetry-core"] build-backend = "poetry.core.masonry.api"
It seems that this model was tested only with gpt model?