Commit 93ccfac
feat: stream_tool_updates option to show tool calls in playground chat (langflow-ai#10928)
* feat: add stream_tool_updates option to show tool calls in playground chat
- Add stream_tool_updates boolean input to agent configuration
- Make stream_tool_updates a keyword-only parameter in event handlers
- Update event processing to support real-time tool invocation visibility
- Add comprehensive unit tests for stream_tool_updates functionality
- Fix linting issues (line length, boolean arguments, whitespace)
* Fix AsyncMock lambda parameters in stream_tool_updates tests
- Changed lambda parameters from 'skip_db_update' to '**_kwargs'
- Fixes TypeError where handlers pass 'skip_db_update' but lambda expected different name
- Using underscore prefix to indicate intentionally unused parameter
- Affects 6 tests: test_handle_on_tool_start_with_stream_tool_updates_true/false,
test_handle_on_tool_end_with_stream_tool_updates,
test_handle_on_tool_error_with_stream_tool_updates,
test_process_agent_events_with_stream_tool_updates (2 instances),
test_handle_on_tool_start_keyword_only_parameter
- Addresses CodeRabbitAI feedback on PR
* Apply CodeRabbitAI recommendation for AsyncMock lambda parameters
- Use explicit 'skip_db_update=False' parameter instead of **_kwargs
- Add '# noqa: ARG005, FBT002' to suppress linter warnings
- ARG005: Unused lambda argument
- FBT002: Boolean default value in function definition
- Matches actual parameter name passed by event handlers
- Affects 6 tests in test_agent_events.py
- Follows CodeRabbitAI's recommended pattern for test mocks
* Rebuilt component index
* [autofix.ci] apply automated fixes
* [autofix.ci] apply automated fixes (attempt 2/3)
* [autofix.ci] apply automated fixes (attempt 3/3)
* Add component index
* [autofix.ci] apply automated fixes
* Update component index
* [autofix.ci] apply automated fixes
* [autofix.ci] apply automated fixes (attempt 2/3)
* [autofix.ci] apply automated fixes (attempt 3/3)
* chore: trigger build
* [autofix.ci] apply automated fixes
* chore: trigger build
* [autofix.ci] apply automated fixes
* [autofix.ci] apply automated fixes (attempt 2/3)
* Fix message serialization to correctly include content blocks before sending event
* skip db update on tool error
* revert events changes
* revert agent changes
* revert agent changes
* revert starter projcets
* starter / comp index updates
* [autofix.ci] apply automated fixes
* [autofix.ci] apply automated fixes (attempt 2/3)
* chore: trigger build
---------
Co-authored-by: Steve Haertel <shaertel@ca.ibm.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Jordan Frazier <jordan.frazier@datastax.com>1 parent 637f653 commit 93ccfac
1 file changed
Lines changed: 10 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1666 | 1666 | | |
1667 | 1667 | | |
1668 | 1668 | | |
| 1669 | + | |
1669 | 1670 | | |
1670 | 1671 | | |
1671 | 1672 | | |
| |||
1721 | 1722 | | |
1722 | 1723 | | |
1723 | 1724 | | |
1724 | | - | |
1725 | | - | |
1726 | | - | |
| 1725 | + | |
| 1726 | + | |
| 1727 | + | |
| 1728 | + | |
| 1729 | + | |
| 1730 | + | |
| 1731 | + | |
| 1732 | + | |
| 1733 | + | |
1727 | 1734 | | |
1728 | 1735 | | |
1729 | 1736 | | |
| |||
0 commit comments