TranscriptEntry (src/types.rs)

moltis · crates/telephony/src/types.rs · rust · MIT
voice

Defines telephony call states, events, and transcript entries for a call system.

// Source: https://github.com/moltis-org/moltis | License: MIT | Copyright 2025 Fabien Penso
// Provided via justclaw.it.com; keep this notice with the code.
//! Core telephony types: call state machine, events, and records.

use {
    serde::{Deserialize, Serialize},
    time::OffsetDateTime,
};

/// Unique identifier for an internal call.
pub type CallId = String;

/// How a call should behave once connected.
#[derive(Debug, Clone, Copy, PartialEq, Eq, Default, Serialize, Deserialize)]
#[serde(rename_all = "snake_case")]
pub enum CallMode {
    /// Deliver a message and hang up after a short delay. One-way notification.
    Notify,
    /// Full multi-turn agent conversation until explicit end or timeout.
    #[default]
    Conversation,
}

/// Call lifecycle states.
#[derive(Debug, Clone

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key