pub struct GenaiCreateEvaluationDatasetBody {
pub dataset_type: GenaiCreateEvaluationDatasetBodyDatasetType,
pub file_upload_dataset: Option<GenaiCreateEvaluationDatasetBodyFileUploadDataset>,
pub name: Option<String>,
}Expand description
Creates an evaluation dataset for an agent
JSON schema
{
"description": "Creates an evaluation dataset for an agent",
"type": "object",
"properties": {
"dataset_type": {
"default": "EVALUATION_DATASET_TYPE_UNKNOWN",
"examples": [
"EVALUATION_DATASET_TYPE_UNKNOWN"
],
"type": "string",
"enum": [
"EVALUATION_DATASET_TYPE_UNKNOWN",
"EVALUATION_DATASET_TYPE_ADK",
"EVALUATION_DATASET_TYPE_NON_ADK",
"EVALUATION_DATASET_TYPE_MODEL"
]
},
"file_upload_dataset": {
"description": "File to upload as data source for knowledge base.",
"type": "object",
"properties": {
"original_file_name": {
"description": "The original file name",
"examples": [
"example name"
],
"type": "string"
},
"size_in_bytes": {
"description": "The size of the file in bytes",
"examples": [
"12345"
],
"type": "string",
"format": "uint64"
},
"stored_object_key": {
"description": "The object key the file was stored as",
"examples": [
"example string"
],
"type": "string"
}
}
},
"name": {
"description": "The name of the agent evaluation dataset.",
"examples": [
"example name"
],
"type": "string"
}
}
}Fields§
§dataset_type: GenaiCreateEvaluationDatasetBodyDatasetType§file_upload_dataset: Option<GenaiCreateEvaluationDatasetBodyFileUploadDataset>§name: Option<String>The name of the agent evaluation dataset.
Trait Implementations§
Source§impl Clone for GenaiCreateEvaluationDatasetBody
impl Clone for GenaiCreateEvaluationDatasetBody
Source§fn clone(&self) -> GenaiCreateEvaluationDatasetBody
fn clone(&self) -> GenaiCreateEvaluationDatasetBody
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 moreSource§impl<'de> Deserialize<'de> for GenaiCreateEvaluationDatasetBody
impl<'de> Deserialize<'de> for GenaiCreateEvaluationDatasetBody
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<&GenaiCreateEvaluationDatasetBody> for GenaiCreateEvaluationDatasetBody
impl From<&GenaiCreateEvaluationDatasetBody> for GenaiCreateEvaluationDatasetBody
Source§fn from(value: &GenaiCreateEvaluationDatasetBody) -> Self
fn from(value: &GenaiCreateEvaluationDatasetBody) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GenaiCreateEvaluationDatasetBody
impl RefUnwindSafe for GenaiCreateEvaluationDatasetBody
impl Send for GenaiCreateEvaluationDatasetBody
impl Sync for GenaiCreateEvaluationDatasetBody
impl Unpin for GenaiCreateEvaluationDatasetBody
impl UnsafeUnpin for GenaiCreateEvaluationDatasetBody
impl UnwindSafe for GenaiCreateEvaluationDatasetBody
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