Rename Collection content item to Knowledge - #5494
Conversation
🚫 SDK Nightly requiredThis PR modifies files that require the SDK Nightly pipeline to be run before it can be merged:
Required action:
Alternative: run a Content build instead of the full SDK Nightly (click to expand)If your change is scoped (e.g. a single new validator or a small bug fix), you can run a Content build against this SDK branch instead of the full SDK Nightly pipeline. When your change is a new validator, make sure it is registered in the Content repo's This check will re-run automatically when a label is added or removed. |
|
Changelog(s) in markdown:
|
Summary
Renames the
Collectioncontent item type toKnowledgeacross the SDK. The Collection feature (#5393) is already merged into master; this PR renames its Python classes, content types, directory, and source field, while preserving the server-side contract keys unchanged.Changes
Renamed (classes / types / files)
Collection->Knowledge(object model, parser, strict object, old pack object)CollectionParser->KnowledgeParser,StrictCollection->StrictKnowledge,InvalidCollectionFileName->InvalidKnowledgeFileNameContentType.COLLECTION("Collection") ->ContentType.KNOWLEDGE("Knowledge")FileType.COLLECTION("collection") ->FileType.KNOWLEDGE("knowledge")COLLECTIONS_DIR = "Collections"->KNOWLEDGE_DIR = "Knowledge"(folder is singular)objects/knowledge.py,parsers/knowledge.py,strict_objects/knowledge.py,schemas/knowledge.yml,pack_objects/knowledge/,TestSuite/knowledge.py,assets/default_knowledge/knowledge-sample.ymlcollectionids->knowledgeidsPreserved (server contract — intentionally unchanged)
server_name/metadata_name:agentixknowledgecollectionsystemknowledgecollectionidsNotes
as_folderspecial-case so the Knowledge folder stays singular (Knowledge).Testing
validate_content_path_test.pyandagentix_markdown_unifier_test.py: 235 passedruff check: clean