Skip to content

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

Open
tudormatei1 wants to merge 1 commit into
mainfrom
feat/model-not-found-error
Open

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

Conversation

@tudormatei1

Copy link
Copy Markdown

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.
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