Skip to content

feat(tools): Extend context chat tool#185

Open
marcelklehr wants to merge 1 commit into
mainfrom
fix/context-chat-tool
Open

feat(tools): Extend context chat tool#185
marcelklehr wants to merge 1 commit into
mainfrom
fix/context-chat-tool

Conversation

@marcelklehr

Copy link
Copy Markdown
Member

with scope_type and scope_list params

🤖 AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@marcelklehr marcelklehr requested a review from janepie June 16, 2026 08:20
with scope_type and scope_list params

Assisted-by: ClaudeCode:claude-opus-4-8
Signed-off-by: Marcel Klehr <mklehr@gmx.net>
@marcelklehr marcelklehr force-pushed the fix/context-chat-tool branch from 769d6cb to 9868f80 Compare June 17, 2026 08:45
: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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

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.

2 participants