Skip to content

Conversation

@evalstate
Copy link
Collaborator

No description provided.

…alse

The dynamic_space tool with INVOKE operation requires direct_response=false
to enable streaming/progress notifications. However, isGradioTool() wasn't
recognizing 'dynamic_space' as a Gradio tool, causing directResponse to be
incorrectly set to true.

Changes:
- Added DYNAMIC_SPACE_TOOL_CONFIG.name check to isGradioTool()
- Updated function documentation and examples
- Added test case for dynamic_space and gradio_files tools

This ensures INVOKE operations on dynamic_space will properly use
direct_response=false for streaming support.
gradio_files is a normal tool and doesn't need special streaming handling,
so it should not be treated as a Gradio tool in isGradioTool().

Only dynamic_space and the gr<number>_/grp<number>_ pattern tools need
direct_response=false for streaming support.
@evalstate evalstate merged commit 6c63fca into main Nov 11, 2025
3 checks passed
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

Successfully merging this pull request may close these issues.

3 participants