rename to smartpack n smartunpack
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
use msghandler::{smartsend, Payload, SmartsendOptions};
|
||||
use msghandler::{smartpack, Payload, smartpackOptions};
|
||||
|
||||
fn main() {
|
||||
// Create mixed payload data
|
||||
@@ -24,7 +24,7 @@ fn main() {
|
||||
),
|
||||
];
|
||||
|
||||
let options = SmartsendOptions {
|
||||
let options = smartpackOptions {
|
||||
broker_url: "localhost:4222".to_string(),
|
||||
fileserver_url: "http://localhost:8080".to_string(),
|
||||
msg_purpose: "chat".to_string(),
|
||||
@@ -32,7 +32,7 @@ fn main() {
|
||||
..Default::default()
|
||||
};
|
||||
|
||||
match smartsend("/agent/wine/api/v1/prompt", &payloads, &options) {
|
||||
match smartpack("/agent/wine/api/v1/prompt", &payloads, &options) {
|
||||
Ok((envelope, json_str)) => {
|
||||
println!("=== Envelope Created ===");
|
||||
println!("Correlation ID: {}", envelope.correlation_id);
|
||||
|
||||
Reference in New Issue
Block a user