feat(tools): Extend context chat tool#185
Open
marcelklehr wants to merge 1 commit into
Open
Conversation
with scope_type and scope_list params Assisted-by: ClaudeCode:claude-opus-4-8 Signed-off-by: Marcel Klehr <mklehr@gmx.net>
769d6cb to
9868f80
Compare
kyteinsky
reviewed
Jun 22, 2026
| :param scope_type: Optional. Restricts which documents the oracle searches. | ||
| - "none" (default): search across all of the user's documents. | ||
| - "source": restrict the search to specific items listed in scope_list. | ||
| - "provider": restrict the search to specific content providers listed in scope_list. |
There was a problem hiding this comment.
would be nice to also have a tool to fetch all the available providers in the instance like Assistant does.
https://github.com/nextcloud/assistant/blob/593856300e1d41a307908dbfcf073cad941af53b/src/components/ContextChat/ContextChatInputForm.vue#L327-L330
https://github.com/nextcloud/context_chat/blob/e0f60f031e6a2482893d5c76d767d23363aa9318/lib/Controller/ProviderController.php#L42
| This is often easier than searching for documents and then fetching their contents when trying to answer questions. | ||
| :param question: The question to ask | ||
| :param scope_type: Optional. Restricts which documents the oracle searches. | ||
| - "none" (default): search across all of the user's documents. |
There was a problem hiding this comment.
Suggested change
| - "none" (default): search across all of the user's documents. | |
| - "none" (default): search across all of the user's documents and content providers. |
| - "none" (default): search across all of the user's documents. | ||
| - "source": restrict the search to specific items listed in scope_list. | ||
| - "provider": restrict the search to specific content providers listed in scope_list. | ||
| :param scope_list: Required when scope_type is "source" or "provider"; ignored otherwise. |
There was a problem hiding this comment.
not sure if we should re-implement all the checks here for source and provider id format, and this one at line 28
it would be duplication of logic but would save a trip to context chat.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
with scope_type and scope_list params
🤖 AI (if applicable)