Skip to content

Create KnowledgeBaseBuilder and extract settings from knowledge base class#24

Merged
DaviddeBest-TNO merged 7 commits into
mainfrom
23-extract-settings-from-kb
May 20, 2026
Merged

Create KnowledgeBaseBuilder and extract settings from knowledge base class#24
DaviddeBest-TNO merged 7 commits into
mainfrom
23-extract-settings-from-kb

Conversation

@DaviddeBest-TNO
Copy link
Copy Markdown
Contributor

Solves #23

@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
DaviddeBest-TNO and others added 7 commits May 20, 2026 17:39
- 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 force-pushed the 23-extract-settings-from-kb branch from 06023e1 to 8d46d45 Compare May 20, 2026 15:39
@DaviddeBest-TNO DaviddeBest-TNO merged commit e1030be into main May 20, 2026
3 checks passed
@DaviddeBest-TNO DaviddeBest-TNO deleted the 23-extract-settings-from-kb branch May 20, 2026 15:41
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