pub enum Request {
Show 35 variants
Create {
parent: Option<u64>,
params: GenParams,
},
Append {
session: u64,
text: Option<String>,
span: Vec<u32>,
},
AppendMessage {
session: u64,
role: u32,
text: String,
},
Generate {
session: u64,
max_tokens: u32,
},
Read {
session: u64,
cursor: u64,
},
AppendToolResult {
session: u64,
call_id: u64,
content: String,
},
OpenToolCalls {
session: u64,
},
List,
Cancel {
session: u64,
},
Subscribe {
session: u64,
cursor: u64,
provisional: bool,
},
Unsubscribe {
sub: u64,
},
Fork {
session: u64,
at_event: u64,
params: Option<GenParams>,
},
Tree,
Sessions {
include_archived: bool,
},
SetMeta {
session: u64,
expected_version: u64,
title: Option<String>,
archived: Option<bool>,
},
Rebase {
session: u64,
edits: Vec<RebaseEdit>,
params: Option<GenParams>,
},
Purge {
session: u64,
expected_generation: u64,
mode: PurgeMode,
},
SetQos {
session: u64,
class: u8,
batch_invariant: bool,
},
SetBackgroundRate {
divisor: u32,
},
Inspect {
session: u64,
},
SetLogLevel {
directive: String,
},
Metrics,
AppendBlock {
session: u64,
role: u32,
kind: u32,
payload: String,
},
RequestPermission {
session: u64,
call_id: u64,
text: String,
},
RespondPermission {
session: u64,
request_id: u64,
granted: bool,
},
RequestToolCancel {
session: u64,
call_id: u64,
},
AppendToolOutcome {
session: u64,
call_id: u64,
outcome: u8,
note: String,
},
Ledger {
session: u64,
},
PutMedia {
bytes: Vec<u8>,
mime: String,
},
AppendImage {
session: u64,
role: u32,
blob: String,
pre_text: String,
post_text: String,
},
GcMedia,
Complete {
prefix: String,
suffix: String,
mode: u8,
max_tokens: u32,
},
Trim {
session: u64,
to_event: u64,
},
Pin {
session: u64,
ttl_ms: u64,
},
AppendSystem {
session: u64,
text: Option<String>,
tools: Vec<String>,
},
}Variants§
Create
Append
AppendMessage
Generate
Read
AppendToolResult
OpenToolCalls
List
Cancel
Subscribe
Unsubscribe
Fork
Tree
Sessions
SetMeta
Rebase
Purge
SetQos
SetBackgroundRate
Inspect
SetLogLevel
Metrics
AppendBlock
RequestPermission
RespondPermission
RequestToolCancel
AppendToolOutcome
Ledger
PutMedia
AppendImage
GcMedia
Complete
Trim
Pin
AppendSystem
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Request
impl<'de> Deserialize<'de> for Request
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Request
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnsafeUnpin for Request
impl UnwindSafe for Request
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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