pub struct RunInfo<'a> {
pub tools: ToolPolicy,
pub ttl: Duration,
pub attachments: &'a [Attachment],
pub admin: bool,
pub read_only: bool,
}Expand description
What a run needs from the knowledge tools.
Fields§
§tools: ToolPolicyThe run’s tool policy.
ttl: DurationHow long the access stays valid.
attachments: &'a [Attachment]Media the user sent with the messages being answered (offered through a viewing tool).
admin: boolThe requester administers the bot (the owner of a personal bot, or [bot] admins): only
they may create routines and save documents to the shared knowledge.
read_only: boolThe run reads untrusted data (an automation, ADR 0013): the bot’s own tools only read (no memory, task, note or knowledge writes).
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for RunInfo<'a>
impl<'a> RefUnwindSafe for RunInfo<'a>
impl<'a> Send for RunInfo<'a>
impl<'a> Sync for RunInfo<'a>
impl<'a> Unpin for RunInfo<'a>
impl<'a> UnsafeUnpin for RunInfo<'a>
impl<'a> UnwindSafe for RunInfo<'a>
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