pub struct CommitBuilder { /* private fields */ }Expand description
Builder for creating commits. The commit ID is computed on build.
Implementations§
Source§impl CommitBuilder
impl CommitBuilder
Sourcepub fn new(
state_root: ObjectId,
agent_id: impl Into<AgentId>,
authority: Authority,
intent: Intent,
) -> Self
pub fn new( state_root: ObjectId, agent_id: impl Into<AgentId>, authority: Authority, intent: Intent, ) -> Self
Start building a commit with the required fields.
Sourcepub fn confidence(self, confidence: f64) -> Self
pub fn confidence(self, confidence: f64) -> Self
Set the confidence score.
Sourcepub fn tool_calls(self, calls: Vec<ToolCall>) -> Self
pub fn tool_calls(self, calls: Vec<ToolCall>) -> Self
Add tool calls.
Auto Trait Implementations§
impl Freeze for CommitBuilder
impl RefUnwindSafe for CommitBuilder
impl Send for CommitBuilder
impl Sync for CommitBuilder
impl Unpin for CommitBuilder
impl UnsafeUnpin for CommitBuilder
impl UnwindSafe for CommitBuilder
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