objectiveai-sdk 2.2.3

ObjectiveAI SDK, definitions, and utilities
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use super::AssistantMessageExpression;

#[test]
fn deserialize_empty_object() {
    let json = "{}";
    let result: Result<AssistantMessageExpression, _> =
        serde_json::from_str(json);
    assert!(
        result.is_ok(),
        "failed to deserialize empty object: {}",
        result.unwrap_err()
    );
}