Skip to content

Conversation

@CalebMartinUiPath
Copy link

@CalebMartinUiPath CalebMartinUiPath commented Jan 7, 2026

We are transitioning deeprag and batch transform to be internal tools. This updates the python to match and allows the tools to be used in unified runtime.

also needed: UiPath/uipath-langchain-python#390

@github-actions github-actions bot added test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository labels Jan 7, 2026
index_name: Optional[str] = Field(None, alias="indexName")
folder_path: Optional[str] = Field(None, alias="folderPath")
query: Optional[AgentContextQuerySetting] = Field(None)
folder_path_prefix: Optional[AgentContextQuerySetting] = Field(

Choose a reason for hiding this comment

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

FolderPathPrefixSettings

Comment on lines +412 to +417
citation_mode: Optional[AgentContextValueSetting] = Field(
None, alias="citationMode"
)
file_extension: Optional[AgentContextValueSetting] = Field(
None, alias="fileExtension"
)

Choose a reason for hiding this comment

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

AgentContextValueSetting has Any type for value. Do not use Any anywhere and type everything. including enums (string or int).

Comment on lines +406 to +407
index_name: Optional[str] = Field(None, alias="indexName")
folder_path: Optional[str] = Field(None, alias="folderPath")

Choose a reason for hiding this comment

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

we are not supporting deeprag with index mode as internal tool atm. only JIT/Attachments for now for DeepRAG Internal tool

class AgentInternalDeepRagSettings(BaseCfg):
"""Agent internal DeepRAG tool settings model."""

context_type: str = Field(..., alias="contextType")

Choose a reason for hiding this comment

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

should be an enum


class AgentInternalToolProperties(BaseResourceProperties):
"""Agent internal tool properties model."""
class AgentInternalDeepRagSettings(BaseCfg):

Choose a reason for hiding this comment

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

there should be sub class based on context_type value (Annotated/Union)

Comment on lines +420 to +425
class AgentInternalBatchTransformSettings(BaseCfg):
"""Agent internal BatchTransform tool settings model."""

context_type: str = Field(..., alias="contextType")
index_name: Optional[str] = Field(None, alias="indexName")
folder_path: Optional[str] = Field(None, alias="folderPath")

Choose a reason for hiding this comment

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

same comments as above

context_type: str = Field(..., alias="contextType")
index_name: Optional[str] = Field(None, alias="indexName")
folder_path: Optional[str] = Field(None, alias="folderPath")
query: Optional[str] = Field(None)

Choose a reason for hiding this comment

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

this is not string. it should be a model with variant and value and description

Choose a reason for hiding this comment

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

almost all properties should not be optional. they are required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

test:uipath-langchain Triggers tests in the uipath-langchain-python repository test:uipath-llamaindex Triggers tests in the uipath-llamaindex-python repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants