improve: generalize tool parameter converter (#4786)
This commit is contained in:
parent
3c8a120e51
commit
3542d55e67
10 changed files with 143 additions and 114 deletions
|
|
@ -116,8 +116,9 @@ class ToolParameterOption(BaseModel):
|
|||
value: str = Field(..., description="The value of the option")
|
||||
label: I18nObject = Field(..., description="The label of the option")
|
||||
|
||||
|
||||
class ToolParameter(BaseModel):
|
||||
class ToolParameterType(Enum):
|
||||
class ToolParameterType(str, Enum):
|
||||
STRING = "string"
|
||||
NUMBER = "number"
|
||||
BOOLEAN = "boolean"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue