pub struct JunctureClient { /* private fields */ }Expand description
Juncture client for server interaction
Provides methods for managing graphs and threads.
Implementations§
Source§impl JunctureClient
impl JunctureClient
Sourcepub fn new(endpoint: impl Into<String>) -> JunctureClient
pub fn new(endpoint: impl Into<String>) -> JunctureClient
Sourcepub fn with_auth(self, auth: AuthConfig) -> JunctureClient
pub fn with_auth(self, auth: AuthConfig) -> JunctureClient
Sourcepub async fn list_graphs(&self) -> Result<Vec<GraphInfo>, ClientError>
pub async fn list_graphs(&self) -> Result<Vec<GraphInfo>, ClientError>
Sourcepub fn graph(&self, graph_id: &str) -> GraphClient
pub fn graph(&self, graph_id: &str) -> GraphClient
Sourcepub async fn create_thread(
&self,
metadata: Option<HashMap<String, Value>>,
) -> Result<Thread, ClientError>
pub async fn create_thread( &self, metadata: Option<HashMap<String, Value>>, ) -> Result<Thread, ClientError>
Sourcepub async fn get_thread(&self, thread_id: &str) -> Result<Thread, ClientError>
pub async fn get_thread(&self, thread_id: &str) -> Result<Thread, ClientError>
Sourcepub async fn list_threads(
&self,
limit: Option<usize>,
) -> Result<Vec<Thread>, ClientError>
pub async fn list_threads( &self, limit: Option<usize>, ) -> Result<Vec<Thread>, ClientError>
Sourcepub async fn delete_thread(&self, thread_id: &str) -> Result<(), ClientError>
pub async fn delete_thread(&self, thread_id: &str) -> Result<(), ClientError>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JunctureClient
impl !RefUnwindSafe for JunctureClient
impl Send for JunctureClient
impl Sync for JunctureClient
impl Unpin for JunctureClient
impl UnsafeUnpin for JunctureClient
impl !UnwindSafe for JunctureClient
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