fix: support object and array parameters in custom HTTP tools (#373)

* fix: support object and array parameters in custom HTTP tools

* feat(ui): expose object and array types in the custom tool parameter editor

* fix: error handling and schema generation

---------

Co-authored-by: Matt Van Horn <455140+mvanhorn@users.noreply.github.com>
Co-authored-by: Abhishek Kumar <abhishek@a6k.me>
This commit is contained in:
Matt Van Horn 2026-06-01 23:05:38 -07:00 committed by GitHub
parent 98d2b24cba
commit dd85c4a1b4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 308 additions and 67 deletions

View file

@ -2539,7 +2539,7 @@ export type PresetToolParameter = {
*
* JSON type for the resolved value.
*/
type: 'string' | 'number' | 'boolean';
type: 'string' | 'number' | 'boolean' | 'object' | 'array';
/**
* Value Template
*
@ -3625,7 +3625,7 @@ export type ToolParameter = {
*
* JSON type for the parameter value.
*/
type: 'string' | 'number' | 'boolean';
type: 'string' | 'number' | 'boolean' | 'object' | 'array';
/**
* Description
*
@ -4594,6 +4594,12 @@ export type WorkflowRunResponseSchema = {
cost_info: {
[key: string]: unknown;
} | null;
/**
* Usage Info
*/
usage_info?: {
[key: string]: unknown;
} | null;
/**
* Definition Id
*/