pub struct LlmMessageOrigin {
pub proc: Option<Arc<DaggerSessionProc>>,
pub selection: Selection,
pub graphql_client: DynGraphQLClient,
}Fields§
§proc: Option<Arc<DaggerSessionProc>>§selection: Selection§graphql_client: DynGraphQLClientImplementations§
Source§impl LlmMessageOrigin
impl LlmMessageOrigin
Sourcepub async fn agent_name(&self) -> Result<String, DaggerError>
pub async fn agent_name(&self) -> Result<String, DaggerError>
The display name of the sending agent (for AGENT origins) or the observed agent (for EVENT origins).
Sourcepub async fn id(&self) -> Result<Id, DaggerError>
pub async fn id(&self) -> Result<Id, DaggerError>
A unique identifier for this LLMMessageOrigin.
Sourcepub async fn kind(&self) -> Result<LlmMessageOriginKind, DaggerError>
pub async fn kind(&self) -> Result<LlmMessageOriginKind, DaggerError>
Who put this message on the record.
Sourcepub async fn ref(&self) -> Result<String, DaggerError>
pub async fn ref(&self) -> Result<String, DaggerError>
The message’s short ref within the receiving agent’s runtime, e.g. “#3”: the deterministic token replies name (send’s replyTo) and the message lookup takes.
Sourcepub async fn reply_to(&self) -> Result<String, DaggerError>
pub async fn reply_to(&self) -> Result<String, DaggerError>
The ref of the message this one answers, in the sender’s own runtime, if any.
Trait Implementations§
Source§impl Clone for LlmMessageOrigin
impl Clone for LlmMessageOrigin
Source§fn clone(&self) -> LlmMessageOrigin
fn clone(&self) -> LlmMessageOrigin
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 moreSource§impl IntoID<Id> for LlmMessageOrigin
impl IntoID<Id> for LlmMessageOrigin
Source§impl Loadable for LlmMessageOrigin
impl Loadable for LlmMessageOrigin
Source§fn graphql_type() -> &'static str
fn graphql_type() -> &'static str
The GraphQL type name (e.g.
"Container").Source§fn from_query(
proc: Option<Arc<DaggerSessionProc>>,
selection: Selection,
graphql_client: DynGraphQLClient,
) -> Self
fn from_query( proc: Option<Arc<DaggerSessionProc>>, selection: Selection, graphql_client: DynGraphQLClient, ) -> Self
Construct this type from a query selection.
Auto Trait Implementations§
impl !RefUnwindSafe for LlmMessageOrigin
impl !UnwindSafe for LlmMessageOrigin
impl Freeze for LlmMessageOrigin
impl Send for LlmMessageOrigin
impl Sync for LlmMessageOrigin
impl Unpin for LlmMessageOrigin
impl UnsafeUnpin for LlmMessageOrigin
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 more