You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Assistant: disable tools in invalid contexts (#8603)
### Summary
- addresses #8078
- inspectVariables: now filtered out when no variables in session
- getPlot: now filtered out if no session or no current plot
- getTableSummary: now filtered out if no session and no variables in
session
- projectTreeTool: filtering already covered in
#8264
### Release Notes
#### New Features
- Assistant: tools are now disabled if the context doesn't include the
info needed for the tool (#8078)
### QA Notes
@:assistant
#### test cases
| tool | enabled when | disabled when |
|--------|--------|--------|
| inspectVariables | session(s) exist and at least 1 variable is defined
| no sessions; or sessions exist but no variables defined |
| getPlot | session(s) exist and there is a plot currently visible | no
sessions; or sessions exist but no plot visible |
| getTableSummary | for now, only when Python session(s) exist (this
tool is not yet implemented for R
#8343) and at least 1
variable is defined | for now, if no sessions or if only R sessions
exist; or Python sessions exist but no variables defined |
#### how to check
- try to invoke the disabled tool via chat and notice that the tool
cannot be called; or
- check the Output pane for Assistant with log level Debug or Trace for
the message with `[tools] Available tools for participant`
- if the tool is not in the list, it is disabled/filtered out
0 commit comments