Skip to content

fix(applications): make output_type, model and generator private - #1990

Open
harsh4vardhan wants to merge 1 commit into
dottxt-ai:mainfrom
harsh4vardhan:fix/make-application-attrs-private
Open

fix(applications): make output_type, model and generator private#1990
harsh4vardhan wants to merge 1 commit into
dottxt-ai:mainfrom
harsh4vardhan:fix/make-application-attrs-private

Conversation

@harsh4vardhan

Copy link
Copy Markdown

Closes #1982

What

Makes , , and private attributes (prefixed with ) on the class.

Why

As suggested by @RobinPicard in #1982: rather than adding defensive cache-invalidation logic to detect when changes after construction, making the attribute private removes the invalid state entirely — users can no longer mutate it after construction, so the stale-generator scenario cannot occur.

and are made private too since they are internal caching state, not part of the public API.

Changes

  • : rename → , → , →
  • : update assertions to use the private attribute names

output_type, model, and generator are internal implementation details —
making them private prevents users from mutating output_type after
construction, which is the root cause of the stale-generator bug
reported in dottxt-ai#1982.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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.

applications: Application does not detect output_type changes between calls

1 participant