Skip to content

feat(errors): add ModelNotFoundError for discovery-miss lookups#116

Merged
tudormatei1 merged 1 commit into
mainfrom
feat/model-not-found-error
Jul 20, 2026
Merged

feat(errors): add ModelNotFoundError for discovery-miss lookups#116
tudormatei1 merged 1 commit into
mainfrom
feat/model-not-found-error

Conversation

@tudormatei1

Copy link
Copy Markdown
Contributor

get_model_info raised a bare ValueError when a model name was absent from the discovery API response, indistinguishable from the other ValueErrors the factory/settings code can raise (unsupported vendor, missing agenthub_config, invalid kwargs). Callers had to match on the error message text to detect this specific case.

Add ModelNotFoundError, raised by get_model_info on a discovery-miss. It subclasses ValueError (so existing except ValueError handlers keep working) and UiPathError (so it is catchable across the UiPath LLM error taxonomy) and carries the new UiPathLLMErrorCode.MODEL_NOT_FOUND code.

Bumps core and langchain-client to 1.17.1, raises the langchain-client uipath-llm-client floor to >=1.17.1, and adds changelog entries.

get_model_info raised a bare ValueError when a model name was absent
from the discovery API response, indistinguishable from the other
ValueErrors the factory/settings code can raise (unsupported vendor,
missing agenthub_config, invalid kwargs). Callers had to match on the
error message text to detect this specific case.

Add ModelNotFoundError, raised by get_model_info on a discovery-miss.
It subclasses ValueError (so existing `except ValueError` handlers keep
working) and UiPathError (so it is catchable across the UiPath LLM error
taxonomy) and carries the new UiPathLLMErrorCode.MODEL_NOT_FOUND code.

Bumps core and langchain-client to 1.17.1, raises the langchain-client
uipath-llm-client floor to >=1.17.1, and adds changelog entries.
@tudormatei1
tudormatei1 merged commit f618c45 into main Jul 20, 2026
11 checks passed
@tudormatei1
tudormatei1 deleted the feat/model-not-found-error branch July 20, 2026 08: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.

2 participants