synapto-interface 0.1.0-dev.12

Interface definitions for the Synapto framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use crate::plugin::MessageChannel;
use schemars::JsonSchema;
use serde::{Deserialize, Serialize};

/// Output message intended to be written to a text source (e.g. chat).
#[derive(Serialize, Deserialize, JsonSchema, PartialEq, Eq, Debug, Clone)]
pub struct CognitiveOutputText {
    /// The target channel for the text output.
    pub target_channel: MessageChannel,
    /// The text content to be written.
    pub text: String,
}