feat: add agenthub_config kwarg to factory functions#75
Merged
radu-mocanu merged 1 commit intomainfrom May 8, 2026
Merged
Conversation
ionmincu
approved these changes
May 8, 2026
This was referenced May 8, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
agenthub_config: str | None = Nonekwarg onget_chat_modelandget_embedding_modelclient_settings.agenthub_configfor that call viamodel_copy(caller's settings instance is not mutated)agentsruntime,agentsplayground,agentsevals, …) without rebuilding settingsWhy
agentsruntimeheader value should not be hardcoded. each caller should be able to provide their custom requesting-product, while the default has to be None to properly fix the breaking change that was introduced for coded agents UiPath/uipath-langchain-python#825. the default value will be drop as part of the next release (as soon as low code agents are passing explicit values), to avoid breaking changesprep work for fixing UiPath/uipath-langchain-python#825. the
chat_model_factoryin uipath-langchain-python silently drops itsagenthub_configarg on the new-clients path because the upstream factory had nowhere to forward it. this adds the missing parameter so the next PR can plumb it through.