mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-13 08:15:21 +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
|
|
@ -1,6 +1,6 @@
|
|||
# generated by datamodel-codegen:
|
||||
# filename: dograh-openapi-DuffQq.json
|
||||
# timestamp: 2026-05-31T11:41:57+00:00
|
||||
# filename: dograh-openapi-rs5H7P.json
|
||||
# timestamp: 2026-06-02T06:01:29+00:00
|
||||
|
||||
from __future__ import annotations
|
||||
|
||||
|
|
@ -337,6 +337,8 @@ class Type(Enum):
|
|||
string = 'string'
|
||||
number = 'number'
|
||||
boolean = 'boolean'
|
||||
object = 'object'
|
||||
array = 'array'
|
||||
|
||||
|
||||
class PresetToolParameter(BaseModel):
|
||||
|
|
@ -427,6 +429,8 @@ class Type1(Enum):
|
|||
string = 'string'
|
||||
number = 'number'
|
||||
boolean = 'boolean'
|
||||
object = 'object'
|
||||
array = 'array'
|
||||
|
||||
|
||||
class ToolParameter(BaseModel):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue