pub struct AssistantCreate {
pub assistant_id: Option<Uuid>,
pub graph_id: String,
pub config: Option<Value>,
pub context: Option<Value>,
pub metadata: Option<Value>,
pub if_exists: Option<IfExists>,
pub name: Option<String>,
pub description: Option<Option<String>>,
}Expand description
AssistantCreate : Payload for creating an assistant.
Fields§
§assistant_id: Option<Uuid>The ID of the assistant. If not provided, a random UUID will be generated.
graph_id: StringThe ID of the graph the assistant should use. The graph ID is normally set in your langgraph.json configuration.
config: Option<Value>Configuration to use for the graph. Useful when graph is configurable and you want to create different assistants based on different configurations.
context: Option<Value>Static context added to the assistant.
metadata: Option<Value>Metadata to add to assistant.
if_exists: Option<IfExists>How to handle duplicate creation. Must be either ‘raise’ (raise error if duplicate), or ‘do_nothing’ (return existing assistant).
name: Option<String>The name of the assistant. Defaults to ‘Untitled’.
description: Option<Option<String>>The description of the assistant. Defaults to null.
Implementations§
Source§impl AssistantCreate
impl AssistantCreate
Sourcepub fn new(graph_id: String) -> AssistantCreate
pub fn new(graph_id: String) -> AssistantCreate
Payload for creating an assistant.
Trait Implementations§
Source§impl Clone for AssistantCreate
impl Clone for AssistantCreate
Source§fn clone(&self) -> AssistantCreate
fn clone(&self) -> AssistantCreate
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AssistantCreate
impl Debug for AssistantCreate
Source§impl Default for AssistantCreate
impl Default for AssistantCreate
Source§fn default() -> AssistantCreate
fn default() -> AssistantCreate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AssistantCreate
impl<'de> Deserialize<'de> for AssistantCreate
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 AssistantCreate
impl PartialEq for AssistantCreate
Source§impl Serialize for AssistantCreate
impl Serialize for AssistantCreate
impl StructuralPartialEq for AssistantCreate
Auto Trait Implementations§
impl Freeze for AssistantCreate
impl RefUnwindSafe for AssistantCreate
impl Send for AssistantCreate
impl Sync for AssistantCreate
impl Unpin for AssistantCreate
impl UnwindSafe for AssistantCreate
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)