pub struct GraphInput {
pub conversation_id: String,
pub last_message: Message,
pub llm_config: LLMConfig,
pub context_policy: ContextPolicy,
}Fields§
§conversation_id: String§last_message: Message§llm_config: LLMConfig§context_policy: ContextPolicyImplementations§
Source§impl GraphInput
impl GraphInput
pub fn new( conversation_id: impl Into<String>, last_message: Message, llm_config: LLMConfig, ) -> Self
pub fn with_context_policy(self, policy: ContextPolicy) -> Self
Trait Implementations§
Source§impl Clone for GraphInput
impl Clone for GraphInput
Source§fn clone(&self) -> GraphInput
fn clone(&self) -> GraphInput
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 moreSource§impl Debug for GraphInput
impl Debug for GraphInput
Source§impl<'de> Deserialize<'de> for GraphInput
impl<'de> Deserialize<'de> for GraphInput
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GraphInput
impl RefUnwindSafe for GraphInput
impl Send for GraphInput
impl Sync for GraphInput
impl Unpin for GraphInput
impl UnwindSafe for GraphInput
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