pub struct PolicyMessage {
pub role: PolicyRole,
pub content: String,
}Expand description
Minimal message type for policy LLM calls.
Uses a dedicated type rather than importing zeph-llm::Message to keep
zeph-common free of zeph-* dependencies.
Fields§
§role: PolicyRoleRole of the message sender.
content: StringMessage content.
Trait Implementations§
Source§impl Clone for PolicyMessage
impl Clone for PolicyMessage
Source§fn clone(&self) -> PolicyMessage
fn clone(&self) -> PolicyMessage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PolicyMessage
impl RefUnwindSafe for PolicyMessage
impl Send for PolicyMessage
impl Sync for PolicyMessage
impl Unpin for PolicyMessage
impl UnsafeUnpin for PolicyMessage
impl UnwindSafe for PolicyMessage
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more