pub struct Call {Show 16 fields
pub entry: Format,
pub response: Format,
pub operation: Operation,
pub model: String,
pub body: Bytes,
pub stream: bool,
pub alt: Option<String>,
pub headers: HeaderMap,
pub caller: Caller,
pub forced_provider: Option<String>,
pub selection_model: Option<String>,
pub execution_session: Option<String>,
pub request_path: String,
pub peer: Option<SocketAddr>,
pub turn: Option<Arc<SessionTurn>>,
pub media: Option<Arc<Media>>,
}Expand description
One client request, already parsed by its route.
Fields§
§entry: FormatFormat of the client request (Go entry protocol).
response: FormatFormat the client expects back.
operation: Operation§model: StringThe model exactly as the client named it (gjson String(), untrimmed).
body: Bytes§stream: bool§alt: Option<String>§headers: HeaderMap§caller: Caller§forced_provider: Option<String>Skip registry routing and use this provider (Interactions agents).
selection_model: Option<String>Model used for credential selection when it differs from model.
execution_session: Option<String>Go execution_session_id: set by transports with long-lived sessions.
request_path: StringThe matched route (route_path).
peer: Option<SocketAddr>The downstream peer (Go Request.RemoteAddr), when the listener provides it.
turn: Option<Arc<SessionTurn>>A turn of a long-lived downstream session (the Responses WebSocket), None for
ordinary HTTP requests.
media: Option<Arc<Media>>A media route (Go’s openai-image / openai-video / openai-speech handler
types), None for inference routes.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Call
impl !RefUnwindSafe for Call
impl !UnwindSafe for Call
impl Forget for Call
impl Move for Call
impl Send for Call
impl Sync for Call
impl Unpin for Call
impl UnsafeUnpin for Call
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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