pub struct AssistantPatch {
pub graph_id: Option<String>,
pub config: Option<Value>,
pub context: Option<Value>,
pub metadata: Option<Value>,
pub name: Option<String>,
pub description: Option<String>,
}Expand description
AssistantPatch : Payload for updating an assistant.
Fields§
§graph_id: Option<String>The ID of the graph the assistant should use. The graph ID is normally set in your langgraph.json configuration. If not provided, assistant will keep pointing to same graph.
config: Option<Value>Configuration to use for the graph. Useful when graph is configurable and you want to update the assistant’s configuration.
context: Option<Value>Static context added to the assistant.
metadata: Option<Value>Metadata to merge with existing assistant metadata.
name: Option<String>The new name for the assistant. If not provided, assistant will keep its current name.
description: Option<String>The new description for the assistant. If not provided, assistant will keep its current description.
Implementations§
Source§impl AssistantPatch
impl AssistantPatch
Sourcepub fn new() -> AssistantPatch
pub fn new() -> AssistantPatch
Payload for updating an assistant.
Trait Implementations§
Source§impl Clone for AssistantPatch
impl Clone for AssistantPatch
Source§fn clone(&self) -> AssistantPatch
fn clone(&self) -> AssistantPatch
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 AssistantPatch
impl Debug for AssistantPatch
Source§impl Default for AssistantPatch
impl Default for AssistantPatch
Source§fn default() -> AssistantPatch
fn default() -> AssistantPatch
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AssistantPatch
impl<'de> Deserialize<'de> for AssistantPatch
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
Source§impl PartialEq for AssistantPatch
impl PartialEq for AssistantPatch
Source§impl Serialize for AssistantPatch
impl Serialize for AssistantPatch
impl StructuralPartialEq for AssistantPatch
Auto Trait Implementations§
impl Freeze for AssistantPatch
impl RefUnwindSafe for AssistantPatch
impl Send for AssistantPatch
impl Sync for AssistantPatch
impl Unpin for AssistantPatch
impl UnwindSafe for AssistantPatch
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