pub struct InternalPromptMessage {
pub role: Role,
pub content: PromptContent,
}Available on non-WebAssembly only.
Expand description
Internal representation of a prompt message
Fields§
§role: RoleThe role of the message sender
content: PromptContentThe message content
Implementations§
Source§impl InternalPromptMessage
impl InternalPromptMessage
Sourcepub fn to_protocol(
&self,
ctx: &ExpansionContext<'_>,
) -> Result<PromptMessage, WorkflowError>
pub fn to_protocol( &self, ctx: &ExpansionContext<'_>, ) -> Result<PromptMessage, WorkflowError>
Convert to protocol PromptMessage
Expands handles using server registry
Trait Implementations§
Source§impl Clone for InternalPromptMessage
impl Clone for InternalPromptMessage
Source§fn clone(&self) -> InternalPromptMessage
fn clone(&self) -> InternalPromptMessage
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 InternalPromptMessage
impl RefUnwindSafe for InternalPromptMessage
impl Send for InternalPromptMessage
impl Sync for InternalPromptMessage
impl Unpin for InternalPromptMessage
impl UnwindSafe for InternalPromptMessage
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