-
Notifications
You must be signed in to change notification settings - Fork 20
add tools settings #1072
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
add tools settings #1072
Conversation
| 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( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FolderPathPrefixSettings
| citation_mode: Optional[AgentContextValueSetting] = Field( | ||
| None, alias="citationMode" | ||
| ) | ||
| file_extension: Optional[AgentContextValueSetting] = Field( | ||
| None, alias="fileExtension" | ||
| ) |
There was a problem hiding this comment.
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).
| index_name: Optional[str] = Field(None, alias="indexName") | ||
| folder_path: Optional[str] = Field(None, alias="folderPath") |
There was a problem hiding this comment.
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") |
There was a problem hiding this comment.
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): |
There was a problem hiding this comment.
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)
| 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") |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
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