pub struct GraphEvolveClient<'a> { /* private fields */ }Expand description
Graph Evolve API client.
Implementations§
Source§impl<'a> GraphEvolveClient<'a>
impl<'a> GraphEvolveClient<'a>
Sourcepub async fn submit_job(&self, payload: Value) -> Result<Value, CoreError>
pub async fn submit_job(&self, payload: Value) -> Result<Value, CoreError>
Submit a Graph Evolve job.
Sourcepub async fn get_events(
&self,
job_id: &str,
since_seq: i64,
limit: i64,
) -> Result<Value, CoreError>
pub async fn get_events( &self, job_id: &str, since_seq: i64, limit: i64, ) -> Result<Value, CoreError>
Get job events.
Sourcepub async fn get_metrics(
&self,
job_id: &str,
query_string: &str,
) -> Result<Value, CoreError>
pub async fn get_metrics( &self, job_id: &str, query_string: &str, ) -> Result<Value, CoreError>
Get job metrics.
Sourcepub async fn download_prompt(&self, job_id: &str) -> Result<Value, CoreError>
pub async fn download_prompt(&self, job_id: &str) -> Result<Value, CoreError>
Download best prompt (JSON).
Sourcepub async fn download_graph_txt(
&self,
job_id: &str,
) -> Result<String, CoreError>
pub async fn download_graph_txt( &self, job_id: &str, ) -> Result<String, CoreError>
Download redacted graph export (text).
Sourcepub async fn run_inference(&self, payload: Value) -> Result<Value, CoreError>
pub async fn run_inference(&self, payload: Value) -> Result<Value, CoreError>
Run inference using a graph.
Sourcepub async fn get_graph_record(&self, payload: Value) -> Result<Value, CoreError>
pub async fn get_graph_record(&self, payload: Value) -> Result<Value, CoreError>
Fetch a graph record snapshot.
Auto Trait Implementations§
impl<'a> Freeze for GraphEvolveClient<'a>
impl<'a> !RefUnwindSafe for GraphEvolveClient<'a>
impl<'a> Send for GraphEvolveClient<'a>
impl<'a> Sync for GraphEvolveClient<'a>
impl<'a> Unpin for GraphEvolveClient<'a>
impl<'a> !UnwindSafe for GraphEvolveClient<'a>
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request