Skip to content

Conversation

keelerm84
Copy link
Member

@keelerm84 keelerm84 commented Nov 26, 2024

Consumers of this SDK are responsible for providing some default value
to the config method. If that type is of AIConfig, customers have
the option of providing a tracker instance that will never be useful.

To address this, we are going to remove the tracker from the AIConfig
type entirely. Instead, we are going to return the AIConfig and the
LDAITracker separately.

BEGIN_COMMIT_OVERRIDE
feat: Return AIConfig and LDAITracker separately #23
END_COMMIT_OVERRIDE

Consumers of this SDK are responsible for providing some default value
to the `config` method. If that type is of `AIConfig`, customers have
the option of providing a tracker instance that will never be useful.

To help discourage this, we are making two separate types -- one to
represent the default ai config, and one to represent the actual
selected config.
@keelerm84 keelerm84 requested a review from a team as a code owner November 26, 2024 21:01
@keelerm84 keelerm84 changed the title fix: Distinguish AIConfig from DefaultAIConfig fix: Return AIConfig and LDAITracker separately Nov 27, 2024
@keelerm84 keelerm84 merged commit 96f888f into main Dec 2, 2024
13 checks passed
@keelerm84 keelerm84 deleted the mk/sdk-939/improve-defaults branch December 2, 2024 17:03
keelerm84 pushed a commit that referenced this pull request Dec 3, 2024
🤖 I have created a release *beep* *boop*
---


##
[0.4.0](0.3.0...0.4.0)
(2024-12-02)


### Features

* Return AIConfig and LDAITracker separately
[#23](#23)
([96f888f](96f888f))


### Bug Fixes

* Fix context usage for message interpolation
([#24](#24))
([1159aee](1159aee))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.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.

2 participants