Traceback (most recent call last):
File “C:\Users\perbso\AppData\Local\anaconda3\envs\crewai\lib\runpy.py”, line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File “C:\Users\perbso\AppData\Local\anaconda3\envs\crewai\lib\runpy.py”, line 86, in run_code
exec(code, run_globals)
File "\home.ansatt.ntnu.no\perbso\python\crewai\multimodal_book.venv\Scripts\kickoff.exe_main.py", line 8, in
sys.exit(kickoff())
File “\home.ansatt.ntnu.no\perbso\python\crewai\multimodal_book\src\multimodal_book\main.py”, line 120, in kickoff
poem_flow = BookFlow()
File “\home.ansatt.ntnu.no\perbso\python\crewai\multimodal_book.venv\lib\site-packages\crewai\flow\flow.py”, line 466, in init
self._state = self._create_initial_state()
File “\home.ansatt.ntnu.no\perbso\python\crewai\multimodal_book.venv\lib\site-packages\crewai\flow\flow.py”, line 534, in _create_initial_state
raise ValueError(“Flow state model must have an ‘id’ field”)
ValueError: Flow state model must have an ‘id’ field
An error occurred while running the flow: Command ‘[‘uv’, ‘run’, ‘kickoff’]’ returned non-zero exit status 1.
You need to pass an id
in the inputs when you kickoff() the flow.