#[non_exhaustive]pub enum Operation {
Show 36 variants
ListModels,
GetModel,
CountTokens,
SummarizeMemory,
GenerateContent,
StreamGenerateContent,
GuardianReview,
GuardianClassify,
CompactContent,
CreateConversation,
CreateEmbedding,
BatchCreateEmbedding,
Rerank,
WebSearch,
CreateImage,
EditImage,
CreateSpeech,
CreateTranscription,
CreateTranslation,
CreateFile,
ListFiles,
RetrieveFile,
RetrieveFileContent,
DeleteFile,
CreateVideo,
RetrieveVideo,
ListVideos,
DeleteVideo,
DownloadVideoContent,
RemixVideo,
CreateVideoCharacter,
GetVideoCharacter,
EditVideo,
ExtendVideo,
CreateRealtimeCall,
ConnectRealtime,
}Expand description
Concrete action.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
ListModels
GetModel
CountTokens
SummarizeMemory
GenerateContent
StreamGenerateContent
GuardianReview
GuardianClassify
CompactContent
CreateConversation
CreateEmbedding
BatchCreateEmbedding
Rerank
WebSearch
CreateImage
EditImage
CreateSpeech
CreateTranscription
CreateTranslation
CreateFile
ListFiles
RetrieveFile
RetrieveFileContent
DeleteFile
CreateVideo
RetrieveVideo
ListVideos
DeleteVideo
DownloadVideoContent
RemixVideo
CreateVideoCharacter
GetVideoCharacter
EditVideo
ExtendVideo
CreateRealtimeCall
SDP handshake creating a WebRTC realtime call (/v1/realtime/calls).
The session’s WS/observer operations arrive with the round-3
websocket-ingress design.
ConnectRealtime
Direct websocket connection to /v1/realtime.
Implementations§
Source§impl Operation
impl Operation
pub const fn is_content_generation(self) -> bool
Sourcepub const fn id(self) -> &'static str
pub const fn id(self) -> &'static str
Stable persistence id. Exhaustive so adding an operation cannot silently collapse into a debug-string or catch-all representation.
pub fn from_id(value: &str) -> Option<Self>
Sourcepub const fn group(self) -> OperationGroup
pub const fn group(self) -> OperationGroup
Exhaustive by design: a new operation fails to compile until its
group — and its spec — exist.
Trait Implementations§
impl Copy for Operation
impl Eq for Operation
impl StructuralPartialEq for Operation
Auto Trait Implementations§
impl Freeze for Operation
impl RefUnwindSafe for Operation
impl Send for Operation
impl Sync for Operation
impl Unpin for Operation
impl UnsafeUnpin for Operation
impl UnwindSafe for Operation
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