#[non_exhaustive]pub struct CodeAskInput {
pub org: Option<String>,
pub namespace: Option<String>,
pub agent: Option<String>,
pub user_id: Option<String>,
pub consumer: Option<String>,
pub question: String,
pub synthesize: Option<bool>,
pub rerank: Option<String>,
pub no_cache: Option<bool>,
pub token_budget: Option<Option<Integer>>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.org: Option<String>§namespace: Option<String>§agent: Option<String>§user_id: Option<String>§consumer: Option<String>§question: String§synthesize: Option<bool>§rerank: Option<String>§no_cache: Option<bool>§token_budget: Option<Option<Integer>>Implementations§
Source§impl CodeAskInput
impl CodeAskInput
pub fn new(question: impl Into<String>) -> Self
pub fn org(self, org: impl Into<String>) -> Self
pub fn namespace(self, namespace: impl Into<String>) -> Self
pub fn agent(self, agent: impl Into<String>) -> Self
pub fn user_id(self, user_id: impl Into<String>) -> Self
pub fn consumer(self, consumer: impl Into<String>) -> Self
pub fn synthesize(self, synthesize: bool) -> Self
pub fn rerank(self, rerank: impl Into<String>) -> Self
pub fn no_cache(self, no_cache: bool) -> Self
pub fn token_budget(self, token_budget: impl Into<Integer>) -> Self
pub fn token_budget_null(self) -> Self
pub async fn send( self, client: &Client, options: CallOptions, ) -> Result<CallResult<CodeAskOutput>, CallFailure>
Trait Implementations§
Source§impl Clone for CodeAskInput
impl Clone for CodeAskInput
Source§impl Debug for CodeAskInput
impl Debug for CodeAskInput
Source§impl<'de> Deserialize<'de> for CodeAskInput
impl<'de> Deserialize<'de> for CodeAskInput
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
Source§impl PartialEq for CodeAskInput
impl PartialEq for CodeAskInput
Source§impl Serialize for CodeAskInput
impl Serialize for CodeAskInput
impl StructuralPartialEq for CodeAskInput
Auto Trait Implementations§
impl Forget for CodeAskInput
impl Freeze for CodeAskInput
impl Move for CodeAskInput
impl RefUnwindSafe for CodeAskInput
impl Send for CodeAskInput
impl Sync for CodeAskInput
impl Unpin for CodeAskInput
impl UnsafeUnpin for CodeAskInput
impl UnwindSafe for CodeAskInput
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