Skip to content

Commit

Permalink
Fix default of file type
Browse files Browse the repository at this point in the history
  • Loading branch information
kaavee315 committed Aug 19, 2024
1 parent 43e4e6c commit 2851574
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/composio/tools/toolset.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,6 +582,7 @@ def action_preprocessing(self, action_item: ActionModel) -> ActionModel:
if param_details.get("properties") == FileType.schema().get("properties"):
action_item.parameters.properties[param_name].pop("properties")
action_item.parameters.properties[param_name] = {
"default": param_details.get("default"),
"type": "string",
"format": "file-path",
"description": f"File path to {param_details.get('description', '')}",
Expand All @@ -592,6 +593,7 @@ def action_preprocessing(self, action_item: ActionModel) -> ActionModel:
action_item.parameters.properties[param_name].pop("allOf")
action_item.parameters.properties[param_name].update(
{
"default": param_details.get("default"),
"type": "string",
"format": "file-path",
"description": f"File path to {param_details.get('description', '')}",
Expand Down

0 comments on commit 2851574

Please sign in to comment.