feat(flo-ai): native file support and add enum#278
Conversation
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis PR introduces profiling instrumentation, refactors agent and workflow execution to enable concurrent document formatting, adds support for an Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
|
||
| path = Path(log_file).resolve() | ||
| path.parent.mkdir(parents=True, exist_ok=True) | ||
| _file_handle = open(path, 'w', buffering=1, encoding='utf-8') |
|
|
||
|
|
||
| _enabled: bool = False | ||
| _log_path: Optional[Path] = None |
| path = Path(log_file).resolve() | ||
| path.parent.mkdir(parents=True, exist_ok=True) | ||
| _file_handle = open(path, 'w', buffering=1, encoding='utf-8') | ||
| _log_path = path |
| except Exception: | ||
| pass | ||
| _file_handle = None | ||
| _log_path = None |
| try: | ||
| _file_handle.flush() | ||
| _file_handle.close() | ||
| except Exception: |
| from flo_ai.utils.logger import logger # late import to avoid cycles | ||
|
|
||
| logger.info('profile | %s', line) | ||
| except Exception: |
| ) | ||
| try: | ||
| _file_handle.flush() | ||
| except Exception: |
| enable_profiling( | ||
| _env_path, mirror_console=_truthy(os.environ.get('FLO_AI_PROFILE_CONSOLE')) | ||
| ) | ||
| except Exception: |
* fix(floware): get input from kwargs * fix(flo-ai): use native pdf capability of llms * feat(flo-ai): add profiler * feat(flo-ai): add enum support in parser
Summary by CodeRabbit
Release Notes
New Features
Improvements
Dependencies