add tests

This commit is contained in:
Adil Hafeez 2025-05-15 14:20:43 -07:00
parent 37a7eab3c0
commit 966588bfef
No known key found for this signature in database
GPG key ID: 9B18EF7691369645
5 changed files with 105 additions and 6 deletions

View file

@ -171,6 +171,18 @@ pub struct Message {
pub tool_call_id: Option<String>,
}
impl Default for Message {
fn default() -> Self {
Message {
role: ASSISTANT_ROLE.to_string(),
content: None,
model: None,
tool_calls: None,
tool_call_id: None,
}
}
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Choice {
pub finish_reason: Option<String>,