Skip to content

Create KnowledgeBaseBuilder and extract settings from knowledge base class#24

Open
DaviddeBest-TNO wants to merge 14 commits into
mainfrom
23-extract-settings-from-kb
Open

Create KnowledgeBaseBuilder and extract settings from knowledge base class#24
DaviddeBest-TNO wants to merge 14 commits into
mainfrom
23-extract-settings-from-kb

Conversation

@DaviddeBest-TNO
Copy link
Copy Markdown
Contributor

Solves #23

DaviddeBest-TNO and others added 10 commits May 11, 2026 13:13
- Add KnowledgeBaseBuilder in src/knowledge_base_builder.py
- KnowledgeBase.from_settings() now returns a KnowledgeBaseBuilder instead
  of a KnowledgeBase; KnowledgeBase has no _build_settings field
- KnowledgeBaseBuilder.handler(name, func) attaches a handler to an
  ANSWER or REACT KI declared in settings
- ASK and POST KIs are auto-registered from settings at builder.build() time
- builder.build() raises ValueError if any ANSWER/REACT KI has no handler
- Export KnowledgeBaseBuilder from src/__init__.py
- Update test_configuration.py to use the builder pattern
- Add tests/test_knowledge_base_builder.py with 12 new behaviour tests
- Update CONTEXT.md to reflect new layout and builder API

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@DaviddeBest-TNO DaviddeBest-TNO self-assigned this May 11, 2026
@DaviddeBest-TNO DaviddeBest-TNO requested a review from Sophietje May 12, 2026 11:06
@DaviddeBest-TNO DaviddeBest-TNO marked this pull request as ready for review May 12, 2026 11:07
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.

1 participant