feat: add title field for data types (#410)
* feat(model): add title field to various structs * fix(test): fix test json schema * fix(model): allow boxed type in `ts_union` macro
This commit is contained in:
parent
fdd6bc0565
commit
1b70f5b032
1 changed files with 219 additions and 73 deletions
|
|
@ -350,6 +350,7 @@ pub fn cached_arguments_from_schema<T: schemars::JsonSchema + std::any::Any>()
|
|||
|
||||
arguments.push(crate::model::PromptArgument {
|
||||
name: name.clone(),
|
||||
title: None,
|
||||
description,
|
||||
required: Some(required.contains(name.as_str())),
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue