mirror of
https://github.com/katanemo/plano.git
synced 2026-04-30 03:16:28 +02:00
Propagate enums from prompt-target to bolt-fc (#56)
This commit is contained in:
parent
63143fbd01
commit
8a265de7c6
3 changed files with 7 additions and 1 deletions
|
|
@ -42,6 +42,9 @@ pub struct ToolParameter {
|
|||
pub description: String,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
pub required: Option<bool>,
|
||||
#[serde(skip_serializing_if = "Option::is_none")]
|
||||
#[serde(rename = "enum")]
|
||||
pub enum_values: Option<Vec<String>>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
|
|
|
|||
|
|
@ -98,6 +98,8 @@ pub struct Parameter {
|
|||
pub parameter_type: Option<String>,
|
||||
pub description: String,
|
||||
pub required: Option<bool>,
|
||||
#[serde(rename = "enum")]
|
||||
pub enum_values: Option<Vec<String>>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue