Skip to content

add tools settings#1072

Closed
CalebMartinUiPath wants to merge 1 commit intomainfrom
caleb/add-ecs-tools
Closed

add tools settings#1072
CalebMartinUiPath wants to merge 1 commit intomainfrom
caleb/add-ecs-tools

Conversation

@CalebMartinUiPath
Copy link
Copy Markdown
Contributor

@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(
Copy link
Copy Markdown
Contributor

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"
)
Copy link
Copy Markdown
Contributor

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")
Copy link
Copy Markdown
Contributor

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")
Copy link
Copy Markdown
Contributor

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):
Copy link
Copy Markdown
Contributor

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")
Copy link
Copy Markdown
Contributor

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)
Copy link
Copy Markdown
Contributor

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

Copy link
Copy Markdown
Contributor

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.

@cristipufu cristipufu deleted the caleb/add-ecs-tools branch January 26, 2026 08:17
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