pub struct GraphEvolveJob { /* private fields */ }Expand description
High-level Graph Evolve job orchestration.
Implementations§
Source§impl GraphEvolveJob
impl GraphEvolveJob
Sourcepub fn from_payload(
payload: Value,
api_key: Option<&str>,
base_url: Option<&str>,
) -> Result<Self, CoreError>
pub fn from_payload( payload: Value, api_key: Option<&str>, base_url: Option<&str>, ) -> Result<Self, CoreError>
Create a job from a payload.
Sourcepub fn from_job_id(
job_id: &str,
api_key: Option<&str>,
base_url: Option<&str>,
) -> Result<Self, CoreError>
pub fn from_job_id( job_id: &str, api_key: Option<&str>, base_url: Option<&str>, ) -> Result<Self, CoreError>
Reconnect to an existing job by ID.
Sourcepub fn legacy_job_id(&self) -> Option<&str>
pub fn legacy_job_id(&self) -> Option<&str>
Get the legacy GraphGen job ID, if known.
Sourcepub async fn submit(&mut self) -> Result<Value, CoreError>
pub async fn submit(&mut self) -> Result<Value, CoreError>
Submit the job and return the backend response.
Sourcepub async fn get_status(&self) -> Result<Value, CoreError>
pub async fn get_status(&self) -> Result<Value, CoreError>
Get current job status.
Sourcepub async fn get_events(
&self,
since_seq: i64,
limit: i64,
) -> Result<Value, CoreError>
pub async fn get_events( &self, since_seq: i64, limit: i64, ) -> Result<Value, CoreError>
Fetch events for the job.
Sourcepub async fn get_metrics(&self, query_string: &str) -> Result<Value, CoreError>
pub async fn get_metrics(&self, query_string: &str) -> Result<Value, CoreError>
Fetch metrics for the job.
Sourcepub async fn download_prompt(&self) -> Result<Value, CoreError>
pub async fn download_prompt(&self) -> Result<Value, CoreError>
Download prompt (JSON response).
Sourcepub async fn download_graph_txt(&self) -> Result<String, CoreError>
pub async fn download_graph_txt(&self) -> Result<String, CoreError>
Download redacted graph export.
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 the optimized 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.
Sourcepub async fn query_workflow_state(&self) -> Result<Value, CoreError>
pub async fn query_workflow_state(&self) -> Result<Value, CoreError>
Query workflow state.
Auto Trait Implementations§
impl Freeze for GraphEvolveJob
impl !RefUnwindSafe for GraphEvolveJob
impl Send for GraphEvolveJob
impl Sync for GraphEvolveJob
impl Unpin for GraphEvolveJob
impl !UnwindSafe for GraphEvolveJob
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