pub struct ToolCallEndParams<'a> {
pub handle: &'a ToolHandle,
pub result: Json,
pub data: Option<Json>,
pub metadata: Option<Json>,
pub timestamp: Option<DateTime<Utc>>,
}Expand description
Builder parameters for tool_call_end.
Fields§
§handle: &'a ToolHandleTool handle to close.
result: JsonRaw tool result associated with the end event.
data: Option<Json>Optional application payload retained for compatibility; ATOF data is the result.
metadata: Option<Json>Optional JSON metadata recorded on the end event.
timestamp: Option<DateTime<Utc>>Optional timestamp recorded on the emitted end event. When omitted, the runtime records the current UTC time, or one microsecond after the handle start time if the current time is not later.
Implementations§
Source§impl<'a> ToolCallEndParams<'a>
impl<'a> ToolCallEndParams<'a>
Sourcepub fn builder() -> ToolCallEndParamsBuilder<'a, ((), (), (), (), ())>
pub fn builder() -> ToolCallEndParamsBuilder<'a, ((), (), (), (), ())>
Create a builder for building ToolCallEndParams.
On the builder, call .handle(...), .result(...), .data(...)(optional), .metadata(...)(optional), .timestamp(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of ToolCallEndParams.
Auto Trait Implementations§
impl<'a> Freeze for ToolCallEndParams<'a>
impl<'a> RefUnwindSafe for ToolCallEndParams<'a>
impl<'a> Send for ToolCallEndParams<'a>
impl<'a> Sync for ToolCallEndParams<'a>
impl<'a> Unpin for ToolCallEndParams<'a>
impl<'a> UnsafeUnpin for ToolCallEndParams<'a>
impl<'a> UnwindSafe for ToolCallEndParams<'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
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request