pub struct PromptPrefix {
pub chain: PrefixChain,
pub rewrites: PrefixRewrites,
pub first_request: bool,
}Expand description
The prompt prefix of a request about to be sent.
Fields§
§chain: PrefixChainThe hash chain of the request’s prefix.
rewrites: PrefixRewritesWhat rewrote the prefix since this agent’s previous request.
first_request: boolWhether this is the agent’s first request, so whatever the host sent before it came from another agent.
Trait Implementations§
Source§impl Clone for PromptPrefix
impl Clone for PromptPrefix
Source§impl Debug for PromptPrefix
impl Debug for PromptPrefix
impl Eq for PromptPrefix
Source§impl PartialEq for PromptPrefix
impl PartialEq for PromptPrefix
impl StructuralPartialEq for PromptPrefix
Auto Trait Implementations§
impl Forget for PromptPrefix
impl Freeze for PromptPrefix
impl Move for PromptPrefix
impl RefUnwindSafe for PromptPrefix
impl Send for PromptPrefix
impl Sync for PromptPrefix
impl Unpin for PromptPrefix
impl UnsafeUnpin for PromptPrefix
impl UnwindSafe for PromptPrefix
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.