Expand description
§Latitude API Client
This crate provides a client for interacting with the Latitude API, allowing users to execute documents (prompts) and handle real-time AI-powered conversations through a simple HTTP-based interface.
§Features
- Document Execution: Run specific documents (prompts) with custom parameters.
- Stream Responses: Optionally receive responses as a real-time data stream.
- Simple API Integration: API key authentication and project/version management.
§Installation
Add this crate to your Cargo.toml
file:
cargo add latitude-sdk
§Usage
To use the Latitude API client, create an instance of Client
with your API key, set the project ID, and run a document.
use latitude_sdk::Client;
let client = Client::builder("your_api_key".into())
.project_id(123)
.version_id("version-uuid".to_string())
.base_url("https://custom.url/api".to_string())
.build();
Modules§
Structs§
- Client
- The
Client
for interacting with the Latitude API. - Client
Builder - Builder for configuring and creating a
Client
instance.