runagent 0.1.49

RunAgent SDK for Rust - Client SDK for interacting with deployed AI agents
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use runagent::utils::serializer::CoreSerializer;
use serde_json::json;

fn main() {
    let serializer = CoreSerializer::new(10.0).unwrap();

    // Test the exact structure we're getting
    let test_response = json!({
        "payload": "\"Hello, world!\"",
        "type": "string"
    });

    println!("Input: {}", test_response);
    let result = serializer.deserialize_object(test_response).unwrap();
    println!("Result: {}", result);
    println!("Result is string: {}", result.is_string());
}