Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Added $ChatNotebookEvaluation and fixed some other minor misc issues #578

Merged
merged 7 commits into from
Jan 30, 2024

Conversation

rhennigan
Copy link
Member

Added $ChatNotebookEvaluation, which gives True when in a chat notebook evaluation and False otherwise. This lets you define alternate tool behavior for LLMTool, personas, etc depending on whether or not evaluation is happening in a chat notebook or programmatically.

For example, define an LLMTool that does something different in a chat notebook environment:

LLMTool["...", {...}, If[Wolfram`Chatbook`$ChatNotebookEvaluation, f[#], g[#]] &]

@rhennigan rhennigan merged commit 492e636 into main Jan 30, 2024
1 check passed
@rhennigan rhennigan deleted the bugfix/misc-minor-fixes branch January 30, 2024 01:27
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.

1 participant