Skip to content

fix: make RAG state model fields optional with defaults #189#184

Merged
bahdan111 merged 4 commits intodevelopmentfrom
upd-dial-rag-state-model
Mar 6, 2026
Merged

fix: make RAG state model fields optional with defaults #189#184
bahdan111 merged 4 commits intodevelopmentfrom
upd-dial-rag-state-model

Conversation

@bahdan111
Copy link
Contributor

@bahdan111 bahdan111 commented Mar 5, 2026

Applicable issues

Description of changes

Update BaseRagState and DialRagState Pydantic models to make fields optional with sensible defaults:

  • BaseRagState: make response and answered_by optional (str = "")
  • DialRagState: make pre_filter and metadata optional with None defaults
  • PreFilterResponse: simplify field declarations by replacing Field(default=None) with plain = None

This allows partial construction of RAG state objects without requiring all fields upfront.

Checklist

By submitting this pull request, I confirm that my contribution is made under the terms of the MIT license.

@navalnica navalnica self-requested a review March 5, 2026 14:56
@navalnica navalnica marked this pull request as ready for review March 5, 2026 16:12
@navalnica navalnica requested a review from ypldan as a code owner March 5, 2026 16:12
@navalnica
Copy link
Contributor

pls link to issue

@bahdan111 bahdan111 changed the title refactor: make RAG state model fields optional with defaults fix: make RAG state model fields optional with defaults #189 Mar 6, 2026
@bahdan111 bahdan111 self-assigned this Mar 6, 2026
@bahdan111 bahdan111 merged commit 59551f5 into development Mar 6, 2026
11 of 12 checks passed
@bahdan111 bahdan111 deleted the upd-dial-rag-state-model branch March 6, 2026 07:17
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.

Bug: !skip_tools_execution returns incomplete FILE_RAG tool state

2 participants