#[non_exhaustive]pub struct SuggestionInput {
pub answer_record: String,
pub parameters: Option<Struct>,
pub action: Action,
pub send_time: Option<Timestamp>,
/* private fields */
}Available on crate feature
participants only.Expand description
Represents the action to take for a tool call that requires confirmation.
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.answer_record: StringRequired. Format: projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>
The answer record associated with the tool call.
parameters: Option<Struct>Optional. Parameters to be used for the tool call. If not provided, the tool will be called without any parameters.
action: ActionOptional. The type of action to take with the tool.
send_time: Option<Timestamp>Optional. Time when the current suggest input is sent. For tool calls, this timestamp (along with the answer record) will be included in the corresponding tool call result so that it can be identified.
Implementations§
Source§impl SuggestionInput
impl SuggestionInput
pub fn new() -> Self
Sourcepub fn set_answer_record<T: Into<String>>(self, v: T) -> Self
pub fn set_answer_record<T: Into<String>>(self, v: T) -> Self
Sets the value of answer_record.
§Example
ⓘ
let x = SuggestionInput::new().set_answer_record("example");Sourcepub fn set_parameters<T>(self, v: T) -> Self
pub fn set_parameters<T>(self, v: T) -> Self
Sets the value of parameters.
§Example
ⓘ
use wkt::Struct;
let x = SuggestionInput::new().set_parameters(Struct::default()/* use setters */);Sourcepub fn set_or_clear_parameters<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_parameters<T>(self, v: Option<T>) -> Self
Sets or clears the value of parameters.
§Example
ⓘ
use wkt::Struct;
let x = SuggestionInput::new().set_or_clear_parameters(Some(Struct::default()/* use setters */));
let x = SuggestionInput::new().set_or_clear_parameters(None::<Struct>);Sourcepub fn set_action<T: Into<Action>>(self, v: T) -> Self
pub fn set_action<T: Into<Action>>(self, v: T) -> Self
Sourcepub fn set_send_time<T>(self, v: T) -> Self
pub fn set_send_time<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_send_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_send_time<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for SuggestionInput
impl Clone for SuggestionInput
Source§fn clone(&self) -> SuggestionInput
fn clone(&self) -> SuggestionInput
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SuggestionInput
impl Debug for SuggestionInput
Source§impl Default for SuggestionInput
impl Default for SuggestionInput
Source§fn default() -> SuggestionInput
fn default() -> SuggestionInput
Returns the “default value” for a type. Read more
Source§impl Message for SuggestionInput
impl Message for SuggestionInput
Source§impl PartialEq for SuggestionInput
impl PartialEq for SuggestionInput
impl StructuralPartialEq for SuggestionInput
Auto Trait Implementations§
impl Freeze for SuggestionInput
impl RefUnwindSafe for SuggestionInput
impl Send for SuggestionInput
impl Sync for SuggestionInput
impl Unpin for SuggestionInput
impl UnwindSafe for SuggestionInput
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