feat: enhance API tool with body serialization and content type handling (#2192)

* feat: enhance API tool with body serialization and content type handling

* feat: enhance ToolConfig with import functionality and user action management

- Added ImportSpecModal to allow importing actions into the tool configuration.
- Implemented search functionality for user actions with expandable action details.
- Introduced method colors for better visual distinction of HTTP methods.
- Updated APIActionType and ParameterGroupType to include optional 'required' field.
- Refactored action rendering to improve usability and maintainability.

* feat: add base URL input to ImportSpecModal for action URL customization

* feat: update TestBaseAgentTools to include 'required' field for parameters

* feat: standardize API call timeout to DEFAULT_TIMEOUT constant

* feat: add import specification functionality and related translations for multiple languages

---------

Co-authored-by: Alex <a@tushynski.me>
This commit is contained in:
Siddhant RaiandAlex authored and GitHub committed 2025-12-23 15:37:44 +02:00
1 parent f91846ce2d
commit 5b6cfa6ecc
18 files changed
+2308 -347

No files matched your search

+7 -1
View File
@@ -229,8 +229,14 @@ class TestBaseAgentTools:
"type": "string",
"description": "Test param",
"filled_by_llm": True,
"required": True,
},
"param2": {
"type": "number",
"filled_by_llm": False,
"value": 42,
"required": False,
},
"param2": {"type": "number", "filled_by_llm": False, "value": 42},
}
}
}