pub struct DeepInquireClient(/* private fields */);Expand description
A client for interacting with the DeepInquire API
Implementations§
Trait Implementations§
Source§impl BotClient for DeepInquireClient
impl BotClient for DeepInquireClient
Source§fn bots(&self) -> BoxPlatformSendFuture<'static, ClientResult<Vec<Bot>>>
fn bots(&self) -> BoxPlatformSendFuture<'static, ClientResult<Vec<Bot>>>
Interrupt the bot’s current operation.
Bots available under this client.
Source§fn clone_box(&self) -> Box<dyn BotClient>
fn clone_box(&self) -> Box<dyn BotClient>
Make a boxed dynamic clone of this client to pass around.
Source§fn send(
&mut self,
bot_id: &BotId,
messages: &[Message],
_tools: &[Tool],
) -> BoxPlatformSendStream<'static, ClientResult<MessageContent>>
fn send( &mut self, bot_id: &BotId, messages: &[Message], _tools: &[Tool], ) -> BoxPlatformSendStream<'static, ClientResult<MessageContent>>
Send a message to a bot with support for streamed response. Read more
Source§fn content_widget(
&mut self,
cx: &mut Cx,
previous_widget: WidgetRef,
templates: &HashMap<LiveId, LivePtr>,
content: &MessageContent,
) -> Option<WidgetRef>
fn content_widget( &mut self, cx: &mut Cx, previous_widget: WidgetRef, templates: &HashMap<LiveId, LivePtr>, content: &MessageContent, ) -> Option<WidgetRef>
Optionally override how the content of a message is rendered by Makepad. Read more
Source§impl Clone for DeepInquireClient
impl Clone for DeepInquireClient
Auto Trait Implementations§
impl Freeze for DeepInquireClient
impl RefUnwindSafe for DeepInquireClient
impl Send for DeepInquireClient
impl Sync for DeepInquireClient
impl Unpin for DeepInquireClient
impl UnwindSafe for DeepInquireClient
Blanket Implementations§
§impl<T> ActionTrait for T
impl<T> ActionTrait for T
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