Files
imeai-aKode/akode-rs/hooks/src/context.rs

19 lines
423 B
Rust

//! Model-visible hook context, attributed by the executor that produced it.
use akode_protocol::models::ContentItemMetadata;
#[derive(Debug, Clone, PartialEq, Eq)]
pub struct HookContext {
pub text: String,
pub metadata: ContentItemMetadata,
}
impl HookContext {
pub fn harness(text: String) -> Self {
Self {
text,
metadata: ContentItemMetadata::harness(),
}
}
}