pub struct EmbeddingExecution { /* private fields */ }Expand description
Captures the outcome of an embedding request: the wire response plus the content-addressed ledger ids and events it produced.
Implementations§
Source§impl EmbeddingExecution
impl EmbeddingExecution
Sourcepub fn response(&self) -> &GatewayResponse
pub fn response(&self) -> &GatewayResponse
Returns the wire response produced by the embedding execution.
Sourcepub fn request_content_id(&self) -> Option<&ContentId>
pub fn request_content_id(&self) -> Option<&ContentId>
Returns the content id of the stored request, if it was recorded.
Sourcepub fn run_content_id(&self) -> Option<&ContentId>
pub fn run_content_id(&self) -> Option<&ContentId>
Returns the content id of the stored run, if it was recorded.
Sourcepub fn event_content_ids(&self) -> &[ContentId]
pub fn event_content_ids(&self) -> &[ContentId]
Returns the content ids of the stored events, in sequence order.
Sourcepub fn events(&self) -> &[GatewayEvent]
pub fn events(&self) -> &[GatewayEvent]
Returns the events emitted during the embedding execution.
Sourcepub fn response_content_id(&self) -> Option<&ContentId>
pub fn response_content_id(&self) -> Option<&ContentId>
Returns the content id of the stored response, if it was recorded.
Trait Implementations§
Source§impl Clone for EmbeddingExecution
impl Clone for EmbeddingExecution
Source§fn clone(&self) -> EmbeddingExecution
fn clone(&self) -> EmbeddingExecution
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EmbeddingExecution
impl RefUnwindSafe for EmbeddingExecution
impl Send for EmbeddingExecution
impl Sync for EmbeddingExecution
impl Unpin for EmbeddingExecution
impl UnsafeUnpin for EmbeddingExecution
impl UnwindSafe for EmbeddingExecution
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