Repository navigation
feat(agent): add Querit Agent tool UI - #4
Merged
Merged
Conversation
ethan7zhanghx
marked this pull request as ready for review
July 28, 2026 02:52
ethan7zhanghx
pushed a commit
that referenced
this pull request
Aug 7, 2026
…17937) Collapses three duplicated/dead code smells in the canvas debug-result path of `internal/ingestion/task` (remaining findings #2/#3/#4 from the package CTO review): - **#2 — vector-key stripping duplication.** `isVectorKey` (the full stripper: fixed legacy keys `vector`/`embedding`/`feature`/`q_vec` plus the `q_<dim>_vec` pattern) was re-implemented as a weaker inline copy in the golden-compare tool (`tool/compare_pipeline_golden.go`) that only matched `q_<dim>_vec` and let real vectors leak into the diff. Exported as `IsVectorKey` and reused by the tool. - **#3 — near-duplicate deep copy.** `deepCopy` and `deepCopyStrip` were identical walkers differing only in vector stripping. Parameterized `deepCopy(v any, stripVector bool) any` and deleted `deepCopyStrip`. - **#4 — redundant switch.** `lookupComponentOutput` had two switch cases with identical bodies (both the `map[string]map[string]any` and `map[string]any` state shapes). Unified into a single `found`/`ok` resolution; nested-state and flat-fallback semantics unchanged.
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.
Summary
Add Querit as an embedded Agent search tool, reuse the Canvas field contract, redact API keys from exported DSL, and display Querit consistently in Agent menus, nodes, and timelines.
The official Querit transparent PNG logo from the provided brand package is included and verified at the actual Agent UI icon sizes.
What changed
QueritSearchin the Agent Search Tools menu and embedded tool-form map.queryfield; the Agent model/runtime supplies the query.queryandoutputs.QueritSearchandquerit_searchtool names toOperator.QueritSearch.Agent field contract
api_keystringcount1numberchunks_per_doc1to3numbersite_includestring[]site_excludestring[]time_rangestringcountry_includestring[]country_excludestring[]language_includestring[]language_excludestring[]queryis deliberately absent from the Agent form and persisted defaults because it is supplied dynamically by the Agent runtime.outputsis also not persisted by the Agent UI.Validation performed
git diff --check: passed.Known validation boundaries
tool-command.tsx:113.