mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-07-19 11:41:04 +02:00
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:
parent
98d2b24cba
commit
dd85c4a1b4
18 changed files with 308 additions and 67 deletions
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue