Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No saving of state in book flow examples #202

Open
pranjalrajput opened this issue Dec 11, 2024 · 0 comments
Open

No saving of state in book flow examples #202

pranjalrajput opened this issue Dec 11, 2024 · 0 comments

Comments

@pranjalrajput
Copy link

I genuinely hope that you guys stop drumming up excitement about these examples.
They dont seem to have any way of pausing/recovering from any errors after the flow is kicked off.
I naively ran the example with o1-preview model and the flow failed at last step. The API bill was $25 and nothing to show for it, except logs.
I have been weighing all the agentic frameworks. I know I am not going ahead with this one.
Going by the book example, CrewAI doesnt seem have the ability to persist state, or recover a flow from failed/interrupted state, set budget/billing limits etc.

PS: the error in book example

[Flow._execute_single_listener] Error in method write_chapters: "Key 'title' not found in CrewOutput." Traceback (most recent call last): File "/Users/pr/crewai/write_a_book_with_flows/.venv/lib/python3.12/site-packages/crewai/flow/flow.py", line 368, in _execute_single_listener listener_result = await self._execute_method(listener_name, method) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/pr/crewai/write_a_book_with_flows/.venv/lib/python3.12/site-packages/crewai/flow/flow.py", line 304, in _execute_method await method(*args, **kwargs) File "/Users/pr/crewai/write_a_book_with_flows/src/write_a_book_with_flows/main.py", line 91, in write_chapters chapters = await asyncio.gather(*tasks) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/Users/pr/crewai/write_a_book_with_flows/src/write_a_book_with_flows/main.py", line 78, in write_single_chapter title = output["title"] ~~~~~~^^^^^^^^^ File "/Users/pr/crewai/write_a_book_with_flows/.venv/lib/python3.12/site-packages/crewai/crews/crew_output.py", line 50, in __getitem__ raise KeyError(f"Key '{key}' not found in CrewOutput.") KeyError: "Key 'title' not found in CrewOutput."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant