Propagate enums from prompt-target to bolt-fc (#56)

This commit is contained in:
Adil Hafeez 2024-09-17 12:03:21 -07:00 committed by GitHub
parent 63143fbd01
commit 8a265de7c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 7 additions and 1 deletions

View file

@ -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)]

View file

@ -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)]