pub struct EvalPayload {
pub instruction: String,
pub extra: Map<String, Value>,
}Expand description
The required instruction is typed at the declaration and saved-request boundaries; owner-defined context remains extensible JSON with the same object representation.
Fields§
§instruction: String§extra: Map<String, Value>Trait Implementations§
Source§impl Clone for EvalPayload
impl Clone for EvalPayload
Source§impl Debug for EvalPayload
impl Debug for EvalPayload
Source§impl<'de> Deserialize<'de> for EvalPayload
impl<'de> Deserialize<'de> for EvalPayload
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&EvalPayload> for StoredPayload
impl From<&EvalPayload> for StoredPayload
Source§fn from(payload: &EvalPayload) -> Self
fn from(payload: &EvalPayload) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EvalPayload
impl RefUnwindSafe for EvalPayload
impl Send for EvalPayload
impl Sync for EvalPayload
impl Unpin for EvalPayload
impl UnsafeUnpin for EvalPayload
impl UnwindSafe for EvalPayload
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> IntoToolOutput for Twhere
T: Serialize + 'static,
impl<T> IntoToolOutput for Twhere
T: Serialize + 'static,
Source§fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
fn into_tool_output(self) -> Result<ToolOutput, ToolExecutionError>
Convert this value without routing structured data through a string.