Skip to main content

Crate seabird

Crate seabird 

Source
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 interactions
  • chat-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§

error
Error types for the seabird client library.
proto
Protocol buffer definitions for seabird.

Structs§

Block
A builder for creating message blocks.
ChatIngestClientchat-ingest-client
Client for ingesting chat data into seabird.
ClientConfig
Configuration for connecting to a seabird instance.
SeabirdClientseabird-client
Client for interacting with a seabird instance, generally as a bot.

Type Aliases§

InnerClient
A convenience wrapper around the raw gRPC client type with authentication added.