Skip to content

feat: add file support for more LLM API Flavors#425

Merged
ionut-mihalache-uipath merged 2 commits intomainfrom
feat/file-support-for-more-llm-api-flavors
Jan 21, 2026
Merged

feat: add file support for more LLM API Flavors#425
ionut-mihalache-uipath merged 2 commits intomainfrom
feat/file-support-for-more-llm-api-flavors

Conversation

@ionut-mihalache-uipath
Copy link
Copy Markdown
Contributor

Add LLM Provider and API Flavor Support for File Handling

Summary

  • Introduces LLMProvider and APIFlavor enums to explicitly identify LLM vendors and their API variations
  • Adds llm_provider and api_flavor attributes to all UiPath LLM classes (UiPathChatOpenAI, UiPathChatBedrockConverse, UiPathChatBedrock, UiPathChatVertex)
  • Refactors file content part building to use provider-specific message formats based on API flavor

Comment thread src/uipath_langchain/agent/react/file_type_handler.py Outdated
AWS_BEDROCK_CONVERSE = "AwsBedrockConverse"
AWS_BEDROCK_INVOKE = "AwsBedrockInvoke"
VERTEX_GEMINI_GENERATE_CONTENT = "GeminiGenerateContent"
VERTEX_ANTHROPIC_CLAUDE = "AnthropicClaude"
Copy link
Copy Markdown
Collaborator

@cotovanu-cristian cotovanu-cristian Jan 19, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we support this on the agent implementation?

VERTEX_ANTHROPIC_CLAUDE = "AnthropicClaude"

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We don't support it in production yet, but it's added here because the API Flavor is checked in uipath-agents-python and an exception with text "Model not supported yet" is thrown.

Comment thread src/uipath_langchain/chat/openai.py Outdated
Comment thread src/uipath_langchain/agent/react/file_type_handler.py Outdated
Copy link
Copy Markdown
Collaborator

@cotovanu-cristian cotovanu-cristian left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the provider detection functionality should be extract in a new common module /llm/ that should expose these common provider specific operations.
e.g: get_llm_provider() | get_api_flavor()

@ionut-mihalache-uipath ionut-mihalache-uipath force-pushed the feat/file-support-for-more-llm-api-flavors branch 5 times, most recently from e34b032 to 26202ff Compare January 19, 2026 13:53
Comment thread src/uipath_langchain/llm/utils.py
Comment thread src/uipath_langchain/chat/bedrock.py
Comment thread src/uipath_langchain/agent/react/llm_node.py Outdated
Comment thread src/uipath_langchain/llm/builders/base.py Outdated
Comment thread src/uipath_langchain/llm/builders/base.py Outdated
@ionut-mihalache-uipath ionut-mihalache-uipath force-pushed the feat/file-support-for-more-llm-api-flavors branch from 26202ff to da9dbc8 Compare January 19, 2026 17:56
Comment thread src/uipath_langchain/agent/react/llm_node.py Outdated
Comment thread src/uipath_langchain/chat/__init__.py Outdated
Comment thread src/uipath_langchain/llm/builders/base.py Outdated
Comment thread src/uipath_langchain/llm/builders/base.py Outdated
Comment thread src/uipath_langchain/chat/models.py Outdated
@ionut-mihalache-uipath ionut-mihalache-uipath force-pushed the feat/file-support-for-more-llm-api-flavors branch 11 times, most recently from 561cea7 to a09bb94 Compare January 20, 2026 16:24
cotovanu-cristian
cotovanu-cristian approved these changes Jan 21, 2026
@ionut-mihalache-uipath ionut-mihalache-uipath force-pushed the feat/file-support-for-more-llm-api-flavors branch 4 times, most recently from fe1cefa to 9314e7f Compare January 21, 2026 10:42
@ionut-mihalache-uipath ionut-mihalache-uipath force-pushed the feat/file-support-for-more-llm-api-flavors branch from 9314e7f to 2661c3e Compare January 21, 2026 10:47
@ionut-mihalache-uipath ionut-mihalache-uipath merged commit e1a8f1d into main Jan 21, 2026
39 checks passed
@ionut-mihalache-uipath ionut-mihalache-uipath deleted the feat/file-support-for-more-llm-api-flavors branch January 21, 2026 10:50
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.

3 participants