fix(knowledge): expose create document ID output - #7278
Open
BillLeoutsakosvl346 wants to merge 2 commits into
Open
fix(knowledge): expose create document ID output#7278BillLeoutsakosvl346 wants to merge 2 commits into
BillLeoutsakosvl346 wants to merge 2 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub. |
Contributor
Greptile SummaryThis PR restores the declared top-level document ID in the Knowledge Create Document response while preserving the nested compatibility path.
Confidence Score: 5/5The PR appears safe to merge, with the response implementation, type, and tests consistently exposing the document ID through both supported paths. The change aligns runtime output with the existing declared schema, preserves the prior nested field and fallback behavior, and introduces no accepted correctness or security issue.
|
| Filename | Overview |
|---|---|
| apps/sim/tools/knowledge/create_document.ts | Reuses one identifier derivation for the newly restored top-level output and the existing nested output without changing fallback behavior. |
| apps/sim/tools/knowledge/types.ts | Aligns the response interface with the declared and returned top-level documentId field. |
| apps/sim/tools/knowledge/knowledge.test.ts | Covers identifier compatibility and omission of empty document-tag request and provenance data. |
| apps/sim/tools/schema-enrichers.test.ts | Adds an assertion that knowledge bases without tag definitions produce no enriched tag schema. |
Reviews (1): Last reviewed commit: "fix(knowledge): expose create document I..." | Re-trigger Greptile
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
注册 for free
to join this conversation on GitHub.
Already have an account?
登录 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
Type of Change
Testing
Reviewer focus:
Checklist
Screenshots/Videos
Not applicable; this is a tool response-shape fix with no UI changes.