1 stable release
1.0.0 | Nov 23, 2023 |
---|
#1942 in Development tools
8KB
81 lines
FloomSDK-Rust
Floom Rust SDK - A Rust library for interacting with Floom, an AI Orchestration platform that empowers Developers and DevOps.
About Floom
Floom orchestrates and executes Generative AI pipelines, allowing developers and DevOps teams to focus on what matters most. It offers enterprise-grade, production-ready, and battle-tested solutions, now open-source and free for everyone, including commercial use.
Floom's AI Pipeline model simplifies the integration and execution process of Generative AI, handling everything from prompt design and data linking to execution and cost management.
Getting Started with FloomSDK-Rust
Installation
To start using FloomSDK-Rust, include it in your Cargo.toml:
[dependencies]
floom = "1.0.0"
Usage
Here's how you can use the Floom Rust SDK in your application:
use floom::{FloomClient};
use std::collections::HashMap;
#[tokio::main]
async fn main() {
// Initialize FloomClient
let floom_client = FloomClient::new("your_endpoint".to_string(), "your_api_key".to_string());
// Example: Running a pipeline
let response = floom_client.run(
"your_pipeline_id".to_string(),
"your_chat_id".to_string(),
"your_input".to_string(),
None,
).await;
match response {
Ok(response) => {
// Process the response
println!("Response: {:?}", response);
}
Err(e) => {
println!("Error: {:?}", e);
}
}
}
This README provides a concise yet comprehensive introduction to Floom and its Rust SDK. It includes installation instructions, a basic usage example, links to further documentation, contribution guidelines, and licensing information. The structure is designed to be user-friendly and to enhance the visibility of your project.
For more information, visit us at https://floom.ai.
Dependencies
~7–19MB
~261K SLoC