pub struct ResolvedRound {
pub snapshot: Arc<ToolSnapshot>,
pub definitions: Vec<ToolDefinition>,
}Expand description
本轮对话锁定的快照 + 定义。
一旦创建,内容不再变化。充当单轮的“真理之源“。
Fields§
§snapshot: Arc<ToolSnapshot>本轮对话锁定的快照
definitions: Vec<ToolDefinition>为当前 LLM 供给的工具定义(已在前置阶段从快照中提取并平铺)
Implementations§
Source§impl ResolvedRound
impl ResolvedRound
pub fn new(snapshot: Arc<ToolSnapshot>) -> Self
Trait Implementations§
Source§impl Clone for ResolvedRound
impl Clone for ResolvedRound
Source§fn clone(&self) -> ResolvedRound
fn clone(&self) -> ResolvedRound
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for ResolvedRound
impl !UnwindSafe for ResolvedRound
impl Freeze for ResolvedRound
impl Send for ResolvedRound
impl Sync for ResolvedRound
impl Unpin for ResolvedRound
impl UnsafeUnpin for ResolvedRound
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