Skip to main content

SdkCall

Struct SdkCall 

Source
pub struct SdkCall {
Show 15 fields pub sdk: Sdk, pub package: String, pub chain: String, pub member: String, pub request: bool, pub receiver: Receiver, pub routing: Routing, pub client_line: Option<u32>, pub file: String, pub span: Span, pub symbol: Option<String>, pub kwargs: Vec<String>, pub positional: u32, pub splat: bool, pub values: Vec<CapturedValue>,
}
Expand description

A call whose member chain is rooted at a tracked binding.

Fields§

§sdk: Sdk§package: String§chain: String

The callee as written, arguments elided (self.client.chat.completions.create).

§member: String

The part after the tracked root (chat.completions.create), with the response wrappers with_raw_response / with_streaming_response and client copies (with_options(...), copy(...)) removed.

§request: bool

Whether the call sends a request to the provider: its last member is a request method (create, stream, generate_content, send_message…). false for SDK helpers and types (genai.configure, GenerativeModel(...), types.Part(...), ChatCompletion(...) built from openai.types). A name heuristic.

§receiver: Receiver§routing: Routing§client_line: Option<u32>

Line of the same-file construction the receiver came from, if known.

§file: String§span: Span§symbol: Option<String>§kwargs: Vec<String>

Argument names in source order: Python keyword arguments, or the properties of the options object in a language whose SDK methods take one (TypeScript create({ model, messages })).

§positional: u32

Number of positional arguments, the options object excluded.

§splat: bool

Whether arguments were spread into the call (**kwargs; TypeScript ...opts in the options object).

§values: Vec<CapturedValue>

Values for allowlisted keys that resolved to string literals.

Trait Implementations§

Source§

impl Clone for SdkCall

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for SdkCall

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for SdkCall

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for SdkCall

Source§

impl PartialEq for SdkCall

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl Serialize for SdkCall

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for SdkCall

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.