Commit Graph

6 Commits

Author SHA1 Message Date
Devin AI
dd1b812a7f Improve code quality with better import sorting and test organization
Co-Authored-By: Joe Moura <joao@crewai.com>
2025-03-12 13:27:10 +00:00
Devin AI
8ce05791d9 Refactor Flow class to improve code quality
Co-Authored-By: Joe Moura <joao@crewai.com>
2025-03-12 13:25:23 +00:00
Devin AI
7925a6d507 Fix linting issues in test file
Co-Authored-By: Joe Moura <joao@crewai.com>
2025-03-12 13:23:09 +00:00
Devin AI
1145f68d91 Fix issue #2347: Process tools with result_as_answer=True in Flow mode
Co-Authored-By: Joe Moura <joao@crewai.com>
2025-03-12 13:21:16 +00:00
Vini Brasil
ba66910fbd Implement flow.state_utils.to_string method and improve types (#2161) 2025-02-19 10:12:51 -05:00
Vini Brasil
b6d668fc66 Implement Flow state export method (#2134)
This commit implements a method for exporting the state of a flow into a
JSON-serializable dictionary.

The idea is producing a human-readable version of state that can be
inspected or consumed by other systems, hence JSON and not pickling or
marshalling.

I consider it an export because it's a one-way process, meaning it
cannot be loaded back into Python because of complex types.
2025-02-18 08:47:01 -05:00