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>,
}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.
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 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 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 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).
Trait Implementations§
Source§impl Clone for StreamEndpoints
impl Clone for StreamEndpoints
Source§fn clone(&self) -> StreamEndpoints
fn clone(&self) -> StreamEndpoints
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
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
Returns the “default value” for a type. Read more
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
Mutably borrows from an owned value. Read more
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>
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