pub struct SystemResponse {
pub model: String,
pub answers: HashMap<String, Answer, WireHashState>,
pub usage: Usage,
}Expand description
Evaluation response payload containing answers to all submitted questions.
See https://docs.typesafe.ai/api#response-body for the canonical wire specification.
Fields§
§model: StringThe model backend that performed the evaluation. Required.
answers: HashMap<String, Answer, WireHashState>One answer per question id. Required.
usage: UsageRequired token usage.
Trait Implementations§
Source§impl Clone for SystemResponse
impl Clone for SystemResponse
Source§impl Debug for SystemResponse
impl Debug for SystemResponse
Source§impl<'de> Deserialize<'de> for SystemResponse
impl<'de> Deserialize<'de> for SystemResponse
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 JsonSchema for SystemResponse
impl JsonSchema for SystemResponse
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for SystemResponse
impl PartialEq for SystemResponse
Source§impl Serialize for SystemResponse
impl Serialize for SystemResponse
impl StructuralPartialEq for SystemResponse
Auto Trait Implementations§
impl Freeze for SystemResponse
impl RefUnwindSafe for SystemResponse
impl Send for SystemResponse
impl Sync for SystemResponse
impl Unpin for SystemResponse
impl UnsafeUnpin for SystemResponse
impl UnwindSafe for SystemResponse
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