Expand description
A client library for the seabird-chat ecosystem.
This crate provides gRPC clients for interacting with seabird chat servers, supporting both the main seabird protocol and the chat ingest protocol.
§Features
seabird-client(default): Enables the main SeabirdClient for bot interactionschat-ingest-client: Enables the ChatIngestClient for ingesting chat data
§Example
use seabird::{ClientConfig, SeabirdClient};
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let config = ClientConfig {
url: "https://seabird.example.com".to_string(),
token: "your-token-here".to_string(),
};
let mut client = SeabirdClient::new(config).await?;
client.send_message("channel-id", "Hello, world!", None).await?;
Ok(())
}Modules§
Structs§
- Block
- A builder for creating message blocks.
- Chat
Ingest Client chat-ingest-client - Client for ingesting chat data into seabird.
- Client
Config - Configuration for connecting to a seabird instance.
- Seabird
Client seabird-client - Client for interacting with a seabird instance, generally as a bot.
Type Aliases§
- Inner
Client - A convenience wrapper around the raw gRPC client type with authentication added.