pub struct StreamEndpoints {
pub status: Option<String>,
pub events: Option<String>,
pub metrics: Option<String>,
pub timeline: Option<String>,
pub status_fallbacks: Vec<String>,
pub event_fallbacks: Vec<String>,
pub metric_fallbacks: Vec<String>,
pub timeline_fallbacks: Vec<String>,
}Expand description
Endpoint configuration for streaming from a job.
Fields§
§status: Option<String>Status endpoint.
events: Option<String>Events endpoint.
metrics: Option<String>Metrics endpoint.
timeline: Option<String>Timeline endpoint.
status_fallbacks: Vec<String>Fallback status endpoints (tried in order if primary fails).
event_fallbacks: Vec<String>Fallback event endpoints.
metric_fallbacks: Vec<String>Fallback metrics endpoints.
timeline_fallbacks: Vec<String>Fallback timeline endpoints.
Implementations§
Source§impl StreamEndpoints
impl StreamEndpoints
Sourcepub fn learning(job_id: &str) -> StreamEndpoints
pub fn learning(job_id: &str) -> StreamEndpoints
Create endpoints for a generic learning job.
Sourcepub fn prompt_learning(job_id: &str) -> StreamEndpoints
pub fn prompt_learning(job_id: &str) -> StreamEndpoints
Create endpoints for a prompt learning (GEPA) job.
Sourcepub fn eval(job_id: &str) -> StreamEndpoints
pub fn eval(job_id: &str) -> StreamEndpoints
Create endpoints for an eval job.
Sourcepub fn rl(job_id: &str) -> StreamEndpoints
pub fn rl(job_id: &str) -> StreamEndpoints
Create endpoints for an RL job.
Sourcepub fn sft(job_id: &str) -> StreamEndpoints
pub fn sft(job_id: &str) -> StreamEndpoints
Create endpoints for an SFT job.
Sourcepub fn graph_optimization(job_id: &str) -> StreamEndpoints
pub fn graph_optimization(job_id: &str) -> StreamEndpoints
Create endpoints for graph optimization.
Sourcepub fn graph_evolve(job_id: &str) -> StreamEndpoints
pub fn graph_evolve(job_id: &str) -> StreamEndpoints
Create endpoints for graph evolve jobs.
Sourcepub fn graphgen(job_id: &str) -> StreamEndpoints
pub fn graphgen(job_id: &str) -> StreamEndpoints
Legacy alias for graph evolve endpoints.
Sourcepub fn custom(
status: Option<String>,
events: Option<String>,
metrics: Option<String>,
timeline: Option<String>,
) -> StreamEndpoints
pub fn custom( status: Option<String>, events: Option<String>, metrics: Option<String>, timeline: Option<String>, ) -> StreamEndpoints
Create custom endpoints.
Sourcepub fn with_status_fallback(
self,
endpoint: impl Into<String>,
) -> StreamEndpoints
pub fn with_status_fallback( self, endpoint: impl Into<String>, ) -> StreamEndpoints
Add a status fallback endpoint.
Sourcepub fn with_event_fallback(self, endpoint: impl Into<String>) -> StreamEndpoints
pub fn with_event_fallback(self, endpoint: impl Into<String>) -> StreamEndpoints
Add an event fallback endpoint.
Sourcepub fn with_metric_fallback(
self,
endpoint: impl Into<String>,
) -> StreamEndpoints
pub fn with_metric_fallback( self, endpoint: impl Into<String>, ) -> StreamEndpoints
Add a metrics fallback endpoint.
Sourcepub fn with_timeline_fallback(
self,
endpoint: impl Into<String>,
) -> StreamEndpoints
pub fn with_timeline_fallback( self, endpoint: impl Into<String>, ) -> StreamEndpoints
Add a timeline fallback endpoint.
Sourcepub fn events_stream_url(&self) -> Option<String>
pub fn events_stream_url(&self) -> Option<String>
Get the SSE stream URL for events.
Sourcepub fn all_status_endpoints(&self) -> Vec<&str>
pub fn all_status_endpoints(&self) -> Vec<&str>
Get all status endpoints to try (primary + fallbacks).
Sourcepub fn all_event_endpoints(&self) -> Vec<&str>
pub fn all_event_endpoints(&self) -> Vec<&str>
Get all event endpoints to try (primary + fallbacks).
Sourcepub fn all_metric_endpoints(&self) -> Vec<&str>
pub fn all_metric_endpoints(&self) -> Vec<&str>
Get all metrics endpoints to try (primary + fallbacks).
Sourcepub fn all_timeline_endpoints(&self) -> Vec<&str>
pub fn all_timeline_endpoints(&self) -> Vec<&str>
Get all timeline endpoints to try (primary + fallbacks).
Trait Implementations§
Source§impl Clone for StreamEndpoints
impl Clone for StreamEndpoints
Source§fn clone(&self) -> StreamEndpoints
fn clone(&self) -> StreamEndpoints
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StreamEndpoints
impl Debug for StreamEndpoints
Source§impl Default for StreamEndpoints
impl Default for StreamEndpoints
Source§fn default() -> StreamEndpoints
fn default() -> StreamEndpoints
Auto Trait Implementations§
impl Freeze for StreamEndpoints
impl RefUnwindSafe for StreamEndpoints
impl Send for StreamEndpoints
impl Sync for StreamEndpoints
impl Unpin for StreamEndpoints
impl UnwindSafe for StreamEndpoints
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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>
T in a tonic::Request