pub enum GenAiOperation {
Chat,
GenerateContent,
TextCompletion,
Embeddings,
ExecuteTool,
InvokeAgent,
}Available on crate feature
telemetry only.Expand description
Well-known GenAI operation names per OTel semconv.
§Example
use adk_telemetry::semconv::GenAiOperation;
assert_eq!(GenAiOperation::Chat.as_str(), "chat");
assert_eq!(GenAiOperation::Embeddings.as_str(), "embeddings");Variants§
Chat
Chat completion.
GenerateContent
Generate content (Gemini-style).
TextCompletion
Text completion (legacy).
Embeddings
Embedding generation.
ExecuteTool
Tool execution.
InvokeAgent
Agent invocation.
Implementations§
Trait Implementations§
Source§impl Clone for GenAiOperation
impl Clone for GenAiOperation
Source§fn clone(&self) -> GenAiOperation
fn clone(&self) -> GenAiOperation
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 Debug for GenAiOperation
impl Debug for GenAiOperation
Source§impl Hash for GenAiOperation
impl Hash for GenAiOperation
Source§impl PartialEq for GenAiOperation
impl PartialEq for GenAiOperation
Source§fn eq(&self, other: &GenAiOperation) -> bool
fn eq(&self, other: &GenAiOperation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for GenAiOperation
impl Eq for GenAiOperation
impl StructuralPartialEq for GenAiOperation
Auto Trait Implementations§
impl Freeze for GenAiOperation
impl RefUnwindSafe for GenAiOperation
impl Send for GenAiOperation
impl Sync for GenAiOperation
impl Unpin for GenAiOperation
impl UnsafeUnpin for GenAiOperation
impl UnwindSafe for GenAiOperation
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.