{"openapi":"3.1.0","info":{"title":"kaidol-agent","description":"API for interacting with the Agent kaidol-agent","version":"0.1.0"},"paths":{"/list-apps":{"get":{"summary":"List Apps","operationId":"list_apps_list_apps_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"items":{"type":"string"},"type":"array","title":"Response List Apps List Apps Get"}}}}}}},"/debug/trace/{event_id}":{"get":{"tags":["Debug"],"summary":"Get Trace Dict","operationId":"get_trace_dict_debug_trace__event_id__get","parameters":[{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Get Trace Dict Debug Trace  Event Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/debug/trace/session/{session_id}":{"get":{"tags":["Debug"],"summary":"Get Session Trace","operationId":"get_session_trace_debug_trace_session__session_id__get","parameters":[{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"title":"Response Get Session Trace Debug Trace Session  Session Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/apps/{app_name}/users/{user_id}/sessions/{session_id}":{"get":{"summary":"Get Session","operationId":"get_session_apps__app_name__users__user_id__sessions__session_id__get","parameters":[{"name":"app_name","in":"path","required":true,"schema":{"type":"string","title":"App Name"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Session With Id","operationId":"create_session_with_id_apps__app_name__users__user_id__sessions__session_id__post","parameters":[{"name":"app_name","in":"path","required":true,"schema":{"type":"string","title":"App Name"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"type":"object","additionalProperties":true},{"type":"null"}],"title":"State"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Session","operationId":"delete_session_apps__app_name__users__user_id__sessions__session_id__delete","parameters":[{"name":"app_name","in":"path","required":true,"schema":{"type":"string","title":"App Name"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"null","title":"Response Delete Session Apps  App Name  Users  User Id  Sessions  Session Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/apps/{app_name}/users/{user_id}/sessions":{"get":{"summary":"List Sessions","operationId":"list_sessions_apps__app_name__users__user_id__sessions_get","parameters":[{"name":"app_name","in":"path","required":true,"schema":{"type":"string","title":"App Name"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/Session"},"title":"Response List Sessions Apps  App Name  Users  User Id  Sessions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"summary":"Create Session","operationId":"create_session_apps__app_name__users__user_id__sessions_post","parameters":[{"name":"app_name","in":"path","required":true,"schema":{"type":"string","title":"App Name"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/CreateSessionRequest"},{"type":"null"}],"title":"Req"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Session"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/apps/{app_name}/eval-sets":{"post":{"tags":["Evaluation"],"summary":"Create Eval Set","operationId":"create_eval_set_apps__app_name__eval_sets_post","parameters":[{"name":"app_name","in":"path","required":true,"schema":{"type":"string","title":"App Name"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateEvalSetRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvalSet-Output"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"tags":["Evaluation"],"summary":"List Eval Sets","description":"Lists all eval sets for the given app.","operationId":"list_eval_sets_apps__app_name__eval_sets_get","parameters":[{"name":"app_name","in":"path","required":true,"schema":{"type":"string","title":"App Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListEvalSetsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/apps/{app_name}/eval_sets/{eval_set_id}":{"post":{"tags":["Evaluation"],"summary":"Create Eval Set Legacy","description":"Creates an eval set, given the id.","operationId":"create_eval_set_legacy_apps__app_name__eval_sets__eval_set_id__post","parameters":[{"name":"app_name","in":"path","required":true,"schema":{"type":"string","title":"App Name"}},{"name":"eval_set_id","in":"path","required":true,"schema":{"type":"string","title":"Eval Set Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/apps/{app_name}/eval_sets":{"get":{"tags":["Evaluation"],"summary":"List Eval Sets Legacy","operationId":"list_eval_sets_legacy_apps__app_name__eval_sets_get","parameters":[{"name":"app_name","in":"path","required":true,"schema":{"type":"string","title":"App Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"},"title":"Response List Eval Sets Legacy Apps  App Name  Eval Sets Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/apps/{app_name}/eval_sets/{eval_set_id}/add_session":{"post":{"tags":["Evaluation"],"summary":"Add Session To Eval Set","operationId":"add_session_to_eval_set_apps__app_name__eval_sets__eval_set_id__add_session_post","parameters":[{"name":"app_name","in":"path","required":true,"schema":{"type":"string","title":"App Name"}},{"name":"eval_set_id","in":"path","required":true,"schema":{"type":"string","title":"Eval Set Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddSessionToEvalSetRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/apps/{app_name}/eval-sets/{eval_set_id}/add-session":{"post":{"tags":["Evaluation"],"summary":"Add Session To Eval Set","operationId":"add_session_to_eval_set_apps__app_name__eval_sets__eval_set_id__add_session_post","parameters":[{"name":"app_name","in":"path","required":true,"schema":{"type":"string","title":"App Name"}},{"name":"eval_set_id","in":"path","required":true,"schema":{"type":"string","title":"Eval Set Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AddSessionToEvalSetRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/apps/{app_name}/eval_sets/{eval_set_id}/evals":{"get":{"tags":["Evaluation"],"summary":"List Evals In Eval Set","description":"Lists all evals in an eval set.","operationId":"list_evals_in_eval_set_apps__app_name__eval_sets__eval_set_id__evals_get","parameters":[{"name":"app_name","in":"path","required":true,"schema":{"type":"string","title":"App Name"}},{"name":"eval_set_id","in":"path","required":true,"schema":{"type":"string","title":"Eval Set Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"},"title":"Response List Evals In Eval Set Apps  App Name  Eval Sets  Eval Set Id  Evals Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/apps/{app_name}/eval_sets/{eval_set_id}/evals/{eval_case_id}":{"get":{"tags":["Evaluation"],"summary":"Get Eval","description":"Gets an eval case in an eval set.","operationId":"get_eval_apps__app_name__eval_sets__eval_set_id__evals__eval_case_id__get","parameters":[{"name":"app_name","in":"path","required":true,"schema":{"type":"string","title":"App Name"}},{"name":"eval_set_id","in":"path","required":true,"schema":{"type":"string","title":"Eval Set Id"}},{"name":"eval_case_id","in":"path","required":true,"schema":{"type":"string","title":"Eval Case Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvalCase-Output"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Evaluation"],"summary":"Update Eval","operationId":"update_eval_apps__app_name__eval_sets__eval_set_id__evals__eval_case_id__put","parameters":[{"name":"app_name","in":"path","required":true,"schema":{"type":"string","title":"App Name"}},{"name":"eval_set_id","in":"path","required":true,"schema":{"type":"string","title":"Eval Set Id"}},{"name":"eval_case_id","in":"path","required":true,"schema":{"type":"string","title":"Eval Case Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvalCase-Input"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Evaluation"],"summary":"Delete Eval","operationId":"delete_eval_apps__app_name__eval_sets__eval_set_id__evals__eval_case_id__delete","parameters":[{"name":"app_name","in":"path","required":true,"schema":{"type":"string","title":"App Name"}},{"name":"eval_set_id","in":"path","required":true,"schema":{"type":"string","title":"Eval Set Id"}},{"name":"eval_case_id","in":"path","required":true,"schema":{"type":"string","title":"Eval Case Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"null","title":"Response Delete Eval Apps  App Name  Eval Sets  Eval Set Id  Evals  Eval Case Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/apps/{app_name}/eval-sets/{eval_set_id}/eval-cases/{eval_case_id}":{"get":{"tags":["Evaluation"],"summary":"Get Eval","description":"Gets an eval case in an eval set.","operationId":"get_eval_apps__app_name__eval_sets__eval_set_id__eval_cases__eval_case_id__get","parameters":[{"name":"app_name","in":"path","required":true,"schema":{"type":"string","title":"App Name"}},{"name":"eval_set_id","in":"path","required":true,"schema":{"type":"string","title":"Eval Set Id"}},{"name":"eval_case_id","in":"path","required":true,"schema":{"type":"string","title":"Eval Case Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvalCase-Output"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"tags":["Evaluation"],"summary":"Update Eval","operationId":"update_eval_apps__app_name__eval_sets__eval_set_id__eval_cases__eval_case_id__put","parameters":[{"name":"app_name","in":"path","required":true,"schema":{"type":"string","title":"App Name"}},{"name":"eval_set_id","in":"path","required":true,"schema":{"type":"string","title":"Eval Set Id"}},{"name":"eval_case_id","in":"path","required":true,"schema":{"type":"string","title":"Eval Case Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvalCase-Input"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Evaluation"],"summary":"Delete Eval","operationId":"delete_eval_apps__app_name__eval_sets__eval_set_id__eval_cases__eval_case_id__delete","parameters":[{"name":"app_name","in":"path","required":true,"schema":{"type":"string","title":"App Name"}},{"name":"eval_set_id","in":"path","required":true,"schema":{"type":"string","title":"Eval Set Id"}},{"name":"eval_case_id","in":"path","required":true,"schema":{"type":"string","title":"Eval Case Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"null","title":"Response Delete Eval Apps  App Name  Eval Sets  Eval Set Id  Eval Cases  Eval Case Id  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/apps/{app_name}/eval_sets/{eval_set_id}/run_eval":{"post":{"tags":["Evaluation"],"summary":"Run Eval Legacy","operationId":"run_eval_legacy_apps__app_name__eval_sets__eval_set_id__run_eval_post","parameters":[{"name":"app_name","in":"path","required":true,"schema":{"type":"string","title":"App Name"}},{"name":"eval_set_id","in":"path","required":true,"schema":{"type":"string","title":"Eval Set Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEvalRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/RunEvalResult"},"title":"Response Run Eval Legacy Apps  App Name  Eval Sets  Eval Set Id  Run Eval Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/apps/{app_name}/eval-sets/{eval_set_id}/run":{"post":{"tags":["Evaluation"],"summary":"Run Eval","description":"Runs an eval given the details in the eval request.","operationId":"run_eval_apps__app_name__eval_sets__eval_set_id__run_post","parameters":[{"name":"app_name","in":"path","required":true,"schema":{"type":"string","title":"App Name"}},{"name":"eval_set_id","in":"path","required":true,"schema":{"type":"string","title":"Eval Set Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEvalRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunEvalResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/apps/{app_name}/eval-results/{eval_result_id}":{"get":{"tags":["Evaluation"],"summary":"Get Eval Result","description":"Gets the eval result for the given eval id.","operationId":"get_eval_result_apps__app_name__eval_results__eval_result_id__get","parameters":[{"name":"app_name","in":"path","required":true,"schema":{"type":"string","title":"App Name"}},{"name":"eval_result_id","in":"path","required":true,"schema":{"type":"string","title":"Eval Result Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvalResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/apps/{app_name}/eval_results/{eval_result_id}":{"get":{"tags":["Evaluation"],"summary":"Get Eval Result Legacy","operationId":"get_eval_result_legacy_apps__app_name__eval_results__eval_result_id__get","parameters":[{"name":"app_name","in":"path","required":true,"schema":{"type":"string","title":"App Name"}},{"name":"eval_result_id","in":"path","required":true,"schema":{"type":"string","title":"Eval Result Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvalSetResult"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/apps/{app_name}/eval-results":{"get":{"tags":["Evaluation"],"summary":"List Eval Results","description":"Lists all eval results for the given app.","operationId":"list_eval_results_apps__app_name__eval_results_get","parameters":[{"name":"app_name","in":"path","required":true,"schema":{"type":"string","title":"App Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListEvalResultsResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/apps/{app_name}/eval_results":{"get":{"tags":["Evaluation"],"summary":"List Eval Results Legacy","operationId":"list_eval_results_legacy_apps__app_name__eval_results_get","parameters":[{"name":"app_name","in":"path","required":true,"schema":{"type":"string","title":"App Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"},"title":"Response List Eval Results Legacy Apps  App Name  Eval Results Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/apps/{app_name}/metrics-info":{"get":{"tags":["Evaluation"],"summary":"List Metrics Info","description":"Lists all eval metrics for the given app.","operationId":"list_metrics_info_apps__app_name__metrics_info_get","parameters":[{"name":"app_name","in":"path","required":true,"schema":{"type":"string","title":"App Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListMetricsInfoResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/apps/{app_name}/users/{user_id}/sessions/{session_id}/artifacts/{artifact_name}":{"get":{"summary":"Load Artifact","operationId":"load_artifact_apps__app_name__users__user_id__sessions__session_id__artifacts__artifact_name__get","parameters":[{"name":"app_name","in":"path","required":true,"schema":{"type":"string","title":"App Name"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"artifact_name","in":"path","required":true,"schema":{"type":"string","title":"Artifact Name"}},{"name":"version","in":"query","required":false,"schema":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Version"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Part-Output"},{"type":"null"}],"title":"Response Load Artifact Apps  App Name  Users  User Id  Sessions  Session Id  Artifacts  Artifact Name  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Delete Artifact","operationId":"delete_artifact_apps__app_name__users__user_id__sessions__session_id__artifacts__artifact_name__delete","parameters":[{"name":"app_name","in":"path","required":true,"schema":{"type":"string","title":"App Name"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"artifact_name","in":"path","required":true,"schema":{"type":"string","title":"Artifact Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"null","title":"Response Delete Artifact Apps  App Name  Users  User Id  Sessions  Session Id  Artifacts  Artifact Name  Delete"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/apps/{app_name}/users/{user_id}/sessions/{session_id}/artifacts/{artifact_name}/versions/{version_id}":{"get":{"summary":"Load Artifact Version","operationId":"load_artifact_version_apps__app_name__users__user_id__sessions__session_id__artifacts__artifact_name__versions__version_id__get","parameters":[{"name":"app_name","in":"path","required":true,"schema":{"type":"string","title":"App Name"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"artifact_name","in":"path","required":true,"schema":{"type":"string","title":"Artifact Name"}},{"name":"version_id","in":"path","required":true,"schema":{"type":"integer","title":"Version Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"anyOf":[{"$ref":"#/components/schemas/Part-Output"},{"type":"null"}],"title":"Response Load Artifact Version Apps  App Name  Users  User Id  Sessions  Session Id  Artifacts  Artifact Name  Versions  Version Id  Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/apps/{app_name}/users/{user_id}/sessions/{session_id}/artifacts":{"get":{"summary":"List Artifact Names","operationId":"list_artifact_names_apps__app_name__users__user_id__sessions__session_id__artifacts_get","parameters":[{"name":"app_name","in":"path","required":true,"schema":{"type":"string","title":"App Name"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"string"},"title":"Response List Artifact Names Apps  App Name  Users  User Id  Sessions  Session Id  Artifacts Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/apps/{app_name}/users/{user_id}/sessions/{session_id}/artifacts/{artifact_name}/versions":{"get":{"summary":"List Artifact Versions","operationId":"list_artifact_versions_apps__app_name__users__user_id__sessions__session_id__artifacts__artifact_name__versions_get","parameters":[{"name":"app_name","in":"path","required":true,"schema":{"type":"string","title":"App Name"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"artifact_name","in":"path","required":true,"schema":{"type":"string","title":"Artifact Name"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"array","items":{"type":"integer"},"title":"Response List Artifact Versions Apps  App Name  Users  User Id  Sessions  Session Id  Artifacts  Artifact Name  Versions Get"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/apps/{app_name}/users/{user_id}/memory":{"patch":{"summary":"Patch Memory","description":"Adds all events from a given session to the memory service.\n\nArgs:\n    app_name: The name of the application.\n    user_id: The ID of the user.\n    update_memory_request: The memory request for the update\n\nRaises:\n    HTTPException: If the memory service is not configured or the request is invalid.","operationId":"patch_memory_apps__app_name__users__user_id__memory_patch","parameters":[{"name":"app_name","in":"path","required":true,"schema":{"type":"string","title":"App Name"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UpdateMemoryRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"null","title":"Response Patch Memory Apps  App Name  Users  User Id  Memory Patch"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/apps/{app_name}/users/{user_id}/sessions/{session_id}/events/{event_id}/graph":{"get":{"tags":["Debug"],"summary":"Get Event Graph","operationId":"get_event_graph_apps__app_name__users__user_id__sessions__session_id__events__event_id__graph_get","parameters":[{"name":"app_name","in":"path","required":true,"schema":{"type":"string","title":"App Name"}},{"name":"user_id","in":"path","required":true,"schema":{"type":"string","title":"User Id"}},{"name":"session_id","in":"path","required":true,"schema":{"type":"string","title":"Session Id"}},{"name":"event_id","in":"path","required":true,"schema":{"type":"string","title":"Event Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/run":{"post":{"tags":["대화"],"summary":"캐릭터 AI 대화 실행","description":"캐릭터 AI와 대화를 수행합니다.\n\n## 개요\n사용자 메시지를 받아 캐릭터 AI가 응답을 생성합니다.\n스트리밍이 필요한 경우 `/run_sse` 엔드포인트를 사용하세요.\n\n## 필수 요구사항\n\n### conversation_id (필수)\n- `state_delta.conversation_id`는 **필수** 파라미터입니다\n- Redis에서 대화 프로필을 조회하는 키로 사용됩니다\n- 프로필 키 형식: `conversation:{conversation_id}:profile`\n- 프로필에는 `character_id`가 반드시 포함되어야 합니다\n\n### 세션 생성\n- 요청 전에 `/apps/{app_name}/users/{user_id}/sessions` API로 세션을 먼저 생성해야 합니다\n\n## 처리 흐름\n\n1. ADK 에이전트 실행\n2. Redis에서 profile 조회 (conversation_id 기반)\n   - `character_id`: 캐릭터 식별자 (필수)\n   - `unlocked_backstories`: 해금된 백스토리 ID 목록 (선택)\n3. 가드레일 검사 (성적/폭력 콘텐츠 차단)\n4. 응답 텍스트 및 감정 추출\n5. 메시지 큐로 대화 기록 발행\n\n## 응답 필드\n\n| 필드 | 타입 | 설명 |\n|------|------|------|\n| `conversation_id` | string | 대화 ID |\n| `messages` | array | 사용자 메시지 + 캐릭터 응답 |\n| `error_code` | string? | 에러 코드 (에러 시에만 포함) |\n| `metadata` | object | 메타데이터 (model, daily_usage, unlocked_backstories) |\n\n## metadata 필드\n\n| 필드 | 타입 | 설명 |\n|------|------|------|\n| `model` | string | 사용된 LLM 모델명 |\n| `daily_usage.usage_percent` | float? | 일일 사용량 퍼센트 (0-100) |\n| `daily_usage.warning_level` | string? | 경고 레벨: `warning` (75%+), `critical` (90%+) |\n| `unlocked_backstories` | array? | 해금된 백스토리 ID 목록 |\n\n## 인증\n\n`ENABLE_FIREBASE_AUTH=true` 설정 시:\n- `Authorization: Bearer {firebase_token}` 헤더 필수\n- FirebaseAuthMiddleware에서 토큰 검증\n- 인증 정보는 `request.state.auth`에서 접근 가능\n\n## 에러 코드\n\n| 코드 | 설명 |\n|------|------|\n| `DAILY_LIMIT_EXCEEDED` | 일일 사용량 한도 초과 |\n| `BALANCE_INSUFFICIENT` | 코인 잔액 부족 |\n| `GUARDRAIL_SEXUAL_BLOCK` | 성적 콘텐츠 차단 |\n| `GUARDRAIL_VIOLENCE_BLOCK` | 폭력 콘텐츠 차단 |\n| `INTERNAL_ERROR` | 내부 서버 에러 |\n\n## 관련 환경변수\n\n- `USER_SERVICE_BASE_URL`: 유저 티어 서비스 URL (프리미엄/무료 구분)\n- `REDIS_URL`: Redis 연결 URL (conversation profile 조회)\n- `MESSAGE_QUEUE_URL`: 메시지 큐 URL (대화 기록 발행)\n- `ENABLE_FIREBASE_AUTH`: Firebase 인증 활성화 여부","operationId":"custom_run_agent_run_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunAgentRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendMessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/run_sse":{"post":{"tags":["대화"],"summary":"캐릭터 AI 대화 실행 (SSE 스트리밍)","description":"캐릭터 AI와 실시간 스트리밍 대화를 수행합니다.\n\n## 개요\n`/run` 엔드포인트와 동일한 기능을 수행하지만, 응답을 SSE(Server-Sent Events) 스트리밍으로 반환합니다.\n실시간으로 텍스트가 생성되는 것을 클라이언트에서 확인할 수 있습니다.\n\n## 필수 요구사항\n\n### conversation_id (필수)\n- `state_delta.conversation_id`는 **필수** 파라미터입니다\n- Redis에서 대화 프로필을 조회하는 키로 사용됩니다\n- 프로필 키 형식: `conversation:{conversation_id}:profile`\n- 프로필에는 `character_id`가 반드시 포함되어야 합니다\n\n### 세션 생성\n- 요청 전에 `/apps/{app_name}/users/{user_id}/sessions` API로 세션을 먼저 생성해야 합니다\n\n## SSE 이벤트 형식\n\n각 이벤트는 `event: {type}\\ndata: {json}\\n\\n` 형식으로 전송됩니다.\n\n| 이벤트 | 설명 | 데이터 필드 |\n|--------|------|-------------|\n| `stream_start` | 스트리밍 시작 | `conversation_id`, `message_id` |\n| `text_delta` | 텍스트 조각 (증분) | `delta` |\n| `text_done` | 전체 텍스트 완료 | `content` |\n| `emotion` | 캐릭터 감정 | `emotion` |\n| `stream_end` | 스트리밍 종료 | `conversation_id`, `message_id`, `unlocked_backstories?` |\n| `error` | 에러 발생 | `error_code`, `message` |\n\n> **참고**: `stream_end` 이벤트의 `unlocked_backstories`는 Redis profile에 값이 있을 때만 포함됩니다.\n\n## 에러 코드\n\n| 코드 | 설명 |\n|------|------|\n| `SESSION_NOT_FOUND` | 세션을 찾을 수 없음 |\n| `MISSING_CONVERSATION_ID` | conversation_id 누락 |\n| `CHARACTER_NOT_FOUND` | Redis에서 character_id를 찾을 수 없음 |\n| `DAILY_LIMIT_EXCEEDED` | 일일 사용량 한도 초과 |\n| `BALANCE_INSUFFICIENT` | 코인 잔액 부족 |\n| `GUARDRAIL_SEXUAL_BLOCK` | 성적 콘텐츠 차단 |\n| `GUARDRAIL_VIOLENCE_BLOCK` | 폭력 콘텐츠 차단 |\n| `STREAM_TIMEOUT` | 응답 생성 시간 초과 (SSE_STREAM_TIMEOUT_S 초과) |\n| `HTTP_ERROR` | HTTP 에러 |\n| `INTERNAL_ERROR` | 내부 서버 에러 |\n\n## 관련 환경변수\n\n- `USER_SERVICE_BASE_URL`: 유저 티어 서비스 URL (프리미엄/무료 구분)\n- `REDIS_URL`: Redis 연결 URL (conversation profile 조회)\n- `MESSAGE_QUEUE_URL`: 메시지 큐 URL (대화 기록 발행)\n- `SSE_STREAM_TIMEOUT_S`: 스트림 전체 wall-clock 타임아웃(초, 기본 180, 0이면 비활성)\n- `SSE_DISCONNECT_POLL_INTERVAL_EVENTS`: 클라이언트 연결 끊김 체크 주기(이벤트 단위)","operationId":"custom_run_agent_sse_run_sse_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RunAgentRequest"}}},"required":true},"responses":{"200":{"description":"SSE 스트리밍 응답","content":{"application/json":{"schema":{}},"text/event-stream":{"example":"event: stream_start\ndata: {\"conversation_id\": \"conv_abc123\", \"message_id\": \"msg_char_12345678\"}\n\nevent: text_delta\ndata: {\"delta\": \"안녕\"}\n\nevent: text_delta\ndata: {\"delta\": \"! 오늘 \"}\n\nevent: text_delta\ndata: {\"delta\": \"기분이 좋아 ㅎㅎ\"}\n\nevent: text_done\ndata: {\"content\": \"안녕! 오늘 기분이 좋아 ㅎㅎ\"}\n\nevent: emotion\ndata: {\"emotion\": \"joy\"}\n\nevent: stream_end\ndata: {\"conversation_id\": \"conv_abc123\", \"message_id\": \"msg_char_12345678\", \"unlocked_backstories\": [\"backstory_first_meeting\"]}\n"}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"tags":["health"],"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/version":{"get":{"tags":["version"],"summary":"Version","operationId":"version_version_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/inactivity_push":{"post":{"tags":["inactivity_push"],"summary":"비활성 유저 선톡 케이스1 LLM 메시지 생성","description":"kaidol-api 의 InactivityPushDispatcher 내부 호출 전용. Opik prompt `inactivity_push_{character_id}` 를 fetch 해 최근 대화/유저 정보를 주입한 system prompt 로 한 줄 메시지를 생성한다.","operationId":"generate_inactivity_push_inactivity_push_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InactivityPushRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InactivityPushResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sessions/append_character_message":{"post":{"tags":["session_sync"],"summary":"선톡 메시지를 ADK 세션에 model 턴으로 추가","description":"kaidol-api 내부 호출 전용. `/run` 을 거치지 않는 선톡 생성 경로(`/inactivity_push`, 휴면 고정 풀)의 메시지를 ADK 세션에 직접 추가해 다음 일반 대화 멀티턴 히스토리에 포함되게 한다.","operationId":"append_message_sessions_append_character_message_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppendCharacterMessageRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppendCharacterMessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/sessions/append_user_message":{"post":{"tags":["session_sync"],"summary":"OFF 기간 유저 메시지를 ADK 세션에 user 턴으로 추가","description":"kaidol-api 내부 호출 전용. 캐릭터가 AWAY/IGNORED 일 때 `should_skip_llm` 으로 LLM 을 건너뛴 유저 메시지 중, 화해 stage 를 넘기지 못해 reconcile `/run` 으로 replay 되지 않는(sub-threshold) 메시지를 ADK 세션에 직접 추가해 다음 일반 대화 멀티턴 히스토리에 포함되게 한다.","operationId":"append_user_sessions_append_user_message_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppendUserMessageRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AppendUserMessageResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"ABTestResultModel":{"properties":{"model":{"type":"string","title":"Model","description":"테스트된 모델명 (예: 'thinking/gemini-2.5-flash-lite')"},"raw_content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Raw Content","description":"원본 응답 (파싱 전, <think> 태그 등 포함)"},"content":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Content","description":"파싱된 응답 텍스트"},"emotion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Emotion","description":"추출된 감정"},"latency_ms":{"type":"integer","title":"Latency Ms","description":"응답 지연 시간 (밀리초)"},"error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error","description":"에러 메시지 (실패 시)"}},"type":"object","required":["model","latency_ms"],"title":"ABTestResult","description":"A/B 테스트 결과 모델\n\n개별 모델의 A/B 테스트 결과를 나타냅니다. (dev 환경 전용)","example":{"content":"안녕! 오늘 기분이 좋아~","emotion":"joy","latency_ms":1234,"model":"thinking/gemini-2.5-flash-lite","raw_content":"<think>사용자가 인사를 했네...</think>안녕! 오늘 기분이 좋아~"}},"APIKey":{"properties":{"type":{"$ref":"#/components/schemas/SecuritySchemeType","default":"apiKey"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"in":{"$ref":"#/components/schemas/APIKeyIn"},"name":{"type":"string","title":"Name"}},"additionalProperties":true,"type":"object","required":["in","name"],"title":"APIKey"},"APIKeyIn":{"type":"string","enum":["query","header","cookie"],"title":"APIKeyIn"},"AddSessionToEvalSetRequest":{"properties":{"evalId":{"type":"string","title":"Evalid"},"sessionId":{"type":"string","title":"Sessionid"},"userId":{"type":"string","title":"Userid"}},"type":"object","required":["evalId","sessionId","userId"],"title":"AddSessionToEvalSetRequest"},"AgentDetails-Input":{"properties":{"name":{"type":"string","title":"Name"},"instructions":{"type":"string","title":"Instructions","default":""},"toolDeclarations":{"items":{"anyOf":[{"$ref":"#/components/schemas/google__genai__types__Tool-Input"},{"$ref":"#/components/schemas/mcp__types__Tool"}]},"type":"array","title":"Tooldeclarations"}},"additionalProperties":false,"type":"object","required":["name"],"title":"AgentDetails","description":"Details about the individual agent in the App.\n\nThis could be a root agent or the sub-agents in the Agent Tree."},"AgentDetails-Output":{"properties":{"name":{"type":"string","title":"Name"},"instructions":{"type":"string","title":"Instructions","default":""},"toolDeclarations":{"items":{"anyOf":[{"$ref":"#/components/schemas/google__genai__types__Tool-Output"},{"$ref":"#/components/schemas/mcp__types__Tool"}]},"type":"array","title":"Tooldeclarations"}},"additionalProperties":false,"type":"object","required":["name"],"title":"AgentDetails","description":"Details about the individual agent in the App.\n\nThis could be a root agent or the sub-agents in the Agent Tree."},"ApiAuth":{"properties":{"apiKeyConfig":{"anyOf":[{"$ref":"#/components/schemas/ApiAuthApiKeyConfig"},{"type":"null"}],"description":"The API secret."}},"additionalProperties":false,"type":"object","title":"ApiAuth","description":"The generic reusable api auth config.\n\nDeprecated. Please use AuthConfig (google/cloud/aiplatform/master/auth.proto)\ninstead."},"ApiAuthApiKeyConfig":{"properties":{"apiKeySecretVersion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apikeysecretversion","description":"Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}"},"apiKeyString":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apikeystring","description":"The API key string. Either this or `api_key_secret_version` must be set."}},"additionalProperties":false,"type":"object","title":"ApiAuthApiKeyConfig","description":"The API secret."},"ApiKeyConfig":{"properties":{"apiKeyString":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apikeystring","description":"The API key to be used in the request directly."}},"additionalProperties":false,"type":"object","title":"ApiKeyConfig","description":"Config for authentication with API key."},"ApiSpec":{"type":"string","enum":["API_SPEC_UNSPECIFIED","SIMPLE_SEARCH","ELASTIC_SEARCH"],"title":"ApiSpec","description":"The API spec that the external API implements."},"AppDetails-Input":{"properties":{"agentDetails":{"additionalProperties":{"$ref":"#/components/schemas/AgentDetails-Input"},"type":"object","title":"Agentdetails"}},"additionalProperties":false,"type":"object","title":"AppDetails","description":"Contains details about the App (the agentic system).\n\nThis structure is only a projection of the acutal app. Only details\nthat are relevant to the Eval System are captured here."},"AppDetails-Output":{"properties":{"agentDetails":{"additionalProperties":{"$ref":"#/components/schemas/AgentDetails-Output"},"type":"object","title":"Agentdetails"}},"additionalProperties":false,"type":"object","title":"AppDetails","description":"Contains details about the App (the agentic system).\n\nThis structure is only a projection of the acutal app. Only details\nthat are relevant to the Eval System are captured here."},"AppendCharacterMessageRequest":{"properties":{"app_name":{"type":"string","title":"App Name","description":"ADK app 이름 (kaidol-api 와 동일하게 'app').","default":"app"},"user_id":{"type":"string","title":"User Id","description":"유저 ID (ADK 세션 소유자)."},"session_id":{"type":"string","title":"Session Id","description":"ADK 세션 ID (= kaidol-api Conversation.agent_session_id)."},"content":{"type":"string","minLength":1,"title":"Content","description":"세션에 남길 캐릭터 발화 본문."}},"type":"object","required":["user_id","session_id","content"],"title":"AppendCharacterMessageRequest","description":"ADK 세션에 캐릭터(선톡) 발화를 model 턴으로 추가하는 요청.\n\nkaidol-api 가 선톡(proactive) 메시지를 DB 에 저장한 뒤, 같은 대화의 ADK\n세션에도 model(assistant) 이벤트로 남겨 다음 일반 대화 `/run` 의 멀티턴\n히스토리에 포함되게 한다. 선톡은 `/run` 을 거치지 않는 생성 경로\n(`/inactivity_push`, 휴면 고정 풀)라 ADK runner 의 자동 append 가 일어나지\n않아 그냥 두면 캐릭터가 자기가 보낸 선톡을 다음 대화에서 기억하지 못한다."},"AppendCharacterMessageResponse":{"properties":{"appended":{"type":"boolean","title":"Appended","description":"세션에 이벤트를 추가했으면 True. 세션이 없으면 False."}},"type":"object","required":["appended"],"title":"AppendCharacterMessageResponse","description":"append 결과."},"AppendUserMessageRequest":{"properties":{"app_name":{"type":"string","title":"App Name","description":"ADK app 이름 (kaidol-api 와 동일하게 'app').","default":"app"},"user_id":{"type":"string","minLength":1,"title":"User Id","description":"유저 ID (ADK 세션 소유자)."},"session_id":{"type":"string","minLength":1,"title":"Session Id","description":"ADK 세션 ID (= kaidol-api Conversation.agent_session_id)."},"content":{"type":"string","minLength":1,"title":"Content","description":"세션에 남길 유저 발화 본문."}},"type":"object","required":["user_id","session_id","content"],"title":"AppendUserMessageRequest","description":"ADK 세션에 유저 발화를 user 턴으로 추가하는 요청.\n\n캐릭터가 AWAY/IGNORED(OFF) 상태일 때 유저가 보낸 메시지는 agent `/run` 의\n`should_skip_llm` 분기에서 LLM 을 건너뛰고 곧장 반환돼 ADK runner 의 자동\nappend 가 일어나지 않는다. 그중 화해 stage(50/80/100)를 넘겨 reconcile `/run`\n으로 다시 replay 되는 메시지는 그 경로가 세션에 남기지만, stage 를 넘기지\n못한(sub-threshold) 메시지는 어디에서도 세션에 남지 않아 다음 일반 대화\n멀티턴 히스토리에서 빠진다. kaidol-api 가 그 누락 메시지에 한해 이 요청으로\nuser 턴을 직접 추가한다."},"AppendUserMessageResponse":{"properties":{"appended":{"type":"boolean","title":"Appended","description":"세션에 이벤트를 추가했으면 True. 세션이 없으면 False."}},"type":"object","required":["appended"],"title":"AppendUserMessageResponse","description":"append 결과."},"AuthConfigGoogleServiceAccountConfig":{"properties":{"serviceAccount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Serviceaccount","description":"Optional. The service account that the extension execution service runs as. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified service account. - If not specified, the Vertex AI Extension Service Agent will be used to execute the Extension."}},"additionalProperties":false,"type":"object","title":"AuthConfigGoogleServiceAccountConfig","description":"Config for Google Service Account Authentication."},"AuthConfigHttpBasicAuthConfig":{"properties":{"credentialSecret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credentialsecret","description":"Required. The name of the SecretManager secret version resource storing the base64 encoded credentials. Format: `projects/{project}/secrets/{secrete}/versions/{version}` - If specified, the `secretmanager.versions.access` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the specified resource."}},"additionalProperties":false,"type":"object","title":"AuthConfigHttpBasicAuthConfig","description":"Config for HTTP Basic Authentication."},"AuthConfigOauthConfig":{"properties":{"accessToken":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accesstoken","description":"Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time."},"serviceAccount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Serviceaccount","description":"The service account used to generate access tokens for executing the Extension. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the provided service account."}},"additionalProperties":false,"type":"object","title":"AuthConfigOauthConfig","description":"Config for user oauth."},"AuthConfigOidcConfig":{"properties":{"idToken":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Idtoken","description":"OpenID Connect formatted ID token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time."},"serviceAccount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Serviceaccount","description":"The service account used to generate an OpenID Connect (OIDC)-compatible JWT token signed by the Google OIDC Provider (accounts.google.com) for extension endpoint (https://cloud.google.com/iam/docs/create-short-lived-credentials-direct#sa-credentials-oidc). - The audience for the token will be set to the URL in the server url defined in the OpenApi spec. - If the service account is provided, the service account should grant `iam.serviceAccounts.getOpenIdToken` permission to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents)."}},"additionalProperties":false,"type":"object","title":"AuthConfigOidcConfig","description":"Config for user OIDC auth."},"AuthCredential-Input":{"properties":{"authType":{"$ref":"#/components/schemas/AuthCredentialTypes"},"resourceRef":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resourceref"},"apiKey":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apikey"},"http":{"anyOf":[{"$ref":"#/components/schemas/HttpAuth"},{"type":"null"}]},"serviceAccount":{"anyOf":[{"$ref":"#/components/schemas/ServiceAccount"},{"type":"null"}]},"oauth2":{"anyOf":[{"$ref":"#/components/schemas/OAuth2Auth"},{"type":"null"}]}},"additionalProperties":true,"type":"object","required":["authType"],"title":"AuthCredential","description":"Data class representing an authentication credential.\n\nTo exchange for the actual credential, please use\nCredentialExchanger.exchange_credential().\n\nExamples: API Key Auth\nAuthCredential(\n    auth_type=AuthCredentialTypes.API_KEY,\n    api_key=\"1234\",\n)\n\nExample: HTTP Auth\nAuthCredential(\n    auth_type=AuthCredentialTypes.HTTP,\n    http=HttpAuth(\n        scheme=\"basic\",\n        credentials=HttpCredentials(username=\"user\", password=\"password\"),\n    ),\n)\n\nExample: OAuth2 Bearer Token in HTTP Header\nAuthCredential(\n    auth_type=AuthCredentialTypes.HTTP,\n    http=HttpAuth(\n        scheme=\"bearer\",\n        credentials=HttpCredentials(token=\"eyAkaknabna....\"),\n    ),\n)\n\nExample: OAuth2 Auth with Authorization Code Flow\nAuthCredential(\n    auth_type=AuthCredentialTypes.OAUTH2,\n    oauth2=OAuth2Auth(\n        client_id=\"1234\",\n        client_secret=\"secret\",\n    ),\n)\n\nExample: OpenID Connect Auth\nAuthCredential(\n    auth_type=AuthCredentialTypes.OPEN_ID_CONNECT,\n    oauth2=OAuth2Auth(\n        client_id=\"1234\",\n        client_secret=\"secret\",\n        redirect_uri=\"https://example.com\",\n        scopes=[\"scope1\", \"scope2\"],\n    ),\n)\n\nExample: Auth with resource reference\nAuthCredential(\n    auth_type=AuthCredentialTypes.API_KEY,\n    resource_ref=\"projects/1234/locations/us-central1/resources/resource1\",\n)"},"AuthCredential-Output":{"properties":{"authType":{"$ref":"#/components/schemas/AuthCredentialTypes"},"resourceRef":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Resourceref"},"apiKey":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apikey"},"http":{"anyOf":[{"$ref":"#/components/schemas/HttpAuth"},{"type":"null"}]},"serviceAccount":{"anyOf":[{"$ref":"#/components/schemas/ServiceAccount"},{"type":"null"}]},"oauth2":{"anyOf":[{"$ref":"#/components/schemas/OAuth2Auth"},{"type":"null"}]}},"additionalProperties":true,"type":"object","required":["authType"],"title":"AuthCredential","description":"Data class representing an authentication credential.\n\nTo exchange for the actual credential, please use\nCredentialExchanger.exchange_credential().\n\nExamples: API Key Auth\nAuthCredential(\n    auth_type=AuthCredentialTypes.API_KEY,\n    api_key=\"1234\",\n)\n\nExample: HTTP Auth\nAuthCredential(\n    auth_type=AuthCredentialTypes.HTTP,\n    http=HttpAuth(\n        scheme=\"basic\",\n        credentials=HttpCredentials(username=\"user\", password=\"password\"),\n    ),\n)\n\nExample: OAuth2 Bearer Token in HTTP Header\nAuthCredential(\n    auth_type=AuthCredentialTypes.HTTP,\n    http=HttpAuth(\n        scheme=\"bearer\",\n        credentials=HttpCredentials(token=\"eyAkaknabna....\"),\n    ),\n)\n\nExample: OAuth2 Auth with Authorization Code Flow\nAuthCredential(\n    auth_type=AuthCredentialTypes.OAUTH2,\n    oauth2=OAuth2Auth(\n        client_id=\"1234\",\n        client_secret=\"secret\",\n    ),\n)\n\nExample: OpenID Connect Auth\nAuthCredential(\n    auth_type=AuthCredentialTypes.OPEN_ID_CONNECT,\n    oauth2=OAuth2Auth(\n        client_id=\"1234\",\n        client_secret=\"secret\",\n        redirect_uri=\"https://example.com\",\n        scopes=[\"scope1\", \"scope2\"],\n    ),\n)\n\nExample: Auth with resource reference\nAuthCredential(\n    auth_type=AuthCredentialTypes.API_KEY,\n    resource_ref=\"projects/1234/locations/us-central1/resources/resource1\",\n)"},"AuthCredentialTypes":{"type":"string","enum":["apiKey","http","oauth2","openIdConnect","serviceAccount"],"title":"AuthCredentialTypes","description":"Represents the type of authentication credential."},"AuthType":{"type":"string","enum":["AUTH_TYPE_UNSPECIFIED","NO_AUTH","API_KEY_AUTH","HTTP_BASIC_AUTH","GOOGLE_SERVICE_ACCOUNT_AUTH","OAUTH","OIDC_AUTH"],"title":"AuthType","description":"Type of auth scheme."},"AutomaticFunctionCallingConfig":{"properties":{"disable":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Disable","description":"Whether to disable automatic function calling.\n      If not set or set to False, will enable automatic function calling.\n      If set to True, will disable automatic function calling.\n      "},"maximumRemoteCalls":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Maximumremotecalls","description":"If automatic function calling is enabled,\n      maximum number of remote calls for automatic function calling.\n      This number should be a positive integer.\n      If not set, SDK will set maximum number of remote calls to 10.\n      ","default":10},"ignoreCallHistory":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Ignorecallhistory","description":"If automatic function calling is enabled,\n      whether to ignore call history to the response.\n      If not set, SDK will set ignore_call_history to false,\n      and will append the call history to\n      GenerateContentResponse.automatic_function_calling_history.\n      "}},"additionalProperties":false,"type":"object","title":"AutomaticFunctionCallingConfig","description":"The configuration for automatic function calling."},"BaseCriterion":{"properties":{"threshold":{"type":"number","title":"Threshold","description":"The threshold to be used by the metric."}},"additionalProperties":true,"type":"object","required":["threshold"],"title":"BaseCriterion","description":"Base creterion to use for an Eval Metric."},"Behavior":{"type":"string","enum":["UNSPECIFIED","BLOCKING","NON_BLOCKING"],"title":"Behavior","description":"Defines the function behavior. Defaults to `BLOCKING`."},"Blob":{"properties":{"displayName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Displayname","description":"Optional. Display name of the blob. Used to provide a label or filename to distinguish blobs. This field is not currently used in the Gemini GenerateContent calls."},"data":{"anyOf":[{"type":"string","format":"base64url"},{"type":"null"}],"title":"Data","description":"Required. Raw bytes."},"mimeType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mimetype","description":"Required. The IANA standard MIME type of the source data."}},"additionalProperties":false,"type":"object","title":"Blob","description":"Content blob."},"CacheMetadata":{"properties":{"cache_name":{"type":"string","title":"Cache Name","description":"Full resource name of the cached content"},"expire_time":{"type":"number","title":"Expire Time","description":"Unix timestamp when cache expires"},"fingerprint":{"type":"string","title":"Fingerprint","description":"Hash of agent configuration used to detect changes"},"invocations_used":{"type":"integer","minimum":0.0,"title":"Invocations Used","description":"Number of invocations this cache has been used for"},"cached_contents_count":{"type":"integer","minimum":0.0,"title":"Cached Contents Count","description":"Number of contents stored in this cache"},"created_at":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Created At","description":"Unix timestamp when cache was created (None if reused existing)"}},"additionalProperties":false,"type":"object","required":["cache_name","expire_time","fingerprint","invocations_used","cached_contents_count"],"title":"CacheMetadata","description":"Metadata for context cache associated with LLM responses.\n\nThis class stores cache identification, usage tracking, and lifecycle\ninformation for a particular cache instance.\n\nToken counts (cached and total) are available in the LlmResponse.usage_metadata\nand should be accessed from there to avoid duplication.\n\nAttributes:\n    cache_name: The full resource name of the cached content (e.g.,\n        'projects/123/locations/us-central1/cachedContents/456')\n    expire_time: Unix timestamp when the cache expires\n    fingerprint: Hash of agent configuration (instruction + tools + model)\n    invocations_used: Number of invocations this cache has been used for\n    cached_contents_count: Number of contents stored in this cache\n    created_at: Unix timestamp when the cache was created"},"CodeExecutionResult":{"properties":{"outcome":{"anyOf":[{"$ref":"#/components/schemas/Outcome"},{"type":"null"}],"description":"Required. Outcome of the code execution."},"output":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Output","description":"Optional. Contains stdout when code execution is successful, stderr or other description otherwise."}},"additionalProperties":false,"type":"object","title":"CodeExecutionResult","description":"Result of executing the [ExecutableCode].\n\nOnly generated when using the [CodeExecution] tool, and always follows a\n`part` containing the [ExecutableCode]."},"ComputerUse":{"properties":{"environment":{"anyOf":[{"$ref":"#/components/schemas/Environment"},{"type":"null"}],"description":"Required. The environment being operated."},"excludedPredefinedFunctions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Excludedpredefinedfunctions","description":"By default, predefined functions are included in the final model call.\n    Some of them can be explicitly excluded from being automatically included.\n    This can serve two purposes:\n      1. Using a more restricted / different action space.\n      2. Improving the definitions / instructions of predefined functions."}},"additionalProperties":false,"type":"object","title":"ComputerUse","description":"Tool to support computer use."},"Content-Input":{"properties":{"parts":{"anyOf":[{"items":{"$ref":"#/components/schemas/Part-Input"},"type":"array"},{"type":"null"}],"title":"Parts","description":"List of parts that constitute a single message. Each part may have\n      a different IANA MIME type."},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role","description":"Optional. The producer of the content. Must be either 'user' or\n      'model'. Useful to set for multi-turn conversations, otherwise can be\n      empty. If role is not specified, SDK will determine the role."}},"additionalProperties":false,"type":"object","title":"Content","description":"Contains the multi-part content of a message."},"Content-Output":{"properties":{"parts":{"anyOf":[{"items":{"$ref":"#/components/schemas/Part-Output"},"type":"array"},{"type":"null"}],"title":"Parts","description":"List of parts that constitute a single message. Each part may have\n      a different IANA MIME type."},"role":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Role","description":"Optional. The producer of the content. Must be either 'user' or\n      'model'. Useful to set for multi-turn conversations, otherwise can be\n      empty. If role is not specified, SDK will determine the role."}},"additionalProperties":false,"type":"object","title":"Content","description":"Contains the multi-part content of a message."},"CreateEvalSetRequest":{"properties":{"evalSet":{"$ref":"#/components/schemas/EvalSet-Input"}},"type":"object","required":["evalSet"],"title":"CreateEvalSetRequest"},"CreateSessionRequest":{"properties":{"sessionId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sessionid","description":"The ID of the session to create. If not provided, a random session ID will be generated."},"state":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"State","description":"The initial state of the session."},"events":{"anyOf":[{"items":{"$ref":"#/components/schemas/Event-Input"},"type":"array"},{"type":"null"}],"title":"Events","description":"A list of events to initialize the session with."}},"type":"object","title":"CreateSessionRequest"},"DailyUsageInfo":{"properties":{"usage_percent":{"type":"number","title":"Usage Percent","description":"사용량 퍼센트 (0-100)"},"warning_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Warning Level","description":"경고 레벨: 'warning' (75%+), 'critical' (90%+), 'exceeded' (100%+)"}},"type":"object","required":["usage_percent"],"title":"DailyUsageInfo","description":"일일 사용량 정보 모델\n\n사용자의 일일 토큰 사용량 상태를 나타냅니다."},"DialogueMessage":{"properties":{"role":{"type":"string","enum":["user","assistant"],"title":"Role","description":"user=유저 발화, assistant=캐릭터 발화"},"content":{"type":"string","title":"Content","description":"해당 턴 메시지 본문"}},"type":"object","required":["role","content"],"title":"DialogueMessage","description":"최근 대화 한 턴 — 본문 LLM 과 동일하게 role/content 로 전달.\n\nkaidol-api 가 최근 N 턴을 이 형태로 보내고, agent 는 LiteLLM `messages`\n배열에 system 프롬프트와 user 트리거 사이의 실제 대화 턴으로 펼쳐 넣는다."},"DynamicRetrievalConfig":{"properties":{"mode":{"anyOf":[{"$ref":"#/components/schemas/DynamicRetrievalConfigMode"},{"type":"null"}],"description":"The mode of the predictor to be used in dynamic retrieval."},"dynamicThreshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Dynamicthreshold","description":"Optional. The threshold to be used in dynamic retrieval. If not set, a system default value is used."}},"additionalProperties":false,"type":"object","title":"DynamicRetrievalConfig","description":"Describes the options to customize dynamic retrieval."},"DynamicRetrievalConfigMode":{"type":"string","enum":["MODE_UNSPECIFIED","MODE_DYNAMIC"],"title":"DynamicRetrievalConfigMode","description":"Config for the dynamic retrieval config mode."},"EnterpriseWebSearch":{"properties":{"excludeDomains":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Excludedomains","description":"Optional. List of domains to be excluded from the search results. The default limit is 2000 domains."}},"additionalProperties":false,"type":"object","title":"EnterpriseWebSearch","description":"Tool to search public web data, powered by Vertex AI Search and Sec4 compliance."},"Environment":{"type":"string","enum":["ENVIRONMENT_UNSPECIFIED","ENVIRONMENT_BROWSER"],"title":"Environment","description":"The environment being operated."},"EvalCase-Input":{"properties":{"evalId":{"type":"string","title":"Evalid"},"conversation":{"items":{"$ref":"#/components/schemas/Invocation-Input"},"type":"array","title":"Conversation"},"sessionInput":{"anyOf":[{"$ref":"#/components/schemas/SessionInput"},{"type":"null"}]},"creationTimestamp":{"type":"number","title":"Creationtimestamp","default":0.0},"rubrics":{"anyOf":[{"items":{"$ref":"#/components/schemas/Rubric"},"type":"array"},{"type":"null"}],"title":"Rubrics"}},"additionalProperties":false,"type":"object","required":["evalId","conversation"],"title":"EvalCase","description":"An eval case."},"EvalCase-Output":{"properties":{"evalId":{"type":"string","title":"Evalid"},"conversation":{"items":{"$ref":"#/components/schemas/Invocation-Output"},"type":"array","title":"Conversation"},"sessionInput":{"anyOf":[{"$ref":"#/components/schemas/SessionInput"},{"type":"null"}]},"creationTimestamp":{"type":"number","title":"Creationtimestamp","default":0.0},"rubrics":{"anyOf":[{"items":{"$ref":"#/components/schemas/Rubric"},"type":"array"},{"type":"null"}],"title":"Rubrics"}},"additionalProperties":false,"type":"object","required":["evalId","conversation"],"title":"EvalCase","description":"An eval case."},"EvalCaseResult":{"properties":{"evalSetFile":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evalsetfile","description":"This field is deprecated, use eval_set_id instead.","deprecated":true},"evalSetId":{"type":"string","title":"Evalsetid","default":""},"evalId":{"type":"string","title":"Evalid","default":""},"finalEvalStatus":{"$ref":"#/components/schemas/EvalStatus"},"evalMetricResults":{"anyOf":[{"items":{"prefixItems":[{"$ref":"#/components/schemas/EvalMetric-Output"},{"$ref":"#/components/schemas/EvalMetricResult"}],"type":"array","maxItems":2,"minItems":2},"type":"array"},{"type":"null"}],"title":"Evalmetricresults","description":"This field is deprecated, use overall_eval_metric_results instead.","deprecated":true},"overallEvalMetricResults":{"items":{"$ref":"#/components/schemas/EvalMetricResult"},"type":"array","title":"Overallevalmetricresults"},"evalMetricResultPerInvocation":{"items":{"$ref":"#/components/schemas/EvalMetricResultPerInvocation"},"type":"array","title":"Evalmetricresultperinvocation"},"sessionId":{"type":"string","title":"Sessionid"},"sessionDetails":{"anyOf":[{"$ref":"#/components/schemas/Session"},{"type":"null"}]},"userId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Userid"}},"type":"object","required":["finalEvalStatus","overallEvalMetricResults","evalMetricResultPerInvocation","sessionId"],"title":"EvalCaseResult","description":"Case level evaluation results."},"EvalMetric-Input":{"properties":{"metricName":{"type":"string","title":"Metricname","description":"The name of the metric."},"threshold":{"type":"number","title":"Threshold","description":"A threshold value. Each metric decides how to interpret this threshold."},"judgeModelOptions":{"anyOf":[{"$ref":"#/components/schemas/JudgeModelOptions-Input"},{"type":"null"}],"description":"[DEPRECATED] This field is deprecated in favor of `criterion`. Depending on the metric you may want to one of the sub-classes of BaseCriterion.","deprecated":true},"criterion":{"anyOf":[{"$ref":"#/components/schemas/BaseCriterion"},{"type":"null"}],"description":"Evaluation criterion used by the metric."}},"additionalProperties":false,"type":"object","required":["metricName","threshold"],"title":"EvalMetric","description":"A metric used to evaluate a particular aspect of an eval case."},"EvalMetric-Output":{"properties":{"metricName":{"type":"string","title":"Metricname","description":"The name of the metric."},"threshold":{"type":"number","title":"Threshold","description":"A threshold value. Each metric decides how to interpret this threshold."},"judgeModelOptions":{"anyOf":[{"$ref":"#/components/schemas/JudgeModelOptions-Output"},{"type":"null"}],"description":"[DEPRECATED] This field is deprecated in favor of `criterion`. Depending on the metric you may want to one of the sub-classes of BaseCriterion.","deprecated":true},"criterion":{"anyOf":[{"$ref":"#/components/schemas/BaseCriterion"},{"type":"null"}],"description":"Evaluation criterion used by the metric."}},"additionalProperties":false,"type":"object","required":["metricName","threshold"],"title":"EvalMetric","description":"A metric used to evaluate a particular aspect of an eval case."},"EvalMetricResult":{"properties":{"metricName":{"type":"string","title":"Metricname","description":"The name of the metric."},"threshold":{"type":"number","title":"Threshold","description":"A threshold value. Each metric decides how to interpret this threshold."},"judgeModelOptions":{"anyOf":[{"$ref":"#/components/schemas/JudgeModelOptions-Output"},{"type":"null"}],"description":"[DEPRECATED] This field is deprecated in favor of `criterion`. Depending on the metric you may want to one of the sub-classes of BaseCriterion.","deprecated":true},"criterion":{"anyOf":[{"$ref":"#/components/schemas/BaseCriterion"},{"type":"null"}],"description":"Evaluation criterion used by the metric."},"score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score","description":"Score obtained after evaluating the metric. Optional, as evaluation might not have happened."},"evalStatus":{"$ref":"#/components/schemas/EvalStatus","description":"The status of this evaluation."},"details":{"$ref":"#/components/schemas/EvalMetricResultDetails","description":""}},"additionalProperties":false,"type":"object","required":["metricName","threshold","evalStatus"],"title":"EvalMetricResult","description":"The actual computed score/value of a particular EvalMetric."},"EvalMetricResultDetails":{"properties":{"rubricScores":{"anyOf":[{"items":{"$ref":"#/components/schemas/RubricScore"},"type":"array"},{"type":"null"}],"title":"Rubricscores","description":"The scores obtained after applying the rubrics to the Agent's response."}},"additionalProperties":false,"type":"object","title":"EvalMetricResultDetails"},"EvalMetricResultPerInvocation":{"properties":{"actualInvocation":{"$ref":"#/components/schemas/Invocation-Output","description":"The actual invocation, usually obtained by inferencing the agent."},"expectedInvocation":{"$ref":"#/components/schemas/Invocation-Output","description":"The expected invocation, usually the reference or golden invocation."},"evalMetricResults":{"items":{"$ref":"#/components/schemas/EvalMetricResult"},"type":"array","title":"Evalmetricresults","description":"Eval resutls for each applicable metric.","default":[]}},"additionalProperties":false,"type":"object","required":["actualInvocation","expectedInvocation"],"title":"EvalMetricResultPerInvocation","description":"Eval metric results per invocation."},"EvalResult":{"properties":{"evalSetResultId":{"type":"string","title":"Evalsetresultid"},"evalSetResultName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evalsetresultname"},"evalSetId":{"type":"string","title":"Evalsetid"},"evalCaseResults":{"items":{"$ref":"#/components/schemas/EvalCaseResult"},"type":"array","title":"Evalcaseresults"},"creationTimestamp":{"type":"number","title":"Creationtimestamp","default":0.0}},"type":"object","required":["evalSetResultId","evalSetId"],"title":"EvalResult","description":"This class has no field intentionally.\n\nThe goal here is to just give a new name to the class to align with the API\nendpoint."},"EvalSet-Input":{"properties":{"eval_set_id":{"type":"string","title":"Eval Set Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"eval_cases":{"items":{"$ref":"#/components/schemas/EvalCase-Input"},"type":"array","title":"Eval Cases"},"creation_timestamp":{"type":"number","title":"Creation Timestamp","default":0.0}},"type":"object","required":["eval_set_id","eval_cases"],"title":"EvalSet","description":"A set of eval cases."},"EvalSet-Output":{"properties":{"eval_set_id":{"type":"string","title":"Eval Set Id"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"eval_cases":{"items":{"$ref":"#/components/schemas/EvalCase-Output"},"type":"array","title":"Eval Cases"},"creation_timestamp":{"type":"number","title":"Creation Timestamp","default":0.0}},"type":"object","required":["eval_set_id","eval_cases"],"title":"EvalSet","description":"A set of eval cases."},"EvalSetResult":{"properties":{"evalSetResultId":{"type":"string","title":"Evalsetresultid"},"evalSetResultName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Evalsetresultname"},"evalSetId":{"type":"string","title":"Evalsetid"},"evalCaseResults":{"items":{"$ref":"#/components/schemas/EvalCaseResult"},"type":"array","title":"Evalcaseresults"},"creationTimestamp":{"type":"number","title":"Creationtimestamp","default":0.0}},"type":"object","required":["evalSetResultId","evalSetId"],"title":"EvalSetResult","description":"Eval set level evaluation results."},"EvalStatus":{"type":"integer","enum":[1,2,3],"title":"EvalStatus"},"Event-Input":{"properties":{"content":{"anyOf":[{"$ref":"#/components/schemas/Content-Input"},{"type":"null"}]},"groundingMetadata":{"anyOf":[{"$ref":"#/components/schemas/GroundingMetadata-Input"},{"type":"null"}]},"partial":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Partial"},"turnComplete":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Turncomplete"},"finishReason":{"anyOf":[{"$ref":"#/components/schemas/FinishReason"},{"type":"null"}]},"errorCode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Errorcode"},"errorMessage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Errormessage"},"interrupted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Interrupted"},"customMetadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Custommetadata"},"usageMetadata":{"anyOf":[{"$ref":"#/components/schemas/GenerateContentResponseUsageMetadata-Input"},{"type":"null"}]},"liveSessionResumptionUpdate":{"anyOf":[{"$ref":"#/components/schemas/LiveServerSessionResumptionUpdate"},{"type":"null"}]},"inputTranscription":{"anyOf":[{"$ref":"#/components/schemas/Transcription"},{"type":"null"}]},"outputTranscription":{"anyOf":[{"$ref":"#/components/schemas/Transcription"},{"type":"null"}]},"avgLogprobs":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avglogprobs"},"logprobsResult":{"anyOf":[{"$ref":"#/components/schemas/LogprobsResult-Input"},{"type":"null"}]},"cacheMetadata":{"anyOf":[{"$ref":"#/components/schemas/CacheMetadata"},{"type":"null"}]},"invocationId":{"type":"string","title":"Invocationid","default":""},"author":{"type":"string","title":"Author"},"actions":{"$ref":"#/components/schemas/EventActions-Input"},"longRunningToolIds":{"anyOf":[{"items":{"type":"string"},"type":"array","uniqueItems":true},{"type":"null"}],"title":"Longrunningtoolids"},"branch":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Branch"},"id":{"type":"string","title":"Id","default":""},"timestamp":{"type":"number","title":"Timestamp"}},"additionalProperties":false,"type":"object","required":["author"],"title":"Event","description":"Represents an event in a conversation between agents and users.\n\nIt is used to store the content of the conversation, as well as the actions\ntaken by the agents like function calls, etc."},"Event-Output":{"properties":{"content":{"anyOf":[{"$ref":"#/components/schemas/Content-Output"},{"type":"null"}]},"groundingMetadata":{"anyOf":[{"$ref":"#/components/schemas/GroundingMetadata-Output"},{"type":"null"}]},"partial":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Partial"},"turnComplete":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Turncomplete"},"finishReason":{"anyOf":[{"$ref":"#/components/schemas/FinishReason"},{"type":"null"}]},"errorCode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Errorcode"},"errorMessage":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Errormessage"},"interrupted":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Interrupted"},"customMetadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Custommetadata"},"usageMetadata":{"anyOf":[{"$ref":"#/components/schemas/GenerateContentResponseUsageMetadata-Output"},{"type":"null"}]},"liveSessionResumptionUpdate":{"anyOf":[{"$ref":"#/components/schemas/LiveServerSessionResumptionUpdate"},{"type":"null"}]},"inputTranscription":{"anyOf":[{"$ref":"#/components/schemas/Transcription"},{"type":"null"}]},"outputTranscription":{"anyOf":[{"$ref":"#/components/schemas/Transcription"},{"type":"null"}]},"avgLogprobs":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Avglogprobs"},"logprobsResult":{"anyOf":[{"$ref":"#/components/schemas/LogprobsResult-Output"},{"type":"null"}]},"cacheMetadata":{"anyOf":[{"$ref":"#/components/schemas/CacheMetadata"},{"type":"null"}]},"invocationId":{"type":"string","title":"Invocationid","default":""},"author":{"type":"string","title":"Author"},"actions":{"$ref":"#/components/schemas/EventActions-Output"},"longRunningToolIds":{"anyOf":[{"items":{"type":"string"},"type":"array","uniqueItems":true},{"type":"null"}],"title":"Longrunningtoolids"},"branch":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Branch"},"id":{"type":"string","title":"Id","default":""},"timestamp":{"type":"number","title":"Timestamp"}},"additionalProperties":false,"type":"object","required":["author"],"title":"Event","description":"Represents an event in a conversation between agents and users.\n\nIt is used to store the content of the conversation, as well as the actions\ntaken by the agents like function calls, etc."},"EventActions-Input":{"properties":{"skipSummarization":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Skipsummarization"},"stateDelta":{"additionalProperties":true,"type":"object","title":"Statedelta"},"artifactDelta":{"additionalProperties":{"type":"integer"},"type":"object","title":"Artifactdelta"},"transferToAgent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transfertoagent"},"escalate":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Escalate"},"requestedAuthConfigs":{"additionalProperties":{"$ref":"#/components/schemas/google__adk__auth__auth_tool__AuthConfig-Input"},"type":"object","title":"Requestedauthconfigs"},"requestedToolConfirmations":{"additionalProperties":{"$ref":"#/components/schemas/ToolConfirmation"},"type":"object","title":"Requestedtoolconfirmations"},"compaction":{"anyOf":[{"$ref":"#/components/schemas/EventCompaction-Input"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"EventActions","description":"Represents the actions attached to an event."},"EventActions-Output":{"properties":{"skipSummarization":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Skipsummarization"},"stateDelta":{"additionalProperties":true,"type":"object","title":"Statedelta"},"artifactDelta":{"additionalProperties":{"type":"integer"},"type":"object","title":"Artifactdelta"},"transferToAgent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Transfertoagent"},"escalate":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Escalate"},"requestedAuthConfigs":{"additionalProperties":{"$ref":"#/components/schemas/google__adk__auth__auth_tool__AuthConfig-Output"},"type":"object","title":"Requestedauthconfigs"},"requestedToolConfirmations":{"additionalProperties":{"$ref":"#/components/schemas/ToolConfirmation"},"type":"object","title":"Requestedtoolconfirmations"},"compaction":{"anyOf":[{"$ref":"#/components/schemas/EventCompaction-Output"},{"type":"null"}]}},"additionalProperties":false,"type":"object","title":"EventActions","description":"Represents the actions attached to an event."},"EventCompaction-Input":{"properties":{"startTimestamp":{"type":"number","title":"Starttimestamp"},"endTimestamp":{"type":"number","title":"Endtimestamp"},"compactedContent":{"$ref":"#/components/schemas/Content-Input"}},"additionalProperties":false,"type":"object","required":["startTimestamp","endTimestamp","compactedContent"],"title":"EventCompaction","description":"The compaction of the events."},"EventCompaction-Output":{"properties":{"startTimestamp":{"type":"number","title":"Starttimestamp"},"endTimestamp":{"type":"number","title":"Endtimestamp"},"compactedContent":{"$ref":"#/components/schemas/Content-Output"}},"additionalProperties":false,"type":"object","required":["startTimestamp","endTimestamp","compactedContent"],"title":"EventCompaction","description":"The compaction of the events."},"ExecutableCode":{"properties":{"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code","description":"Required. The code to be executed."},"language":{"anyOf":[{"$ref":"#/components/schemas/Language"},{"type":"null"}],"description":"Required. Programming language of the `code`."}},"additionalProperties":false,"type":"object","title":"ExecutableCode","description":"Code generated by the model that is meant to be executed, and the result returned to the model.\n\nGenerated when using the [CodeExecution] tool, in which the code will be\nautomatically executed, and a corresponding [CodeExecutionResult] will also be\ngenerated."},"ExternalApi-Input":{"properties":{"apiAuth":{"anyOf":[{"$ref":"#/components/schemas/ApiAuth"},{"type":"null"}],"description":"The authentication config to access the API. Deprecated. Please use auth_config instead."},"apiSpec":{"anyOf":[{"$ref":"#/components/schemas/ApiSpec"},{"type":"null"}],"description":"The API spec that the external API implements."},"authConfig":{"anyOf":[{"$ref":"#/components/schemas/google__genai__types__AuthConfig"},{"type":"null"}],"description":"The authentication config to access the API."},"elasticSearchParams":{"anyOf":[{"$ref":"#/components/schemas/ExternalApiElasticSearchParams"},{"type":"null"}],"description":"Parameters for the elastic search API."},"endpoint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint","description":"The endpoint of the external API. The system will call the API at this endpoint to retrieve the data for grounding. Example: https://acme.com:443/search"},"simpleSearchParams":{"anyOf":[{"$ref":"#/components/schemas/ExternalApiSimpleSearchParams"},{"type":"null"}],"description":"Parameters for the simple search API."}},"additionalProperties":false,"type":"object","title":"ExternalApi","description":"Retrieve from data source powered by external API for grounding.\n\nThe external API is not owned by Google, but need to follow the pre-defined\nAPI spec."},"ExternalApi-Output":{"properties":{"apiAuth":{"anyOf":[{"$ref":"#/components/schemas/ApiAuth"},{"type":"null"}],"description":"The authentication config to access the API. Deprecated. Please use auth_config instead."},"apiSpec":{"anyOf":[{"$ref":"#/components/schemas/ApiSpec"},{"type":"null"}],"description":"The API spec that the external API implements."},"authConfig":{"anyOf":[{"$ref":"#/components/schemas/google__genai__types__AuthConfig"},{"type":"null"}],"description":"The authentication config to access the API."},"elasticSearchParams":{"anyOf":[{"$ref":"#/components/schemas/ExternalApiElasticSearchParams"},{"type":"null"}],"description":"Parameters for the elastic search API."},"endpoint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endpoint","description":"The endpoint of the external API. The system will call the API at this endpoint to retrieve the data for grounding. Example: https://acme.com:443/search"},"simpleSearchParams":{"anyOf":[{"$ref":"#/components/schemas/ExternalApiSimpleSearchParams"},{"type":"null"}],"description":"Parameters for the simple search API."}},"additionalProperties":false,"type":"object","title":"ExternalApi","description":"Retrieve from data source powered by external API for grounding.\n\nThe external API is not owned by Google, but need to follow the pre-defined\nAPI spec."},"ExternalApiElasticSearchParams":{"properties":{"index":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Index","description":"The ElasticSearch index to use."},"numHits":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Numhits","description":"Optional. Number of hits (chunks) to request. When specified, it is passed to Elasticsearch as the `num_hits` param."},"searchTemplate":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Searchtemplate","description":"The ElasticSearch search template to use."}},"additionalProperties":false,"type":"object","title":"ExternalApiElasticSearchParams","description":"The search parameters to use for the ELASTIC_SEARCH spec."},"ExternalApiSimpleSearchParams":{"properties":{},"additionalProperties":false,"type":"object","title":"ExternalApiSimpleSearchParams","description":"The search parameters to use for SIMPLE_SEARCH spec."},"FeatureSelectionPreference":{"type":"string","enum":["FEATURE_SELECTION_PREFERENCE_UNSPECIFIED","PRIORITIZE_QUALITY","BALANCED","PRIORITIZE_COST"],"title":"FeatureSelectionPreference","description":"Options for feature selection preference."},"File":{"properties":{"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"The `File` resource name. The ID (name excluding the \"files/\" prefix) can contain up to 40 characters that are lowercase alphanumeric or dashes (-). The ID cannot start or end with a dash. If the name is empty on create, a unique name will be generated. Example: `files/123-456`"},"displayName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Displayname","description":"Optional. The human-readable display name for the `File`. The display name must be no more than 512 characters in length, including spaces. Example: 'Welcome Image'"},"mimeType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mimetype","description":"Output only. MIME type of the file."},"sizeBytes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sizebytes","description":"Output only. Size of the file in bytes."},"createTime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Createtime","description":"Output only. The timestamp of when the `File` was created."},"expirationTime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Expirationtime","description":"Output only. The timestamp of when the `File` will be deleted. Only set if the `File` is scheduled to expire."},"updateTime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Updatetime","description":"Output only. The timestamp of when the `File` was last updated."},"sha256Hash":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sha256Hash","description":"Output only. SHA-256 hash of the uploaded bytes. The hash value is encoded in base64 format."},"uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uri","description":"Output only. The URI of the `File`."},"downloadUri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Downloaduri","description":"Output only. The URI of the `File`, only set for downloadable (generated) files."},"state":{"anyOf":[{"$ref":"#/components/schemas/FileState"},{"type":"null"}],"description":"Output only. Processing state of the File."},"source":{"anyOf":[{"$ref":"#/components/schemas/FileSource"},{"type":"null"}],"description":"Output only. The source of the `File`."},"videoMetadata":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Videometadata","description":"Output only. Metadata for a video."},"error":{"anyOf":[{"$ref":"#/components/schemas/FileStatus"},{"type":"null"}],"description":"Output only. Error status if File processing failed."}},"additionalProperties":false,"type":"object","title":"File","description":"A file uploaded to the API."},"FileData":{"properties":{"displayName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Displayname","description":"Optional. Display name of the file data. Used to provide a label or filename to distinguish file datas. It is not currently used in the Gemini GenerateContent calls."},"fileUri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fileuri","description":"Required. URI."},"mimeType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mimetype","description":"Required. The IANA standard MIME type of the source data."}},"additionalProperties":false,"type":"object","title":"FileData","description":"URI based data."},"FileSource":{"type":"string","enum":["SOURCE_UNSPECIFIED","UPLOADED","GENERATED"],"title":"FileSource","description":"Source of the File."},"FileState":{"type":"string","enum":["STATE_UNSPECIFIED","PROCESSING","ACTIVE","FAILED"],"title":"FileState","description":"State for the lifecycle of a File."},"FileStatus":{"properties":{"details":{"anyOf":[{"items":{"additionalProperties":true,"type":"object"},"type":"array"},{"type":"null"}],"title":"Details","description":"A list of messages that carry the error details. There is a common set of message types for APIs to use."},"message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Message","description":"A list of messages that carry the error details. There is a common set of message types for APIs to use."},"code":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Code","description":"The status code. 0 for OK, 1 for CANCELLED"}},"additionalProperties":false,"type":"object","title":"FileStatus","description":"Status of a File that uses a common error model."},"FinishReason":{"type":"string","enum":["FINISH_REASON_UNSPECIFIED","STOP","MAX_TOKENS","SAFETY","RECITATION","LANGUAGE","OTHER","BLOCKLIST","PROHIBITED_CONTENT","SPII","MALFORMED_FUNCTION_CALL","IMAGE_SAFETY","UNEXPECTED_TOOL_CALL","IMAGE_PROHIBITED_CONTENT"],"title":"FinishReason","description":"Output only. The reason why the model stopped generating tokens.\n\nIf empty, the model has not stopped generating the tokens."},"FunctionCall":{"properties":{"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id","description":"The unique id of the function call. If populated, the client to execute the\n   `function_call` and return the response with the matching `id`."},"args":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Args","description":"Optional. The function parameters and values in JSON object format. See [FunctionDeclaration.parameters] for parameter details."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Required. The name of the function to call. Matches [FunctionDeclaration.name]."}},"additionalProperties":false,"type":"object","title":"FunctionCall","description":"A function call."},"FunctionCallingConfig":{"properties":{"mode":{"anyOf":[{"$ref":"#/components/schemas/FunctionCallingConfigMode"},{"type":"null"}],"description":"Optional. Function calling mode."},"allowedFunctionNames":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Allowedfunctionnames","description":"Optional. Function names to call. Only set when the Mode is ANY. Function names should match [FunctionDeclaration.name]. With mode set to ANY, model will predict a function call from the set of function names provided."}},"additionalProperties":false,"type":"object","title":"FunctionCallingConfig","description":"Function calling config."},"FunctionCallingConfigMode":{"type":"string","enum":["MODE_UNSPECIFIED","AUTO","ANY","NONE","VALIDATED"],"title":"FunctionCallingConfigMode","description":"Config for the function calling config mode."},"FunctionDeclaration-Input":{"properties":{"behavior":{"anyOf":[{"$ref":"#/components/schemas/Behavior"},{"type":"null"}],"description":"Defines the function behavior."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots and dashes, with a maximum length of 64."},"parameters":{"anyOf":[{"$ref":"#/components/schemas/Schema-Input"},{"type":"null"}],"description":"Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1"},"parametersJsonSchema":{"anyOf":[{},{"type":"null"}],"title":"Parametersjsonschema","description":"Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { \"type\": \"object\", \"properties\": { \"name\": { \"type\": \"string\" }, \"age\": { \"type\": \"integer\" } }, \"additionalProperties\": false, \"required\": [\"name\", \"age\"], \"propertyOrdering\": [\"name\", \"age\"] } ``` This field is mutually exclusive with `parameters`."},"response":{"anyOf":[{"$ref":"#/components/schemas/Schema-Input"},{"type":"null"}],"description":"Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function."},"responseJsonSchema":{"anyOf":[{},{"type":"null"}],"title":"Responsejsonschema","description":"Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`."}},"additionalProperties":false,"type":"object","title":"FunctionDeclaration","description":"Defines a function that the model can generate JSON inputs for.\n\nThe inputs are based on `OpenAPI 3.0 specifications\n<https://spec.openapis.org/oas/v3.0.3>`_."},"FunctionDeclaration-Output":{"properties":{"behavior":{"anyOf":[{"$ref":"#/components/schemas/Behavior"},{"type":"null"}],"description":"Defines the function behavior."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Optional. Description and purpose of the function. Model uses it to decide how and whether to call the function."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Required. The name of the function to call. Must start with a letter or an underscore. Must be a-z, A-Z, 0-9, or contain underscores, dots and dashes, with a maximum length of 64."},"parameters":{"anyOf":[{"$ref":"#/components/schemas/Schema-Output"},{"type":"null"}],"description":"Optional. Describes the parameters to this function in JSON Schema Object format. Reflects the Open API 3.03 Parameter Object. string Key: the name of the parameter. Parameter names are case sensitive. Schema Value: the Schema defining the type used for the parameter. For function with no parameters, this can be left unset. Parameter names must start with a letter or an underscore and must only contain chars a-z, A-Z, 0-9, or underscores with a maximum length of 64. Example with 1 required and 1 optional parameter: type: OBJECT properties: param1: type: STRING param2: type: INTEGER required: - param1"},"parametersJsonSchema":{"anyOf":[{},{"type":"null"}],"title":"Parametersjsonschema","description":"Optional. Describes the parameters to the function in JSON Schema format. The schema must describe an object where the properties are the parameters to the function. For example: ``` { \"type\": \"object\", \"properties\": { \"name\": { \"type\": \"string\" }, \"age\": { \"type\": \"integer\" } }, \"additionalProperties\": false, \"required\": [\"name\", \"age\"], \"propertyOrdering\": [\"name\", \"age\"] } ``` This field is mutually exclusive with `parameters`."},"response":{"anyOf":[{"$ref":"#/components/schemas/Schema-Output"},{"type":"null"}],"description":"Optional. Describes the output from this function in JSON Schema format. Reflects the Open API 3.03 Response Object. The Schema defines the type used for the response value of the function."},"responseJsonSchema":{"anyOf":[{},{"type":"null"}],"title":"Responsejsonschema","description":"Optional. Describes the output from this function in JSON Schema format. The value specified by the schema is the response value of the function. This field is mutually exclusive with `response`."}},"additionalProperties":false,"type":"object","title":"FunctionDeclaration","description":"Defines a function that the model can generate JSON inputs for.\n\nThe inputs are based on `OpenAPI 3.0 specifications\n<https://spec.openapis.org/oas/v3.0.3>`_."},"FunctionResponse-Input":{"properties":{"willContinue":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Willcontinue","description":"Signals that function call continues, and more responses will be returned, turning the function call into a generator. Is only applicable to NON_BLOCKING function calls (see FunctionDeclaration.behavior for details), ignored otherwise. If false, the default, future responses will not be considered. Is only applicable to NON_BLOCKING function calls, is ignored otherwise. If set to false, future responses will not be considered. It is allowed to return empty `response` with `will_continue=False` to signal that the function call is finished."},"scheduling":{"anyOf":[{"$ref":"#/components/schemas/FunctionResponseScheduling"},{"type":"null"}],"description":"Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE."},"parts":{"anyOf":[{"items":{"$ref":"#/components/schemas/FunctionResponsePart"},"type":"array"},{"type":"null"}],"title":"Parts","description":"List of parts that constitute a function response. Each part may\n      have a different IANA MIME type."},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id","description":"Optional. The id of the function call this response is for. Populated by the client to match the corresponding function call `id`."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Required. The name of the function to call. Matches [FunctionDeclaration.name] and [FunctionCall.name]."},"response":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Response","description":"Required. The function response in JSON object format. Use \"output\" key to specify function output and \"error\" key to specify error details (if any). If \"output\" and \"error\" keys are not specified, then whole \"response\" is treated as function output."}},"additionalProperties":false,"type":"object","title":"FunctionResponse","description":"A function response."},"FunctionResponse-Output":{"properties":{"willContinue":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Willcontinue","description":"Signals that function call continues, and more responses will be returned, turning the function call into a generator. Is only applicable to NON_BLOCKING function calls (see FunctionDeclaration.behavior for details), ignored otherwise. If false, the default, future responses will not be considered. Is only applicable to NON_BLOCKING function calls, is ignored otherwise. If set to false, future responses will not be considered. It is allowed to return empty `response` with `will_continue=False` to signal that the function call is finished."},"scheduling":{"anyOf":[{"$ref":"#/components/schemas/FunctionResponseScheduling"},{"type":"null"}],"description":"Specifies how the response should be scheduled in the conversation. Only applicable to NON_BLOCKING function calls, is ignored otherwise. Defaults to WHEN_IDLE."},"parts":{"anyOf":[{"items":{"$ref":"#/components/schemas/FunctionResponsePart"},"type":"array"},{"type":"null"}],"title":"Parts","description":"List of parts that constitute a function response. Each part may\n      have a different IANA MIME type."},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id","description":"Optional. The id of the function call this response is for. Populated by the client to match the corresponding function call `id`."},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"Required. The name of the function to call. Matches [FunctionDeclaration.name] and [FunctionCall.name]."},"response":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Response","description":"Required. The function response in JSON object format. Use \"output\" key to specify function output and \"error\" key to specify error details (if any). If \"output\" and \"error\" keys are not specified, then whole \"response\" is treated as function output."}},"additionalProperties":false,"type":"object","title":"FunctionResponse","description":"A function response."},"FunctionResponseBlob":{"properties":{"mimeType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mimetype","description":"Required. The IANA standard MIME type of the source data."},"data":{"anyOf":[{"type":"string","format":"base64url"},{"type":"null"}],"title":"Data","description":"Required. Inline media bytes."}},"additionalProperties":false,"type":"object","title":"FunctionResponseBlob","description":"Raw media bytes for function response.\n\nText should not be sent as raw bytes, use the FunctionResponse.response\nfield."},"FunctionResponseFileData":{"properties":{"fileUri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fileuri","description":"Required. URI."},"mimeType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Mimetype","description":"Required. The IANA standard MIME type of the source data."}},"additionalProperties":false,"type":"object","title":"FunctionResponseFileData","description":"URI based data for function response."},"FunctionResponsePart":{"properties":{"inlineData":{"anyOf":[{"$ref":"#/components/schemas/FunctionResponseBlob"},{"type":"null"}],"description":"Optional. Inline media bytes."},"fileData":{"anyOf":[{"$ref":"#/components/schemas/FunctionResponseFileData"},{"type":"null"}],"description":"Optional. URI based data."}},"additionalProperties":false,"type":"object","title":"FunctionResponsePart","description":"A datatype containing media that is part of a `FunctionResponse` message.\n\nA `FunctionResponsePart` consists of data which has an associated datatype. A\n`FunctionResponsePart` can only contain one of the accepted types in\n`FunctionResponsePart.data`.\n\nA `FunctionResponsePart` must have a fixed IANA MIME type identifying the\ntype and subtype of the media if the `inline_data` field is filled with raw\nbytes."},"FunctionResponseScheduling":{"type":"string","enum":["SCHEDULING_UNSPECIFIED","SILENT","WHEN_IDLE","INTERRUPT"],"title":"FunctionResponseScheduling","description":"Specifies how the response should be scheduled in the conversation."},"GenerateContentConfig-Input":{"properties":{"httpOptions":{"anyOf":[{"$ref":"#/components/schemas/HttpOptions"},{"type":"null"}],"description":"Used to override HTTP request options."},"shouldReturnHttpResponse":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Shouldreturnhttpresponse","description":" If true, the raw HTTP response will be returned in the 'sdk_http_response' field."},"systemInstruction":{"anyOf":[{"$ref":"#/components/schemas/Content-Input"},{"type":"string"},{"$ref":"#/components/schemas/File"},{"$ref":"#/components/schemas/Part-Input"},{"items":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/File"},{"$ref":"#/components/schemas/Part-Input"}]},"type":"array"},{"type":"null"}],"title":"Systeminstruction","description":"Instructions for the model to steer it toward better performance.\n      For example, \"Answer as concisely as possible\" or \"Don't use technical\n      terms in your response\".\n      "},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature","description":"Value that controls the degree of randomness in token selection.\n      Lower temperatures are good for prompts that require a less open-ended or\n      creative response, while higher temperatures can lead to more diverse or\n      creative results.\n      "},"topP":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Topp","description":"Tokens are selected from the most to least probable until the sum\n      of their probabilities equals this value. Use a lower value for less\n      random responses and a higher value for more random responses.\n      "},"topK":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Topk","description":"For each token selection step, the ``top_k`` tokens with the\n      highest probabilities are sampled. Then tokens are further filtered based\n      on ``top_p`` with the final token selected using temperature sampling. Use\n      a lower number for less random responses and a higher number for more\n      random responses.\n      "},"candidateCount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Candidatecount","description":"Number of response variations to return.\n      "},"maxOutputTokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Maxoutputtokens","description":"Maximum number of tokens that can be generated in the response.\n      "},"stopSequences":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Stopsequences","description":"List of strings that tells the model to stop generating text if one\n      of the strings is encountered in the response.\n      "},"responseLogprobs":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Responselogprobs","description":"Whether to return the log probabilities of the tokens that were\n      chosen by the model at each step.\n      "},"logprobs":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Logprobs","description":"Number of top candidate tokens to return the log probabilities for\n      at each generation step.\n      "},"presencePenalty":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Presencepenalty","description":"Positive values penalize tokens that already appear in the\n      generated text, increasing the probability of generating more diverse\n      content.\n      "},"frequencyPenalty":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Frequencypenalty","description":"Positive values penalize tokens that repeatedly appear in the\n      generated text, increasing the probability of generating more diverse\n      content.\n      "},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed","description":"When ``seed`` is fixed to a specific number, the model makes a best\n      effort to provide the same response for repeated requests. By default, a\n      random number is used.\n      "},"responseMimeType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Responsemimetype","description":"Output response mimetype of the generated candidate text.\n      Supported mimetype:\n        - `text/plain`: (default) Text output.\n        - `application/json`: JSON response in the candidates.\n      The model needs to be prompted to output the appropriate response type,\n      otherwise the behavior is undefined.\n      This is a preview feature.\n      "},"responseSchema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"$ref":"#/components/schemas/Schema-Input"},{"type":"null"}],"title":"Responseschema","description":"The `Schema` object allows the definition of input and output data types.\n      These types can be objects, but also primitives and arrays.\n      Represents a select subset of an [OpenAPI 3.0 schema\n      object](https://spec.openapis.org/oas/v3.0.3#schema).\n      If set, a compatible response_mime_type must also be set.\n      Compatible mimetypes: `application/json`: Schema for JSON response.\n      "},"responseJsonSchema":{"anyOf":[{},{"type":"null"}],"title":"Responsejsonschema","description":"Optional. Output schema of the generated response.\n      This is an alternative to `response_schema` that accepts [JSON\n      Schema](https://json-schema.org/). If set, `response_schema` must be\n      omitted, but `response_mime_type` is required. While the full JSON Schema\n      may be sent, not all features are supported. Specifically, only the\n      following properties are supported: - `$id` - `$defs` - `$ref` - `$anchor`\n      - `type` - `format` - `title` - `description` - `enum` (for strings and\n      numbers) - `items` - `prefixItems` - `minItems` - `maxItems` - `minimum` -\n      `maximum` - `anyOf` - `oneOf` (interpreted the same as `anyOf`) -\n      `properties` - `additionalProperties` - `required` The non-standard\n      `propertyOrdering` property may also be set. Cyclic references are\n      unrolled to a limited degree and, as such, may only be used within\n      non-required properties. (Nullable properties are not sufficient.) If\n      `$ref` is set on a sub-schema, no other properties, except for than those\n      starting as a `$`, may be set."},"routingConfig":{"anyOf":[{"$ref":"#/components/schemas/GenerationConfigRoutingConfig"},{"type":"null"}],"description":"Configuration for model router requests.\n      "},"modelSelectionConfig":{"anyOf":[{"$ref":"#/components/schemas/ModelSelectionConfig"},{"type":"null"}],"description":"Configuration for model selection.\n      "},"safetySettings":{"anyOf":[{"items":{"$ref":"#/components/schemas/SafetySetting"},"type":"array"},{"type":"null"}],"title":"Safetysettings","description":"Safety settings in the request to block unsafe content in the\n      response.\n      "},"tools":{"anyOf":[{"items":{"anyOf":[{"$ref":"#/components/schemas/google__genai__types__Tool-Input"},{"$ref":"#/components/schemas/mcp__types__Tool"}]},"type":"array"},{"type":"null"}],"title":"Tools","description":"Code that enables the system to interact with external systems to\n      perform an action outside of the knowledge and scope of the model.\n      "},"toolConfig":{"anyOf":[{"$ref":"#/components/schemas/ToolConfig-Input"},{"type":"null"}],"description":"Associates model output to a specific function call.\n      "},"labels":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Labels","description":"Labels with user-defined metadata to break down billed charges."},"cachedContent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cachedcontent","description":"Resource name of a context cache that can be used in subsequent\n      requests.\n      "},"responseModalities":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Responsemodalities","description":"The requested modalities of the response. Represents the set of\n      modalities that the model can return.\n      "},"mediaResolution":{"anyOf":[{"$ref":"#/components/schemas/MediaResolution"},{"type":"null"}],"description":"If specified, the media resolution specified will be used.\n    "},"speechConfig":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/SpeechConfig-Input"},{"type":"null"}],"title":"Speechconfig","description":"The speech generation configuration.\n      "},"audioTimestamp":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Audiotimestamp","description":"If enabled, audio timestamp will be included in the request to the\n       model.\n      "},"automaticFunctionCalling":{"anyOf":[{"$ref":"#/components/schemas/AutomaticFunctionCallingConfig"},{"type":"null"}],"description":"The configuration for automatic function calling.\n      "},"thinkingConfig":{"anyOf":[{"$ref":"#/components/schemas/ThinkingConfig"},{"type":"null"}],"description":"The thinking features configuration.\n      "},"imageConfig":{"anyOf":[{"$ref":"#/components/schemas/ImageConfig"},{"type":"null"}],"description":"The image generation configuration.\n      "}},"additionalProperties":false,"type":"object","title":"GenerateContentConfig","description":"Optional model configuration parameters.\n\nFor more information, see `Content generation parameters\n<https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/content-generation-parameters>`_."},"GenerateContentConfig-Output":{"properties":{"httpOptions":{"anyOf":[{"$ref":"#/components/schemas/HttpOptions"},{"type":"null"}],"description":"Used to override HTTP request options."},"shouldReturnHttpResponse":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Shouldreturnhttpresponse","description":" If true, the raw HTTP response will be returned in the 'sdk_http_response' field."},"systemInstruction":{"anyOf":[{"$ref":"#/components/schemas/Content-Output"},{"type":"string"},{"$ref":"#/components/schemas/File"},{"$ref":"#/components/schemas/Part-Output"},{"items":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/File"},{"$ref":"#/components/schemas/Part-Output"}]},"type":"array"},{"type":"null"}],"title":"Systeminstruction","description":"Instructions for the model to steer it toward better performance.\n      For example, \"Answer as concisely as possible\" or \"Don't use technical\n      terms in your response\".\n      "},"temperature":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Temperature","description":"Value that controls the degree of randomness in token selection.\n      Lower temperatures are good for prompts that require a less open-ended or\n      creative response, while higher temperatures can lead to more diverse or\n      creative results.\n      "},"topP":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Topp","description":"Tokens are selected from the most to least probable until the sum\n      of their probabilities equals this value. Use a lower value for less\n      random responses and a higher value for more random responses.\n      "},"topK":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Topk","description":"For each token selection step, the ``top_k`` tokens with the\n      highest probabilities are sampled. Then tokens are further filtered based\n      on ``top_p`` with the final token selected using temperature sampling. Use\n      a lower number for less random responses and a higher number for more\n      random responses.\n      "},"candidateCount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Candidatecount","description":"Number of response variations to return.\n      "},"maxOutputTokens":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Maxoutputtokens","description":"Maximum number of tokens that can be generated in the response.\n      "},"stopSequences":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Stopsequences","description":"List of strings that tells the model to stop generating text if one\n      of the strings is encountered in the response.\n      "},"responseLogprobs":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Responselogprobs","description":"Whether to return the log probabilities of the tokens that were\n      chosen by the model at each step.\n      "},"logprobs":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Logprobs","description":"Number of top candidate tokens to return the log probabilities for\n      at each generation step.\n      "},"presencePenalty":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Presencepenalty","description":"Positive values penalize tokens that already appear in the\n      generated text, increasing the probability of generating more diverse\n      content.\n      "},"frequencyPenalty":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Frequencypenalty","description":"Positive values penalize tokens that repeatedly appear in the\n      generated text, increasing the probability of generating more diverse\n      content.\n      "},"seed":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seed","description":"When ``seed`` is fixed to a specific number, the model makes a best\n      effort to provide the same response for repeated requests. By default, a\n      random number is used.\n      "},"responseMimeType":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Responsemimetype","description":"Output response mimetype of the generated candidate text.\n      Supported mimetype:\n        - `text/plain`: (default) Text output.\n        - `application/json`: JSON response in the candidates.\n      The model needs to be prompted to output the appropriate response type,\n      otherwise the behavior is undefined.\n      This is a preview feature.\n      "},"responseSchema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"$ref":"#/components/schemas/Schema-Output"},{"type":"null"}],"title":"Responseschema","description":"The `Schema` object allows the definition of input and output data types.\n      These types can be objects, but also primitives and arrays.\n      Represents a select subset of an [OpenAPI 3.0 schema\n      object](https://spec.openapis.org/oas/v3.0.3#schema).\n      If set, a compatible response_mime_type must also be set.\n      Compatible mimetypes: `application/json`: Schema for JSON response.\n      "},"responseJsonSchema":{"anyOf":[{},{"type":"null"}],"title":"Responsejsonschema","description":"Optional. Output schema of the generated response.\n      This is an alternative to `response_schema` that accepts [JSON\n      Schema](https://json-schema.org/). If set, `response_schema` must be\n      omitted, but `response_mime_type` is required. While the full JSON Schema\n      may be sent, not all features are supported. Specifically, only the\n      following properties are supported: - `$id` - `$defs` - `$ref` - `$anchor`\n      - `type` - `format` - `title` - `description` - `enum` (for strings and\n      numbers) - `items` - `prefixItems` - `minItems` - `maxItems` - `minimum` -\n      `maximum` - `anyOf` - `oneOf` (interpreted the same as `anyOf`) -\n      `properties` - `additionalProperties` - `required` The non-standard\n      `propertyOrdering` property may also be set. Cyclic references are\n      unrolled to a limited degree and, as such, may only be used within\n      non-required properties. (Nullable properties are not sufficient.) If\n      `$ref` is set on a sub-schema, no other properties, except for than those\n      starting as a `$`, may be set."},"routingConfig":{"anyOf":[{"$ref":"#/components/schemas/GenerationConfigRoutingConfig"},{"type":"null"}],"description":"Configuration for model router requests.\n      "},"modelSelectionConfig":{"anyOf":[{"$ref":"#/components/schemas/ModelSelectionConfig"},{"type":"null"}],"description":"Configuration for model selection.\n      "},"safetySettings":{"anyOf":[{"items":{"$ref":"#/components/schemas/SafetySetting"},"type":"array"},{"type":"null"}],"title":"Safetysettings","description":"Safety settings in the request to block unsafe content in the\n      response.\n      "},"tools":{"anyOf":[{"items":{"anyOf":[{"$ref":"#/components/schemas/google__genai__types__Tool-Output"},{"$ref":"#/components/schemas/mcp__types__Tool"}]},"type":"array"},{"type":"null"}],"title":"Tools","description":"Code that enables the system to interact with external systems to\n      perform an action outside of the knowledge and scope of the model.\n      "},"toolConfig":{"anyOf":[{"$ref":"#/components/schemas/ToolConfig-Output"},{"type":"null"}],"description":"Associates model output to a specific function call.\n      "},"labels":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Labels","description":"Labels with user-defined metadata to break down billed charges."},"cachedContent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cachedcontent","description":"Resource name of a context cache that can be used in subsequent\n      requests.\n      "},"responseModalities":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Responsemodalities","description":"The requested modalities of the response. Represents the set of\n      modalities that the model can return.\n      "},"mediaResolution":{"anyOf":[{"$ref":"#/components/schemas/MediaResolution"},{"type":"null"}],"description":"If specified, the media resolution specified will be used.\n    "},"speechConfig":{"anyOf":[{"type":"string"},{"$ref":"#/components/schemas/SpeechConfig-Output"},{"type":"null"}],"title":"Speechconfig","description":"The speech generation configuration.\n      "},"audioTimestamp":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Audiotimestamp","description":"If enabled, audio timestamp will be included in the request to the\n       model.\n      "},"automaticFunctionCalling":{"anyOf":[{"$ref":"#/components/schemas/AutomaticFunctionCallingConfig"},{"type":"null"}],"description":"The configuration for automatic function calling.\n      "},"thinkingConfig":{"anyOf":[{"$ref":"#/components/schemas/ThinkingConfig"},{"type":"null"}],"description":"The thinking features configuration.\n      "},"imageConfig":{"anyOf":[{"$ref":"#/components/schemas/ImageConfig"},{"type":"null"}],"description":"The image generation configuration.\n      "}},"additionalProperties":false,"type":"object","title":"GenerateContentConfig","description":"Optional model configuration parameters.\n\nFor more information, see `Content generation parameters\n<https://cloud.google.com/vertex-ai/generative-ai/docs/multimodal/content-generation-parameters>`_."},"GenerateContentResponseUsageMetadata-Input":{"properties":{"cacheTokensDetails":{"anyOf":[{"items":{"$ref":"#/components/schemas/ModalityTokenCount"},"type":"array"},{"type":"null"}],"title":"Cachetokensdetails","description":"Output only. List of modalities of the cached content in the request input."},"cachedContentTokenCount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cachedcontenttokencount","description":"Output only. Number of tokens in the cached part in the input (the cached content)."},"candidatesTokenCount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Candidatestokencount","description":"Number of tokens in the response(s)."},"candidatesTokensDetails":{"anyOf":[{"items":{"$ref":"#/components/schemas/ModalityTokenCount"},"type":"array"},{"type":"null"}],"title":"Candidatestokensdetails","description":"Output only. List of modalities that were returned in the response."},"promptTokenCount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prompttokencount","description":"Number of tokens in the request. When `cached_content` is set, this is still the total effective prompt size meaning this includes the number of tokens in the cached content."},"promptTokensDetails":{"anyOf":[{"items":{"$ref":"#/components/schemas/ModalityTokenCount"},"type":"array"},{"type":"null"}],"title":"Prompttokensdetails","description":"Output only. List of modalities that were processed in the request input."},"thoughtsTokenCount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Thoughtstokencount","description":"Output only. Number of tokens present in thoughts output."},"toolUsePromptTokenCount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tooluseprompttokencount","description":"Output only. Number of tokens present in tool-use prompt(s)."},"toolUsePromptTokensDetails":{"anyOf":[{"items":{"$ref":"#/components/schemas/ModalityTokenCount"},"type":"array"},{"type":"null"}],"title":"Tooluseprompttokensdetails","description":"Output only. List of modalities that were processed for tool-use request inputs."},"totalTokenCount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Totaltokencount","description":"Total token count for prompt, response candidates, and tool-use prompts (if present)."},"trafficType":{"anyOf":[{"$ref":"#/components/schemas/TrafficType"},{"type":"null"}],"description":"Output only. Traffic type. This shows whether a request consumes Pay-As-You-Go or Provisioned Throughput quota."}},"additionalProperties":false,"type":"object","title":"GenerateContentResponseUsageMetadata","description":"Usage metadata about response(s)."},"GenerateContentResponseUsageMetadata-Output":{"properties":{"cacheTokensDetails":{"anyOf":[{"items":{"$ref":"#/components/schemas/ModalityTokenCount"},"type":"array"},{"type":"null"}],"title":"Cachetokensdetails","description":"Output only. List of modalities of the cached content in the request input."},"cachedContentTokenCount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cachedcontenttokencount","description":"Output only. Number of tokens in the cached part in the input (the cached content)."},"candidatesTokenCount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Candidatestokencount","description":"Number of tokens in the response(s)."},"candidatesTokensDetails":{"anyOf":[{"items":{"$ref":"#/components/schemas/ModalityTokenCount"},"type":"array"},{"type":"null"}],"title":"Candidatestokensdetails","description":"Output only. List of modalities that were returned in the response."},"promptTokenCount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Prompttokencount","description":"Number of tokens in the request. When `cached_content` is set, this is still the total effective prompt size meaning this includes the number of tokens in the cached content."},"promptTokensDetails":{"anyOf":[{"items":{"$ref":"#/components/schemas/ModalityTokenCount"},"type":"array"},{"type":"null"}],"title":"Prompttokensdetails","description":"Output only. List of modalities that were processed in the request input."},"thoughtsTokenCount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Thoughtstokencount","description":"Output only. Number of tokens present in thoughts output."},"toolUsePromptTokenCount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tooluseprompttokencount","description":"Output only. Number of tokens present in tool-use prompt(s)."},"toolUsePromptTokensDetails":{"anyOf":[{"items":{"$ref":"#/components/schemas/ModalityTokenCount"},"type":"array"},{"type":"null"}],"title":"Tooluseprompttokensdetails","description":"Output only. List of modalities that were processed for tool-use request inputs."},"totalTokenCount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Totaltokencount","description":"Total token count for prompt, response candidates, and tool-use prompts (if present)."},"trafficType":{"anyOf":[{"$ref":"#/components/schemas/TrafficType"},{"type":"null"}],"description":"Output only. Traffic type. This shows whether a request consumes Pay-As-You-Go or Provisioned Throughput quota."}},"additionalProperties":false,"type":"object","title":"GenerateContentResponseUsageMetadata","description":"Usage metadata about response(s)."},"GenerationConfigRoutingConfig":{"properties":{"autoMode":{"anyOf":[{"$ref":"#/components/schemas/GenerationConfigRoutingConfigAutoRoutingMode"},{"type":"null"}],"description":"Automated routing."},"manualMode":{"anyOf":[{"$ref":"#/components/schemas/GenerationConfigRoutingConfigManualRoutingMode"},{"type":"null"}],"description":"Manual routing."}},"additionalProperties":false,"type":"object","title":"GenerationConfigRoutingConfig","description":"The configuration for routing the request to a specific model."},"GenerationConfigRoutingConfigAutoRoutingMode":{"properties":{"modelRoutingPreference":{"anyOf":[{"type":"string","enum":["UNKNOWN","PRIORITIZE_QUALITY","BALANCED","PRIORITIZE_COST"]},{"type":"null"}],"title":"Modelroutingpreference","description":"The model routing preference."}},"additionalProperties":false,"type":"object","title":"GenerationConfigRoutingConfigAutoRoutingMode","description":"When automated routing is specified, the routing will be determined by the pretrained routing model and customer provided model routing preference."},"GenerationConfigRoutingConfigManualRoutingMode":{"properties":{"modelName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Modelname","description":"The model name to use. Only the public LLM models are accepted. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models)."}},"additionalProperties":false,"type":"object","title":"GenerationConfigRoutingConfigManualRoutingMode","description":"When manual routing is set, the specified model will be used directly."},"GoogleMaps-Input":{"properties":{"authConfig":{"anyOf":[{"$ref":"#/components/schemas/google__genai__types__AuthConfig"},{"type":"null"}],"description":"Optional. Auth config for the Google Maps tool."}},"additionalProperties":false,"type":"object","title":"GoogleMaps","description":"Tool to support Google Maps in Model."},"GoogleMaps-Output":{"properties":{"authConfig":{"anyOf":[{"$ref":"#/components/schemas/google__genai__types__AuthConfig"},{"type":"null"}],"description":"Optional. Auth config for the Google Maps tool."}},"additionalProperties":false,"type":"object","title":"GoogleMaps","description":"Tool to support Google Maps in Model."},"GoogleSearch-Input":{"properties":{"timeRangeFilter":{"anyOf":[{"$ref":"#/components/schemas/Interval-Input"},{"type":"null"}],"description":"Optional. Filter search results to a specific time range.\n      If customers set a start time, they must set an end time (and vice versa).\n      "},"excludeDomains":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Excludedomains","description":"Optional. List of domains to be excluded from the search results.\n      The default limit is 2000 domains."}},"additionalProperties":false,"type":"object","title":"GoogleSearch","description":"Tool to support Google Search in Model. Powered by Google."},"GoogleSearch-Output":{"properties":{"timeRangeFilter":{"anyOf":[{"$ref":"#/components/schemas/google__genai__types__Interval"},{"type":"null"}],"description":"Optional. Filter search results to a specific time range.\n      If customers set a start time, they must set an end time (and vice versa).\n      "},"excludeDomains":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Excludedomains","description":"Optional. List of domains to be excluded from the search results.\n      The default limit is 2000 domains."}},"additionalProperties":false,"type":"object","title":"GoogleSearch","description":"Tool to support Google Search in Model. Powered by Google."},"GoogleSearchRetrieval-Input":{"properties":{"dynamicRetrievalConfig":{"anyOf":[{"$ref":"#/components/schemas/DynamicRetrievalConfig"},{"type":"null"}],"description":"Specifies the dynamic retrieval configuration for the given source."}},"additionalProperties":false,"type":"object","title":"GoogleSearchRetrieval","description":"Tool to retrieve public web data for grounding, powered by Google."},"GoogleSearchRetrieval-Output":{"properties":{"dynamicRetrievalConfig":{"anyOf":[{"$ref":"#/components/schemas/DynamicRetrievalConfig"},{"type":"null"}],"description":"Specifies the dynamic retrieval configuration for the given source."}},"additionalProperties":false,"type":"object","title":"GoogleSearchRetrieval","description":"Tool to retrieve public web data for grounding, powered by Google."},"GroundingChunk-Input":{"properties":{"maps":{"anyOf":[{"$ref":"#/components/schemas/GroundingChunkMaps-Input"},{"type":"null"}],"description":"Grounding chunk from Google Maps."},"retrievedContext":{"anyOf":[{"$ref":"#/components/schemas/GroundingChunkRetrievedContext-Input"},{"type":"null"}],"description":"Grounding chunk from context retrieved by the retrieval tools."},"web":{"anyOf":[{"$ref":"#/components/schemas/GroundingChunkWeb"},{"type":"null"}],"description":"Grounding chunk from the web."}},"additionalProperties":false,"type":"object","title":"GroundingChunk","description":"Grounding chunk."},"GroundingChunk-Output":{"properties":{"maps":{"anyOf":[{"$ref":"#/components/schemas/GroundingChunkMaps-Output"},{"type":"null"}],"description":"Grounding chunk from Google Maps."},"retrievedContext":{"anyOf":[{"$ref":"#/components/schemas/GroundingChunkRetrievedContext-Output"},{"type":"null"}],"description":"Grounding chunk from context retrieved by the retrieval tools."},"web":{"anyOf":[{"$ref":"#/components/schemas/GroundingChunkWeb"},{"type":"null"}],"description":"Grounding chunk from the web."}},"additionalProperties":false,"type":"object","title":"GroundingChunk","description":"Grounding chunk."},"GroundingChunkMaps-Input":{"properties":{"placeAnswerSources":{"anyOf":[{"$ref":"#/components/schemas/GroundingChunkMapsPlaceAnswerSources-Input"},{"type":"null"}],"description":"Sources used to generate the place answer. This includes review snippets and photos that were used to generate the answer, as well as uris to flag content."},"placeId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Placeid","description":"This Place's resource name, in `places/{place_id}` format. Can be used to look up the Place."},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text","description":"Text of the chunk."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"Title of the chunk."},"uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uri","description":"URI reference of the chunk."}},"additionalProperties":false,"type":"object","title":"GroundingChunkMaps","description":"Chunk from Google Maps."},"GroundingChunkMaps-Output":{"properties":{"placeAnswerSources":{"anyOf":[{"$ref":"#/components/schemas/GroundingChunkMapsPlaceAnswerSources-Output"},{"type":"null"}],"description":"Sources used to generate the place answer. This includes review snippets and photos that were used to generate the answer, as well as uris to flag content."},"placeId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Placeid","description":"This Place's resource name, in `places/{place_id}` format. Can be used to look up the Place."},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text","description":"Text of the chunk."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"Title of the chunk."},"uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uri","description":"URI reference of the chunk."}},"additionalProperties":false,"type":"object","title":"GroundingChunkMaps","description":"Chunk from Google Maps."},"GroundingChunkMapsPlaceAnswerSources-Input":{"properties":{"flagContentUri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flagcontenturi","description":"A link where users can flag a problem with the generated answer."},"reviewSnippets":{"anyOf":[{"items":{"$ref":"#/components/schemas/GroundingChunkMapsPlaceAnswerSourcesReviewSnippet"},"type":"array"},{"type":"null"}],"title":"Reviewsnippets","description":"Snippets of reviews that are used to generate the answer."}},"additionalProperties":false,"type":"object","title":"GroundingChunkMapsPlaceAnswerSources","description":"Sources used to generate the place answer."},"GroundingChunkMapsPlaceAnswerSources-Output":{"properties":{"flagContentUri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flagcontenturi","description":"A link where users can flag a problem with the generated answer."},"reviewSnippets":{"anyOf":[{"items":{"$ref":"#/components/schemas/GroundingChunkMapsPlaceAnswerSourcesReviewSnippet"},"type":"array"},{"type":"null"}],"title":"Reviewsnippets","description":"Snippets of reviews that are used to generate the answer."}},"additionalProperties":false,"type":"object","title":"GroundingChunkMapsPlaceAnswerSources","description":"Sources used to generate the place answer."},"GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution":{"properties":{"displayName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Displayname","description":"Name of the author of the Photo or Review."},"photoUri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Photouri","description":"Profile photo URI of the author of the Photo or Review."},"uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uri","description":"URI of the author of the Photo or Review."}},"additionalProperties":false,"type":"object","title":"GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution","description":"Author attribution for a photo or review."},"GroundingChunkMapsPlaceAnswerSourcesReviewSnippet":{"properties":{"authorAttribution":{"anyOf":[{"$ref":"#/components/schemas/GroundingChunkMapsPlaceAnswerSourcesAuthorAttribution"},{"type":"null"}],"description":"This review's author."},"flagContentUri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Flagcontenturi","description":"A link where users can flag a problem with the review."},"googleMapsUri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Googlemapsuri","description":"A link to show the review on Google Maps."},"relativePublishTimeDescription":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Relativepublishtimedescription","description":"A string of formatted recent time, expressing the review time relative to the current time in a form appropriate for the language and country."},"review":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Review","description":"A reference representing this place review which may be used to look up this place review again."}},"additionalProperties":false,"type":"object","title":"GroundingChunkMapsPlaceAnswerSourcesReviewSnippet","description":"Encapsulates a review snippet."},"GroundingChunkRetrievedContext-Input":{"properties":{"documentName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Documentname","description":"Output only. The full document name for the referenced Vertex AI Search document."},"ragChunk":{"anyOf":[{"$ref":"#/components/schemas/RagChunk"},{"type":"null"}],"description":"Additional context for the RAG retrieval result. This is only populated when using the RAG retrieval tool."},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text","description":"Text of the attribution."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"Title of the attribution."},"uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uri","description":"URI reference of the attribution."}},"additionalProperties":false,"type":"object","title":"GroundingChunkRetrievedContext","description":"Chunk from context retrieved by the retrieval tools."},"GroundingChunkRetrievedContext-Output":{"properties":{"documentName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Documentname","description":"Output only. The full document name for the referenced Vertex AI Search document."},"ragChunk":{"anyOf":[{"$ref":"#/components/schemas/RagChunk"},{"type":"null"}],"description":"Additional context for the RAG retrieval result. This is only populated when using the RAG retrieval tool."},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text","description":"Text of the attribution."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"Title of the attribution."},"uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uri","description":"URI reference of the attribution."}},"additionalProperties":false,"type":"object","title":"GroundingChunkRetrievedContext","description":"Chunk from context retrieved by the retrieval tools."},"GroundingChunkWeb":{"properties":{"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain","description":"Domain of the (original) URI."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"Title of the chunk."},"uri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Uri","description":"URI reference of the chunk."}},"additionalProperties":false,"type":"object","title":"GroundingChunkWeb","description":"Chunk from the web."},"GroundingMetadata-Input":{"properties":{"googleMapsWidgetContextToken":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Googlemapswidgetcontexttoken","description":"Optional. Output only. Resource name of the Google Maps widget context token to be used with the PlacesContextElement widget to render contextual data. This is populated only for Google Maps grounding."},"groundingChunks":{"anyOf":[{"items":{"$ref":"#/components/schemas/GroundingChunk-Input"},"type":"array"},{"type":"null"}],"title":"Groundingchunks","description":"List of supporting references retrieved from specified grounding source."},"groundingSupports":{"anyOf":[{"items":{"$ref":"#/components/schemas/GroundingSupport"},"type":"array"},{"type":"null"}],"title":"Groundingsupports","description":"Optional. List of grounding support."},"retrievalMetadata":{"anyOf":[{"$ref":"#/components/schemas/RetrievalMetadata"},{"type":"null"}],"description":"Optional. Output only. Retrieval metadata."},"retrievalQueries":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Retrievalqueries","description":"Optional. Queries executed by the retrieval tools."},"searchEntryPoint":{"anyOf":[{"$ref":"#/components/schemas/SearchEntryPoint"},{"type":"null"}],"description":"Optional. Google search entry for the following-up web searches."},"webSearchQueries":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Websearchqueries","description":"Optional. Web search queries for the following-up web search."}},"additionalProperties":false,"type":"object","title":"GroundingMetadata","description":"Metadata returned to client when grounding is enabled."},"GroundingMetadata-Output":{"properties":{"googleMapsWidgetContextToken":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Googlemapswidgetcontexttoken","description":"Optional. Output only. Resource name of the Google Maps widget context token to be used with the PlacesContextElement widget to render contextual data. This is populated only for Google Maps grounding."},"groundingChunks":{"anyOf":[{"items":{"$ref":"#/components/schemas/GroundingChunk-Output"},"type":"array"},{"type":"null"}],"title":"Groundingchunks","description":"List of supporting references retrieved from specified grounding source."},"groundingSupports":{"anyOf":[{"items":{"$ref":"#/components/schemas/GroundingSupport"},"type":"array"},{"type":"null"}],"title":"Groundingsupports","description":"Optional. List of grounding support."},"retrievalMetadata":{"anyOf":[{"$ref":"#/components/schemas/RetrievalMetadata"},{"type":"null"}],"description":"Optional. Output only. Retrieval metadata."},"retrievalQueries":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Retrievalqueries","description":"Optional. Queries executed by the retrieval tools."},"searchEntryPoint":{"anyOf":[{"$ref":"#/components/schemas/SearchEntryPoint"},{"type":"null"}],"description":"Optional. Google search entry for the following-up web searches."},"webSearchQueries":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Websearchqueries","description":"Optional. Web search queries for the following-up web search."}},"additionalProperties":false,"type":"object","title":"GroundingMetadata","description":"Metadata returned to client when grounding is enabled."},"GroundingSupport":{"properties":{"confidenceScores":{"anyOf":[{"items":{"type":"number"},"type":"array"},{"type":"null"}],"title":"Confidencescores","description":"Confidence score of the support references. Ranges from 0 to 1. 1 is the most confident. For Gemini 2.0 and before, this list must have the same size as the grounding_chunk_indices. For Gemini 2.5 and after, this list will be empty and should be ignored."},"groundingChunkIndices":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Groundingchunkindices","description":"A list of indices (into 'grounding_chunk') specifying the citations associated with the claim. For instance [1,3,4] means that grounding_chunk[1], grounding_chunk[3], grounding_chunk[4] are the retrieved content attributed to the claim."},"segment":{"anyOf":[{"$ref":"#/components/schemas/Segment"},{"type":"null"}],"description":"Segment of the content this support belongs to."}},"additionalProperties":false,"type":"object","title":"GroundingSupport","description":"Grounding support."},"HTTPBase":{"properties":{"type":{"$ref":"#/components/schemas/SecuritySchemeType","default":"http"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"scheme":{"type":"string","title":"Scheme"}},"additionalProperties":true,"type":"object","required":["scheme"],"title":"HTTPBase"},"HTTPBearer":{"properties":{"type":{"$ref":"#/components/schemas/SecuritySchemeType","default":"http"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"scheme":{"type":"string","const":"bearer","title":"Scheme","default":"bearer"},"bearerFormat":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Bearerformat"}},"additionalProperties":true,"type":"object","title":"HTTPBearer"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HarmBlockMethod":{"type":"string","enum":["HARM_BLOCK_METHOD_UNSPECIFIED","SEVERITY","PROBABILITY"],"title":"HarmBlockMethod","description":"Optional.\n\nSpecify if the threshold is used for probability or severity score. If not\nspecified, the threshold is used for probability score."},"HarmBlockThreshold":{"type":"string","enum":["HARM_BLOCK_THRESHOLD_UNSPECIFIED","BLOCK_LOW_AND_ABOVE","BLOCK_MEDIUM_AND_ABOVE","BLOCK_ONLY_HIGH","BLOCK_NONE","OFF"],"title":"HarmBlockThreshold","description":"Required. The harm block threshold."},"HarmCategory":{"type":"string","enum":["HARM_CATEGORY_UNSPECIFIED","HARM_CATEGORY_HATE_SPEECH","HARM_CATEGORY_DANGEROUS_CONTENT","HARM_CATEGORY_HARASSMENT","HARM_CATEGORY_SEXUALLY_EXPLICIT","HARM_CATEGORY_CIVIC_INTEGRITY","HARM_CATEGORY_IMAGE_HATE","HARM_CATEGORY_IMAGE_DANGEROUS_CONTENT","HARM_CATEGORY_IMAGE_HARASSMENT","HARM_CATEGORY_IMAGE_SEXUALLY_EXPLICIT"],"title":"HarmCategory","description":"Required. Harm category."},"HttpAuth":{"properties":{"scheme":{"type":"string","title":"Scheme"},"credentials":{"$ref":"#/components/schemas/HttpCredentials"}},"additionalProperties":true,"type":"object","required":["scheme","credentials"],"title":"HttpAuth","description":"The credentials and metadata for HTTP authentication."},"HttpCredentials":{"properties":{"username":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Username"},"password":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Password"},"token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}},"additionalProperties":true,"type":"object","title":"HttpCredentials","description":"Represents the secret token value for HTTP authentication, like user name, password, oauth token, etc."},"HttpOptions":{"properties":{"baseUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Baseurl","description":"The base URL for the AI platform service endpoint."},"apiVersion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Apiversion","description":"Specifies the version of the API to use."},"headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Headers","description":"Additional HTTP headers to be sent with the request."},"timeout":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Timeout","description":"Timeout for the request in milliseconds."},"clientArgs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Clientargs","description":"Args passed to the HTTP client."},"asyncClientArgs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Asyncclientargs","description":"Args passed to the async HTTP client."},"extraBody":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Extrabody","description":"Extra parameters to add to the request body.\n      The structure must match the backend API's request structure.\n      - VertexAI backend API docs: https://cloud.google.com/vertex-ai/docs/reference/rest\n      - GeminiAPI backend API docs: https://ai.google.dev/api/rest"},"retryOptions":{"anyOf":[{"$ref":"#/components/schemas/HttpRetryOptions"},{"type":"null"}],"description":"HTTP retry options for the request."}},"additionalProperties":false,"type":"object","title":"HttpOptions","description":"HTTP options to be used in each of the requests."},"HttpRetryOptions":{"properties":{"attempts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Attempts","description":"Maximum number of attempts, including the original request.\n      If 0 or 1, it means no retries."},"initialDelay":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Initialdelay","description":"Initial delay before the first retry, in fractions of a second."},"maxDelay":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Maxdelay","description":"Maximum delay between retries, in fractions of a second."},"expBase":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Expbase","description":"Multiplier by which the delay increases after each attempt."},"jitter":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Jitter","description":"Randomness factor for the delay."},"httpStatusCodes":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Httpstatuscodes","description":"List of HTTP status codes that should trigger a retry.\n      If not specified, a default set of retryable codes may be used."}},"additionalProperties":false,"type":"object","title":"HttpRetryOptions","description":"HTTP retry options to be used in each of the requests."},"ImageConfig":{"properties":{"aspectRatio":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Aspectratio","description":"Aspect ratio of the generated images. Supported values are\n      \"1:1\", \"2:3\", \"3:2\", \"3:4\", \"4:3\", \"9:16\", \"16:9\", and \"21:9\"."}},"additionalProperties":false,"type":"object","title":"ImageConfig","description":"The image generation configuration to be used in GenerateContentConfig."},"InactivityPushRequest":{"properties":{"character_id":{"type":"string","title":"Character Id","description":"캐릭터 ID (예: leejihoo01)"},"character_name":{"type":"string","title":"Character Name","description":"캐릭터 표시명 (예: 이지후)"},"user_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"User Name","description":"유저 닉네임. null/빈 문자열이면 비어 있음으로 처리"},"attempt_no":{"anyOf":[{"type":"integer","maximum":3.0,"minimum":1.0},{"type":"null"}],"title":"Attempt No","description":"몇 차 선톡인지 (1/2/3). 복귀 선톡이면 None."},"hours_since_last":{"anyOf":[{"type":"integer","minimum":0.0},{"type":"null"}],"title":"Hours Since Last","description":"마지막 대화 후 경과 시간(시간 단위). 복귀 선톡이면 None."},"recent_messages":{"items":{"$ref":"#/components/schemas/DialogueMessage"},"type":"array","title":"Recent Messages","description":"최근 N 턴 대화 — 본문 LLM 처럼 role/content 멀티턴으로 전달. agent 가 system 프롬프트와 user 트리거 사이에 펼쳐 넣는다. 없으면 빈 리스트."},"recent_dialogue":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recent Dialogue","description":"[DEPRECATED] 구버전 텍스트 포맷 최근 대화('[유저] ...\\n[캐릭터] ...'). role/content 통일(recent_messages) 전 호환용. 신규 호출은 None."},"recovery_state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Recovery State","description":"OFF→ON 복귀 선톡 분기 신호. away_false / ignored_false (유저 메시지 0건 복귀). 일반 비활성 선톡이면 None."},"off_activity":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Off Activity","description":"직전 스케줄 활동 라벨 (예: '수업', '근무'). away_false(스케줄 부재 복귀) 일 때만 채움 — '나 수업 갔다왔어' 류 멘트 근거. ignored_false / 일반 비활성 선톡이면 None."},"language":{"type":"string","title":"Language","description":"유저 언어 코드 (ko/en/ja/es/zh_hant/zh_hans/fr/de/pt/th/id/vi/it/ru/tr/ar/hi/pl). ko 가 아니면 Opik `inactivity_push_{character_id}_{language}` 가 있을 때 그걸 쓰고, 없으면 기존 한국어 프롬프트. 템플릿 변수 `language` 로도 전달된다.","default":"ko"}},"type":"object","required":["character_id","character_name"],"title":"InactivityPushRequest","description":"비활성 유저 선톡(케이스1) / OFF→ON 복귀 선톡 한 줄 메시지 생성 요청.\n\nkaidol-api 의 InactivityPushDispatcher(일반 비활성 선톡) 또는 reconcile_messaging\n(OFF→ON 복귀 선톡) 가 호출. Opik prompt `inactivity_push_{character_id}` 의\nJinja2 변수에 주입되며, 최근 대화는 `recent_messages` 로 본문 LLM 처럼\nrole/content 멀티턴으로 전달된다.\n\n두 호출 경로 모두 `recent_messages` 로 최근 대화 맥락을 함께 보낸다(있으면).\nrecovery_state 로 일반/복귀 선톡 톤만 분기한다:\n  - 일반 비활성 선톡: recovery_state=None, attempt_no / hours_since_last 채움.\n  - 복귀 선톡: recovery_state=away_false/ignored_false, attempt_no /\n    hours_since_last=None.\ncharacter_id / character_name / user_name 은 양쪽 모두 채운다."},"InactivityPushResponse":{"properties":{"content":{"type":"string","title":"Content","description":"발송 메시지 본문"},"model":{"type":"string","title":"Model","description":"실제 호출된 LLM 모델명 (디버그/관찰성)"},"trace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trace Id","description":"Opik trace ID. kaidol-api 가 user_messages.message_metadata 에 저장해 dev Prompt Viewer 연결에 사용. 캡처 실패 시 null"}},"type":"object","required":["content","model"],"title":"InactivityPushResponse","description":"생성된 한 줄 선톡 메시지."},"IntermediateData-Input":{"properties":{"toolUses":{"items":{"$ref":"#/components/schemas/FunctionCall"},"type":"array","title":"Tooluses","default":[]},"toolResponses":{"items":{"$ref":"#/components/schemas/FunctionResponse-Input"},"type":"array","title":"Toolresponses","default":[]},"intermediateResponses":{"items":{"prefixItems":[{"type":"string"},{"items":{"$ref":"#/components/schemas/Part-Input"},"type":"array"}],"type":"array","maxItems":2,"minItems":2},"type":"array","title":"Intermediateresponses","default":[]}},"additionalProperties":false,"type":"object","title":"IntermediateData","description":"Container for intermediate data that an agent would generate as it responds with a final answer."},"IntermediateData-Output":{"properties":{"toolUses":{"items":{"$ref":"#/components/schemas/FunctionCall"},"type":"array","title":"Tooluses","default":[]},"toolResponses":{"items":{"$ref":"#/components/schemas/FunctionResponse-Output"},"type":"array","title":"Toolresponses","default":[]},"intermediateResponses":{"items":{"prefixItems":[{"type":"string"},{"items":{"$ref":"#/components/schemas/Part-Output"},"type":"array"}],"type":"array","maxItems":2,"minItems":2},"type":"array","title":"Intermediateresponses","default":[]}},"additionalProperties":false,"type":"object","title":"IntermediateData","description":"Container for intermediate data that an agent would generate as it responds with a final answer."},"Interval-Input":{"properties":{"startTime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Starttime","description":"The start time of the interval."},"endTime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Endtime","description":"The end time of the interval."}},"additionalProperties":false,"type":"object","title":"Interval","description":"Represents a time interval, encoded as a start time (inclusive) and an end time (exclusive).\n\nThe start time must be less than or equal to the end time.\nWhen the start equals the end time, the interval is an empty interval.\n(matches no time)\nWhen both start and end are unspecified, the interval matches any time."},"Invocation-Input":{"properties":{"invocationId":{"type":"string","title":"Invocationid","default":""},"userContent":{"$ref":"#/components/schemas/Content-Input"},"finalResponse":{"anyOf":[{"$ref":"#/components/schemas/Content-Input"},{"type":"null"}]},"intermediateData":{"anyOf":[{"$ref":"#/components/schemas/IntermediateData-Input"},{"$ref":"#/components/schemas/InvocationEvents-Input"},{"type":"null"}],"title":"Intermediatedata"},"creationTimestamp":{"type":"number","title":"Creationtimestamp","default":0.0},"rubrics":{"anyOf":[{"items":{"$ref":"#/components/schemas/Rubric"},"type":"array"},{"type":"null"}],"title":"Rubrics"},"appDetails":{"anyOf":[{"$ref":"#/components/schemas/AppDetails-Input"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["userContent"],"title":"Invocation","description":"Represents a single invocation."},"Invocation-Output":{"properties":{"invocationId":{"type":"string","title":"Invocationid","default":""},"userContent":{"$ref":"#/components/schemas/Content-Output"},"finalResponse":{"anyOf":[{"$ref":"#/components/schemas/Content-Output"},{"type":"null"}]},"intermediateData":{"anyOf":[{"$ref":"#/components/schemas/IntermediateData-Output"},{"$ref":"#/components/schemas/InvocationEvents-Output"},{"type":"null"}],"title":"Intermediatedata"},"creationTimestamp":{"type":"number","title":"Creationtimestamp","default":0.0},"rubrics":{"anyOf":[{"items":{"$ref":"#/components/schemas/Rubric"},"type":"array"},{"type":"null"}],"title":"Rubrics"},"appDetails":{"anyOf":[{"$ref":"#/components/schemas/AppDetails-Output"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["userContent"],"title":"Invocation","description":"Represents a single invocation."},"InvocationEvent-Input":{"properties":{"author":{"type":"string","title":"Author"},"content":{"anyOf":[{"$ref":"#/components/schemas/Content-Input"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["author","content"],"title":"InvocationEvent","description":"An immutable record representing a specific point in the agent's invocation.\n\nIt captures agent's replies, requests to use tools (function calls), and tool\nresults.\n\nThis structure is a simple projection of the actual `Event` datamodel that\nis intended for the Eval System."},"InvocationEvent-Output":{"properties":{"author":{"type":"string","title":"Author"},"content":{"anyOf":[{"$ref":"#/components/schemas/Content-Output"},{"type":"null"}]}},"additionalProperties":false,"type":"object","required":["author","content"],"title":"InvocationEvent","description":"An immutable record representing a specific point in the agent's invocation.\n\nIt captures agent's replies, requests to use tools (function calls), and tool\nresults.\n\nThis structure is a simple projection of the actual `Event` datamodel that\nis intended for the Eval System."},"InvocationEvents-Input":{"properties":{"invocationEvents":{"items":{"$ref":"#/components/schemas/InvocationEvent-Input"},"type":"array","title":"Invocationevents"}},"additionalProperties":false,"type":"object","title":"InvocationEvents","description":"A container for events that occur during the course of an invocation."},"InvocationEvents-Output":{"properties":{"invocationEvents":{"items":{"$ref":"#/components/schemas/InvocationEvent-Output"},"type":"array","title":"Invocationevents"}},"additionalProperties":false,"type":"object","title":"InvocationEvents","description":"A container for events that occur during the course of an invocation."},"JudgeModelOptions-Input":{"properties":{"judgeModel":{"type":"string","title":"Judgemodel","description":"The judge model to use for evaluation. It can be a model name.","default":"gemini-2.5-flash"},"judgeModelConfig":{"anyOf":[{"$ref":"#/components/schemas/GenerateContentConfig-Input"},{"type":"null"}],"description":"The configuration for the judge model."},"numSamples":{"type":"integer","title":"Numsamples","description":"The number of times to sample the model for each invocation evaluation. Given that models tend to have certain degree of unreliability to them, we repeatedly sample them with the same data. These repeated invocation are them aggregated using some strategy. From experimentation, we have found 5 to be a good default.","default":5}},"additionalProperties":false,"type":"object","title":"JudgeModelOptions","description":"Options for an eval metric's judge model."},"JudgeModelOptions-Output":{"properties":{"judgeModel":{"type":"string","title":"Judgemodel","description":"The judge model to use for evaluation. It can be a model name.","default":"gemini-2.5-flash"},"judgeModelConfig":{"anyOf":[{"$ref":"#/components/schemas/GenerateContentConfig-Output"},{"type":"null"}],"description":"The configuration for the judge model."},"numSamples":{"type":"integer","title":"Numsamples","description":"The number of times to sample the model for each invocation evaluation. Given that models tend to have certain degree of unreliability to them, we repeatedly sample them with the same data. These repeated invocation are them aggregated using some strategy. From experimentation, we have found 5 to be a good default.","default":5}},"additionalProperties":false,"type":"object","title":"JudgeModelOptions","description":"Options for an eval metric's judge model."},"Language":{"type":"string","enum":["LANGUAGE_UNSPECIFIED","PYTHON"],"title":"Language","description":"Required. Programming language of the `code`."},"LatLng":{"properties":{"latitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Latitude","description":"The latitude in degrees. It must be in the range [-90.0, +90.0]."},"longitude":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Longitude","description":"The longitude in degrees. It must be in the range [-180.0, +180.0]"}},"additionalProperties":false,"type":"object","title":"LatLng","description":"An object that represents a latitude/longitude pair.\n\nThis is expressed as a pair of doubles to represent degrees latitude and\ndegrees longitude. Unless specified otherwise, this object must conform to the\n<a href=\"https://en.wikipedia.org/wiki/World_Geodetic_System#1984_version\">\nWGS84 standard</a>. Values must be within normalized ranges."},"ListEvalResultsResponse":{"properties":{"evalResultIds":{"items":{"type":"string"},"type":"array","title":"Evalresultids"}},"type":"object","required":["evalResultIds"],"title":"ListEvalResultsResponse"},"ListEvalSetsResponse":{"properties":{"evalSetIds":{"items":{"type":"string"},"type":"array","title":"Evalsetids"}},"type":"object","required":["evalSetIds"],"title":"ListEvalSetsResponse"},"ListMetricsInfoResponse":{"properties":{"metricsInfo":{"items":{"$ref":"#/components/schemas/MetricInfo"},"type":"array","title":"Metricsinfo"}},"type":"object","required":["metricsInfo"],"title":"ListMetricsInfoResponse"},"LiveServerSessionResumptionUpdate":{"properties":{"newHandle":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Newhandle","description":"New handle that represents state that can be resumed. Empty if `resumable`=false."},"resumable":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Resumable","description":"True if session can be resumed at this point. It might be not possible to resume session at some points. In that case we send update empty new_handle and resumable=false. Example of such case could be model executing function calls or just generating. Resuming session (using previous session token) in such state will result in some data loss."},"lastConsumedClientMessageIndex":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lastconsumedclientmessageindex","description":"Index of last message sent by client that is included in state represented by this SessionResumptionToken. Only sent when `SessionResumptionConfig.transparent` is set.\n\nPresence of this index allows users to transparently reconnect and avoid issue of losing some part of realtime audio input/video. If client wishes to temporarily disconnect (for example as result of receiving GoAway) they can do it without losing state by buffering messages sent since last `SessionResmumptionTokenUpdate`. This field will enable them to limit buffering (avoid keeping all requests in RAM).\n\nNote: This should not be used for when resuming a session at some time later -- in those cases partial audio and video frames arelikely not needed."}},"additionalProperties":false,"type":"object","title":"LiveServerSessionResumptionUpdate","description":"Update of the session resumption state.\n\nOnly sent if `session_resumption` was set in the connection config."},"LogprobsResult-Input":{"properties":{"chosenCandidates":{"anyOf":[{"items":{"$ref":"#/components/schemas/LogprobsResultCandidate"},"type":"array"},{"type":"null"}],"title":"Chosencandidates","description":"Length = total number of decoding steps. The chosen candidates may or may not be in top_candidates."},"topCandidates":{"anyOf":[{"items":{"$ref":"#/components/schemas/LogprobsResultTopCandidates"},"type":"array"},{"type":"null"}],"title":"Topcandidates","description":"Length = total number of decoding steps."}},"additionalProperties":false,"type":"object","title":"LogprobsResult","description":"Logprobs Result"},"LogprobsResult-Output":{"properties":{"chosenCandidates":{"anyOf":[{"items":{"$ref":"#/components/schemas/LogprobsResultCandidate"},"type":"array"},{"type":"null"}],"title":"Chosencandidates","description":"Length = total number of decoding steps. The chosen candidates may or may not be in top_candidates."},"topCandidates":{"anyOf":[{"items":{"$ref":"#/components/schemas/LogprobsResultTopCandidates"},"type":"array"},{"type":"null"}],"title":"Topcandidates","description":"Length = total number of decoding steps."}},"additionalProperties":false,"type":"object","title":"LogprobsResult","description":"Logprobs Result"},"LogprobsResultCandidate":{"properties":{"logProbability":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Logprobability","description":"The candidate's log probability."},"token":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token","description":"The candidate's token string value."},"tokenId":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tokenid","description":"The candidate's token id value."}},"additionalProperties":false,"type":"object","title":"LogprobsResultCandidate","description":"Candidate for the logprobs token and score."},"LogprobsResultTopCandidates":{"properties":{"candidates":{"anyOf":[{"items":{"$ref":"#/components/schemas/LogprobsResultCandidate"},"type":"array"},{"type":"null"}],"title":"Candidates","description":"Sorted by log probability in descending order."}},"additionalProperties":false,"type":"object","title":"LogprobsResultTopCandidates","description":"Candidates with top log probabilities at each decoding step."},"MediaModality":{"type":"string","enum":["MODALITY_UNSPECIFIED","TEXT","IMAGE","VIDEO","AUDIO","DOCUMENT"],"title":"MediaModality","description":"Server content modalities."},"MediaResolution":{"type":"string","enum":["MEDIA_RESOLUTION_UNSPECIFIED","MEDIA_RESOLUTION_LOW","MEDIA_RESOLUTION_MEDIUM","MEDIA_RESOLUTION_HIGH"],"title":"MediaResolution","description":"The media resolution to use."},"MessageDict":{"properties":{"message_id":{"type":"string","title":"Message Id","description":"메시지 고유 ID (예: msg_abc123)"},"sender":{"type":"string","title":"Sender","description":"발신자: 'user' 또는 'character'"},"content":{"type":"string","title":"Content","description":"메시지 내용"},"created_at":{"type":"string","title":"Created At","description":"메시지 생성 시각 (ISO 8601 형식)"},"emotion":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Emotion","description":"캐릭터 감정 (내부: full, API: base)"}},"type":"object","required":["message_id","sender","content","created_at"],"title":"Message","description":"대화 메시지 모델\n\n사용자 또는 캐릭터의 개별 메시지를 나타냅니다.\nemotion 필드는 full emotion (e.g., \"Surprise_Positive\")을 저장하고,\nAPI 응답 시 model_dump()에서 base emotion (e.g., \"Surprise\")으로 변환됩니다.","example":{"content":"좋아! 너 덕분에 행복해 ㅎㅎ","created_at":"2025-10-27T10:30:01Z","emotion":"joy","message_id":"msg_abc123","sender":"character"}},"MetricInfo":{"properties":{"metricName":{"type":"string","title":"Metricname","description":"The name of the metric."},"description":{"type":"string","title":"Description","description":"A 2 to 3 line description of the metric."},"metricValueInfo":{"$ref":"#/components/schemas/MetricValueInfo","description":"Information on the nature of values supported by the metric."}},"additionalProperties":false,"type":"object","required":["metricName","metricValueInfo"],"title":"MetricInfo","description":"Information about the metric that are used for Evals."},"MetricValueInfo":{"properties":{"interval":{"anyOf":[{"$ref":"#/components/schemas/google__adk__evaluation__eval_metrics__Interval"},{"type":"null"}],"description":"The values represented by the metric are of type interval."}},"additionalProperties":false,"type":"object","title":"MetricValueInfo","description":"Information about the type of metric value."},"ModalityTokenCount":{"properties":{"modality":{"anyOf":[{"$ref":"#/components/schemas/MediaModality"},{"type":"null"}],"description":"The modality associated with this token count."},"tokenCount":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tokencount","description":"Number of tokens."}},"additionalProperties":false,"type":"object","title":"ModalityTokenCount","description":"Represents token counting info for a single modality."},"ModelSelectionConfig":{"properties":{"featureSelectionPreference":{"anyOf":[{"$ref":"#/components/schemas/FeatureSelectionPreference"},{"type":"null"}],"description":"Options for feature selection preference."}},"additionalProperties":false,"type":"object","title":"ModelSelectionConfig","description":"Config for model selection."},"MultiSpeakerVoiceConfig-Input":{"properties":{"speakerVoiceConfigs":{"anyOf":[{"items":{"$ref":"#/components/schemas/SpeakerVoiceConfig-Input"},"type":"array"},{"type":"null"}],"title":"Speakervoiceconfigs","description":"The configuration for the speaker to use."}},"additionalProperties":false,"type":"object","title":"MultiSpeakerVoiceConfig","description":"The configuration for the multi-speaker setup."},"MultiSpeakerVoiceConfig-Output":{"properties":{"speakerVoiceConfigs":{"anyOf":[{"items":{"$ref":"#/components/schemas/SpeakerVoiceConfig-Output"},"type":"array"},{"type":"null"}],"title":"Speakervoiceconfigs","description":"The configuration for the speaker to use."}},"additionalProperties":false,"type":"object","title":"MultiSpeakerVoiceConfig","description":"The configuration for the multi-speaker setup."},"OAuth2-Input":{"properties":{"type":{"$ref":"#/components/schemas/SecuritySchemeType","default":"oauth2"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"flows":{"$ref":"#/components/schemas/OAuthFlows"}},"additionalProperties":true,"type":"object","required":["flows"],"title":"OAuth2"},"OAuth2-Output":{"properties":{"type":{"$ref":"#/components/schemas/SecuritySchemeType","default":"oauth2"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"flows":{"$ref":"#/components/schemas/OAuthFlows"}},"additionalProperties":true,"type":"object","required":["flows"],"title":"OAuth2"},"OAuth2Auth":{"properties":{"clientId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clientid"},"clientSecret":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Clientsecret"},"authUri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authuri"},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State"},"redirectUri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Redirecturi"},"authResponseUri":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authresponseuri"},"authCode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authcode"},"accessToken":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Accesstoken"},"refreshToken":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refreshtoken"},"expiresAt":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expiresat"},"expiresIn":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Expiresin"},"audience":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Audience"}},"additionalProperties":true,"type":"object","title":"OAuth2Auth","description":"Represents credential value and its metadata for a OAuth2 credential."},"OAuthFlowAuthorizationCode":{"properties":{"refreshUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refreshurl"},"scopes":{"additionalProperties":{"type":"string"},"type":"object","title":"Scopes","default":{}},"authorizationUrl":{"type":"string","title":"Authorizationurl"},"tokenUrl":{"type":"string","title":"Tokenurl"}},"additionalProperties":true,"type":"object","required":["authorizationUrl","tokenUrl"],"title":"OAuthFlowAuthorizationCode"},"OAuthFlowClientCredentials":{"properties":{"refreshUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refreshurl"},"scopes":{"additionalProperties":{"type":"string"},"type":"object","title":"Scopes","default":{}},"tokenUrl":{"type":"string","title":"Tokenurl"}},"additionalProperties":true,"type":"object","required":["tokenUrl"],"title":"OAuthFlowClientCredentials"},"OAuthFlowImplicit":{"properties":{"refreshUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refreshurl"},"scopes":{"additionalProperties":{"type":"string"},"type":"object","title":"Scopes","default":{}},"authorizationUrl":{"type":"string","title":"Authorizationurl"}},"additionalProperties":true,"type":"object","required":["authorizationUrl"],"title":"OAuthFlowImplicit"},"OAuthFlowPassword":{"properties":{"refreshUrl":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Refreshurl"},"scopes":{"additionalProperties":{"type":"string"},"type":"object","title":"Scopes","default":{}},"tokenUrl":{"type":"string","title":"Tokenurl"}},"additionalProperties":true,"type":"object","required":["tokenUrl"],"title":"OAuthFlowPassword"},"OAuthFlows":{"properties":{"implicit":{"anyOf":[{"$ref":"#/components/schemas/OAuthFlowImplicit"},{"type":"null"}]},"password":{"anyOf":[{"$ref":"#/components/schemas/OAuthFlowPassword"},{"type":"null"}]},"clientCredentials":{"anyOf":[{"$ref":"#/components/schemas/OAuthFlowClientCredentials"},{"type":"null"}]},"authorizationCode":{"anyOf":[{"$ref":"#/components/schemas/OAuthFlowAuthorizationCode"},{"type":"null"}]}},"additionalProperties":true,"type":"object","title":"OAuthFlows"},"OpenIdConnect":{"properties":{"type":{"$ref":"#/components/schemas/SecuritySchemeType","default":"openIdConnect"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"openIdConnectUrl":{"type":"string","title":"Openidconnecturl"}},"additionalProperties":true,"type":"object","required":["openIdConnectUrl"],"title":"OpenIdConnect"},"OpenIdConnectWithConfig":{"properties":{"type":{"$ref":"#/components/schemas/SecuritySchemeType","default":"openIdConnect"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"authorization_endpoint":{"type":"string","title":"Authorization Endpoint"},"token_endpoint":{"type":"string","title":"Token Endpoint"},"userinfo_endpoint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Userinfo Endpoint"},"revocation_endpoint":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Revocation Endpoint"},"token_endpoint_auth_methods_supported":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Token Endpoint Auth Methods Supported"},"grant_types_supported":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Grant Types Supported"},"scopes":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Scopes"}},"additionalProperties":true,"type":"object","required":["authorization_endpoint","token_endpoint"],"title":"OpenIdConnectWithConfig"},"Outcome":{"type":"string","enum":["OUTCOME_UNSPECIFIED","OUTCOME_OK","OUTCOME_FAILED","OUTCOME_DEADLINE_EXCEEDED"],"title":"Outcome","description":"Required. Outcome of the code execution."},"Part-Input":{"properties":{"videoMetadata":{"anyOf":[{"$ref":"#/components/schemas/VideoMetadata"},{"type":"null"}],"description":"Metadata for a given video."},"thought":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Thought","description":"Indicates if the part is thought from the model."},"inlineData":{"anyOf":[{"$ref":"#/components/schemas/Blob"},{"type":"null"}],"description":"Optional. Inlined bytes data."},"fileData":{"anyOf":[{"$ref":"#/components/schemas/FileData"},{"type":"null"}],"description":"Optional. URI based data."},"thoughtSignature":{"anyOf":[{"type":"string","format":"base64url"},{"type":"null"}],"title":"Thoughtsignature","description":"An opaque signature for the thought so it can be reused in subsequent requests."},"functionCall":{"anyOf":[{"$ref":"#/components/schemas/FunctionCall"},{"type":"null"}],"description":"A predicted [FunctionCall] returned from the model that contains a string\n      representing the [FunctionDeclaration.name] and a structured JSON object\n      containing the parameters and their values."},"codeExecutionResult":{"anyOf":[{"$ref":"#/components/schemas/CodeExecutionResult"},{"type":"null"}],"description":"Optional. Result of executing the [ExecutableCode]."},"executableCode":{"anyOf":[{"$ref":"#/components/schemas/ExecutableCode"},{"type":"null"}],"description":"Optional. Code generated by the model that is meant to be executed."},"functionResponse":{"anyOf":[{"$ref":"#/components/schemas/FunctionResponse-Input"},{"type":"null"}],"description":"Optional. The result output of a [FunctionCall] that contains a string representing the [FunctionDeclaration.name] and a structured JSON object containing any output from the function call. It is used as context to the model."},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text","description":"Optional. Text part (can be code)."}},"additionalProperties":false,"type":"object","title":"Part","description":"A datatype containing media content.\n\nExactly one field within a Part should be set, representing the specific type\nof content being conveyed. Using multiple fields within the same `Part`\ninstance is considered invalid."},"Part-Output":{"properties":{"videoMetadata":{"anyOf":[{"$ref":"#/components/schemas/VideoMetadata"},{"type":"null"}],"description":"Metadata for a given video."},"thought":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Thought","description":"Indicates if the part is thought from the model."},"inlineData":{"anyOf":[{"$ref":"#/components/schemas/Blob"},{"type":"null"}],"description":"Optional. Inlined bytes data."},"fileData":{"anyOf":[{"$ref":"#/components/schemas/FileData"},{"type":"null"}],"description":"Optional. URI based data."},"thoughtSignature":{"anyOf":[{"type":"string","format":"base64url"},{"type":"null"}],"title":"Thoughtsignature","description":"An opaque signature for the thought so it can be reused in subsequent requests."},"functionCall":{"anyOf":[{"$ref":"#/components/schemas/FunctionCall"},{"type":"null"}],"description":"A predicted [FunctionCall] returned from the model that contains a string\n      representing the [FunctionDeclaration.name] and a structured JSON object\n      containing the parameters and their values."},"codeExecutionResult":{"anyOf":[{"$ref":"#/components/schemas/CodeExecutionResult"},{"type":"null"}],"description":"Optional. Result of executing the [ExecutableCode]."},"executableCode":{"anyOf":[{"$ref":"#/components/schemas/ExecutableCode"},{"type":"null"}],"description":"Optional. Code generated by the model that is meant to be executed."},"functionResponse":{"anyOf":[{"$ref":"#/components/schemas/FunctionResponse-Output"},{"type":"null"}],"description":"Optional. The result output of a [FunctionCall] that contains a string representing the [FunctionDeclaration.name] and a structured JSON object containing any output from the function call. It is used as context to the model."},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text","description":"Optional. Text part (can be code)."}},"additionalProperties":false,"type":"object","title":"Part","description":"A datatype containing media content.\n\nExactly one field within a Part should be set, representing the specific type\nof content being conveyed. Using multiple fields within the same `Part`\ninstance is considered invalid."},"PrebuiltVoiceConfig":{"properties":{"voiceName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Voicename","description":"The name of the prebuilt voice to use."}},"additionalProperties":false,"type":"object","title":"PrebuiltVoiceConfig","description":"The configuration for the prebuilt speaker to use."},"RagChunk":{"properties":{"pageSpan":{"anyOf":[{"$ref":"#/components/schemas/RagChunkPageSpan"},{"type":"null"}],"description":"If populated, represents where the chunk starts and ends in the document."},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text","description":"The content of the chunk."}},"additionalProperties":false,"type":"object","title":"RagChunk","description":"A RagChunk includes the content of a chunk of a RagFile, and associated metadata."},"RagChunkPageSpan":{"properties":{"firstPage":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Firstpage","description":"Page where chunk starts in the document. Inclusive. 1-indexed."},"lastPage":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Lastpage","description":"Page where chunk ends in the document. Inclusive. 1-indexed."}},"additionalProperties":false,"type":"object","title":"RagChunkPageSpan","description":"Represents where the chunk starts and ends in the document."},"RagRetrievalConfig-Input":{"properties":{"filter":{"anyOf":[{"$ref":"#/components/schemas/RagRetrievalConfigFilter"},{"type":"null"}],"description":"Optional. Config for filters."},"hybridSearch":{"anyOf":[{"$ref":"#/components/schemas/RagRetrievalConfigHybridSearch"},{"type":"null"}],"description":"Optional. Config for Hybrid Search."},"ranking":{"anyOf":[{"$ref":"#/components/schemas/RagRetrievalConfigRanking"},{"type":"null"}],"description":"Optional. Config for ranking and reranking."},"topK":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Topk","description":"Optional. The number of contexts to retrieve."}},"additionalProperties":false,"type":"object","title":"RagRetrievalConfig","description":"Specifies the context retrieval config."},"RagRetrievalConfig-Output":{"properties":{"filter":{"anyOf":[{"$ref":"#/components/schemas/RagRetrievalConfigFilter"},{"type":"null"}],"description":"Optional. Config for filters."},"hybridSearch":{"anyOf":[{"$ref":"#/components/schemas/RagRetrievalConfigHybridSearch"},{"type":"null"}],"description":"Optional. Config for Hybrid Search."},"ranking":{"anyOf":[{"$ref":"#/components/schemas/RagRetrievalConfigRanking"},{"type":"null"}],"description":"Optional. Config for ranking and reranking."},"topK":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Topk","description":"Optional. The number of contexts to retrieve."}},"additionalProperties":false,"type":"object","title":"RagRetrievalConfig","description":"Specifies the context retrieval config."},"RagRetrievalConfigFilter":{"properties":{"metadataFilter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Metadatafilter","description":"Optional. String for metadata filtering."},"vectorDistanceThreshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Vectordistancethreshold","description":"Optional. Only returns contexts with vector distance smaller than the threshold."},"vectorSimilarityThreshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Vectorsimilaritythreshold","description":"Optional. Only returns contexts with vector similarity larger than the threshold."}},"additionalProperties":false,"type":"object","title":"RagRetrievalConfigFilter","description":"Config for filters."},"RagRetrievalConfigHybridSearch":{"properties":{"alpha":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Alpha","description":"Optional. Alpha value controls the weight between dense and sparse vector search results. The range is [0, 1], while 0 means sparse vector search only and 1 means dense vector search only. The default value is 0.5 which balances sparse and dense vector search equally."}},"additionalProperties":false,"type":"object","title":"RagRetrievalConfigHybridSearch","description":"Config for Hybrid Search."},"RagRetrievalConfigRanking":{"properties":{"llmRanker":{"anyOf":[{"$ref":"#/components/schemas/RagRetrievalConfigRankingLlmRanker"},{"type":"null"}],"description":"Optional. Config for LlmRanker."},"rankService":{"anyOf":[{"$ref":"#/components/schemas/RagRetrievalConfigRankingRankService"},{"type":"null"}],"description":"Optional. Config for Rank Service."}},"additionalProperties":false,"type":"object","title":"RagRetrievalConfigRanking","description":"Config for ranking and reranking."},"RagRetrievalConfigRankingLlmRanker":{"properties":{"modelName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Modelname","description":"Optional. The model name used for ranking. See [Supported models](https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/inference#supported-models)."}},"additionalProperties":false,"type":"object","title":"RagRetrievalConfigRankingLlmRanker","description":"Config for LlmRanker."},"RagRetrievalConfigRankingRankService":{"properties":{"modelName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Modelname","description":"Optional. The model name of the rank service. Format: `semantic-ranker-512@latest`"}},"additionalProperties":false,"type":"object","title":"RagRetrievalConfigRankingRankService","description":"Config for Rank Service."},"ResponseMetadata":{"properties":{"daily_usage":{"anyOf":[{"$ref":"#/components/schemas/DailyUsageInfo"},{"type":"null"}],"description":"일일 사용량 정보 (warning_level이 있을 때만 포함)"},"unlocked_backstories":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Unlocked Backstories","description":"해금된 백스토리 ID 목록"},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","description":"사용된 LLM 모델명"}},"type":"object","title":"ResponseMetadata","description":"응답 메타데이터 모델\n\n응답에 포함되는 부가 정보를 담습니다.","example":{"daily_usage":{"usage_percent":85.5,"warning_level":"warning"},"model":"gemini-2.5-flash-preview-04-17","unlocked_backstories":["backstory_first_meeting","backstory_childhood"]}},"Retrieval-Input":{"properties":{"disableAttribution":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Disableattribution","description":"Optional. Deprecated. This option is no longer supported."},"externalApi":{"anyOf":[{"$ref":"#/components/schemas/ExternalApi-Input"},{"type":"null"}],"description":"Use data source powered by external API for grounding."},"vertexAiSearch":{"anyOf":[{"$ref":"#/components/schemas/VertexAISearch"},{"type":"null"}],"description":"Set to use data source powered by Vertex AI Search."},"vertexRagStore":{"anyOf":[{"$ref":"#/components/schemas/VertexRagStore-Input"},{"type":"null"}],"description":"Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService."}},"additionalProperties":false,"type":"object","title":"Retrieval","description":"Defines a retrieval tool that model can call to access external knowledge."},"Retrieval-Output":{"properties":{"disableAttribution":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Disableattribution","description":"Optional. Deprecated. This option is no longer supported."},"externalApi":{"anyOf":[{"$ref":"#/components/schemas/ExternalApi-Output"},{"type":"null"}],"description":"Use data source powered by external API for grounding."},"vertexAiSearch":{"anyOf":[{"$ref":"#/components/schemas/VertexAISearch"},{"type":"null"}],"description":"Set to use data source powered by Vertex AI Search."},"vertexRagStore":{"anyOf":[{"$ref":"#/components/schemas/VertexRagStore-Output"},{"type":"null"}],"description":"Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService."}},"additionalProperties":false,"type":"object","title":"Retrieval","description":"Defines a retrieval tool that model can call to access external knowledge."},"RetrievalConfig":{"properties":{"latLng":{"anyOf":[{"$ref":"#/components/schemas/LatLng"},{"type":"null"}],"description":"Optional. The location of the user."},"languageCode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Languagecode","description":"The language code of the user."}},"additionalProperties":false,"type":"object","title":"RetrievalConfig","description":"Retrieval config."},"RetrievalMetadata":{"properties":{"googleSearchDynamicRetrievalScore":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Googlesearchdynamicretrievalscore","description":"Optional. Score indicating how likely information from Google Search could help answer the prompt. The score is in the range `[0, 1]`, where 0 is the least likely and 1 is the most likely. This score is only populated when Google Search grounding and dynamic retrieval is enabled. It will be compared to the threshold to determine whether to trigger Google Search."}},"additionalProperties":false,"type":"object","title":"RetrievalMetadata","description":"Metadata related to retrieval in the grounding flow."},"Rubric":{"properties":{"rubricId":{"type":"string","title":"Rubricid","description":"Unique identifier for the rubric."},"rubricContent":{"$ref":"#/components/schemas/RubricContent","description":"The actual testable criterion for the rubric."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"A description of the rubric that provide details on how the results of the rubric assessment be interpreted."},"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type","description":"Optional. A type designator for the rubric, which can\n      inform how it's evaluated or interpreted by systems or users.\n\n      It's recommended to use consistent, well-defined, upper snake_case\n      strings.\n\n      Examples: \"TOOL_USE_QUALITY\", \"FINAL_RESPONSE_QUALITY\",\n      \"INSTRUCTION_ADHERENCE\"."}},"additionalProperties":false,"type":"object","required":["rubricId","rubricContent"],"title":"Rubric","description":"This class represents a single Rubric."},"RubricContent":{"properties":{"textProperty":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Textproperty","description":"The property being evaluated. Example: \"The agent's response is grammatically correct.\" "}},"additionalProperties":false,"type":"object","required":["textProperty"],"title":"RubricContent","description":"The content of a rubric."},"RubricScore":{"properties":{"rubricId":{"type":"string","title":"Rubricid","description":"The id of the rubric that was assessed."},"rationale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rationale","description":"Reasoning/rationale for the score."},"score":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Score","description":"Score obtained after assessing the rubric. Optional, as assessment might not have happened."}},"additionalProperties":false,"type":"object","required":["rubricId"],"title":"RubricScore","description":"The score obtained after applying the rubric to the Agent's response."},"RunAgentRequest":{"properties":{"app_name":{"type":"string","title":"App Name","description":"에이전트/캐릭터 이름 (고정값: 'app')"},"user_id":{"type":"string","title":"User Id","description":"사용자 고유 ID (Firebase UID)"},"session_id":{"type":"string","title":"Session Id","description":"세션 ID (agent_session_id 사용)"},"new_message":{"additionalProperties":true,"type":"object","title":"New Message","description":"사용자 메시지 (Google GenAI Content 형식)"},"streaming":{"type":"boolean","title":"Streaming","description":"스트리밍 여부 (ADK 호환용, /run_sse에서는 무시됨)","default":false},"state_delta":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"State Delta","description":"세션 상태 변경사항 (conversation_id 필수)"},"message_type":{"type":"string","title":"Message Type","description":"메시지 타입 (예: 'chat', 'gift', 'system')","default":"chat"},"ab_test_models":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Ab Test Models","description":"A/B 테스트용 모델 배열 (예: ['thinking/gemini-2.5-flash-lite', 'gemini-2.5-pro']). dev 환경에서만 동작."}},"type":"object","required":["app_name","user_id","session_id","new_message"],"title":"RunAgentRequest","description":"대화 실행 요청 모델\n\nADK 형식과 호환되는 /run 엔드포인트 요청 형식입니다.","example":{"app_name":"app","message_type":"chat","new_message":{"parts":[{"text":"오늘 기분 어때?"}],"role":"user"},"session_id":"agent_session_id","state_delta":{"conversation_id":"conv_xyz789"},"user_id":"firebase_user_123"}},"RunEvalRequest":{"properties":{"evalIds":{"items":{"type":"string"},"type":"array","title":"Evalids","description":"This field is deprecated, use eval_case_ids instead.","deprecated":true},"evalCaseIds":{"items":{"type":"string"},"type":"array","title":"Evalcaseids","description":"List of eval case ids to evaluate. if empty, then all eval cases in the eval set are run."},"evalMetrics":{"items":{"$ref":"#/components/schemas/EvalMetric-Input"},"type":"array","title":"Evalmetrics"}},"type":"object","required":["evalMetrics"],"title":"RunEvalRequest"},"RunEvalResponse":{"properties":{"runEvalResults":{"items":{"$ref":"#/components/schemas/RunEvalResult"},"type":"array","title":"Runevalresults"}},"type":"object","required":["runEvalResults"],"title":"RunEvalResponse"},"RunEvalResult":{"properties":{"evalSetFile":{"type":"string","title":"Evalsetfile"},"evalSetId":{"type":"string","title":"Evalsetid"},"evalId":{"type":"string","title":"Evalid"},"finalEvalStatus":{"$ref":"#/components/schemas/EvalStatus"},"evalMetricResults":{"items":{"prefixItems":[{"$ref":"#/components/schemas/EvalMetric-Output"},{"$ref":"#/components/schemas/EvalMetricResult"}],"type":"array","maxItems":2,"minItems":2},"type":"array","title":"Evalmetricresults","description":"This field is deprecated, use overall_eval_metric_results instead.","default":[],"deprecated":true},"overallEvalMetricResults":{"items":{"$ref":"#/components/schemas/EvalMetricResult"},"type":"array","title":"Overallevalmetricresults"},"evalMetricResultPerInvocation":{"items":{"$ref":"#/components/schemas/EvalMetricResultPerInvocation"},"type":"array","title":"Evalmetricresultperinvocation"},"userId":{"type":"string","title":"Userid"},"sessionId":{"type":"string","title":"Sessionid"}},"type":"object","required":["evalSetFile","evalSetId","evalId","finalEvalStatus","overallEvalMetricResults","evalMetricResultPerInvocation","userId","sessionId"],"title":"RunEvalResult"},"SafetySetting":{"properties":{"method":{"anyOf":[{"$ref":"#/components/schemas/HarmBlockMethod"},{"type":"null"}],"description":"Determines if the harm block method uses probability or probability\n      and severity scores."},"category":{"anyOf":[{"$ref":"#/components/schemas/HarmCategory"},{"type":"null"}],"description":"Required. Harm category."},"threshold":{"anyOf":[{"$ref":"#/components/schemas/HarmBlockThreshold"},{"type":"null"}],"description":"Required. The harm block threshold."}},"additionalProperties":false,"type":"object","title":"SafetySetting","description":"Safety settings."},"Schema-Input":{"properties":{"additionalProperties":{"anyOf":[{},{"type":"null"}],"title":"Additionalproperties","description":"Optional. Can either be a boolean or an object; controls the presence of additional properties."},"defs":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/Schema-Input"},"type":"object"},{"type":"null"}],"title":"Defs","description":"Optional. A map of definitions for use by `ref` Only allowed at the root of the schema."},"ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ref","description":"Optional. Allows indirect references between schema nodes. The value should be a valid reference to a child of the root `defs`. For example, the following schema defines a reference to a schema node named \"Pet\": type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the \"pet\" property is a reference to the schema node named \"Pet\". See details in https://json-schema.org/understanding-json-schema/structuring"},"anyOf":{"anyOf":[{"items":{"$ref":"#/components/schemas/Schema-Input"},"type":"array"},{"type":"null"}],"title":"Anyof","description":"Optional. The value should be validated against any (one or more) of the subschemas in the list."},"default":{"anyOf":[{},{"type":"null"}],"title":"Default","description":"Optional. Default value of the data."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Optional. The description of the data."},"enum":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Enum","description":"Optional. Possible values of the element of primitive type with enum format. Examples: 1. We can define direction as : {type:STRING, format:enum, enum:[\"EAST\", NORTH\", \"SOUTH\", \"WEST\"]} 2. We can define apartment number as : {type:INTEGER, format:enum, enum:[\"101\", \"201\", \"301\"]}"},"example":{"anyOf":[{},{"type":"null"}],"title":"Example","description":"Optional. Example of the object. Will only populated when the object is the root."},"format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Format","description":"Optional. The format of the data. Supported formats: for NUMBER type: \"float\", \"double\" for INTEGER type: \"int32\", \"int64\" for STRING type: \"email\", \"byte\", etc"},"items":{"anyOf":[{"$ref":"#/components/schemas/Schema-Input"},{"type":"null"}],"description":"Optional. SCHEMA FIELDS FOR TYPE ARRAY Schema of the elements of Type.ARRAY."},"maxItems":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Maxitems","description":"Optional. Maximum number of the elements for Type.ARRAY."},"maxLength":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Maxlength","description":"Optional. Maximum length of the Type.STRING"},"maxProperties":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Maxproperties","description":"Optional. Maximum number of the properties for Type.OBJECT."},"maximum":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Maximum","description":"Optional. Maximum value of the Type.INTEGER and Type.NUMBER"},"minItems":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Minitems","description":"Optional. Minimum number of the elements for Type.ARRAY."},"minLength":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Minlength","description":"Optional. SCHEMA FIELDS FOR TYPE STRING Minimum length of the Type.STRING"},"minProperties":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Minproperties","description":"Optional. Minimum number of the properties for Type.OBJECT."},"minimum":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Minimum","description":"Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER Minimum value of the Type.INTEGER and Type.NUMBER"},"nullable":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Nullable","description":"Optional. Indicates if the value may be null."},"pattern":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pattern","description":"Optional. Pattern of the Type.STRING to restrict a string to a regular expression."},"properties":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/Schema-Input"},"type":"object"},{"type":"null"}],"title":"Properties","description":"Optional. SCHEMA FIELDS FOR TYPE OBJECT Properties of Type.OBJECT."},"propertyOrdering":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Propertyordering","description":"Optional. The order of the properties. Not a standard field in open api spec. Only used to support the order of the properties."},"required":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Required","description":"Optional. Required properties of Type.OBJECT."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"Optional. The title of the Schema."},"type":{"anyOf":[{"$ref":"#/components/schemas/Type"},{"type":"null"}],"description":"Optional. The type of the data."}},"additionalProperties":false,"type":"object","title":"Schema","description":"Schema is used to define the format of input/output data.\n\nRepresents a select subset of an [OpenAPI 3.0 schema\nobject](https://spec.openapis.org/oas/v3.0.3#schema-object). More fields may\nbe added in the future as needed."},"Schema-Output":{"properties":{"additionalProperties":{"anyOf":[{},{"type":"null"}],"title":"Additionalproperties","description":"Optional. Can either be a boolean or an object; controls the presence of additional properties."},"defs":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/Schema-Output"},"type":"object"},{"type":"null"}],"title":"Defs","description":"Optional. A map of definitions for use by `ref` Only allowed at the root of the schema."},"ref":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ref","description":"Optional. Allows indirect references between schema nodes. The value should be a valid reference to a child of the root `defs`. For example, the following schema defines a reference to a schema node named \"Pet\": type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties: name: type: string The value of the \"pet\" property is a reference to the schema node named \"Pet\". See details in https://json-schema.org/understanding-json-schema/structuring"},"anyOf":{"anyOf":[{"items":{"$ref":"#/components/schemas/Schema-Output"},"type":"array"},{"type":"null"}],"title":"Anyof","description":"Optional. The value should be validated against any (one or more) of the subschemas in the list."},"default":{"anyOf":[{},{"type":"null"}],"title":"Default","description":"Optional. Default value of the data."},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description","description":"Optional. The description of the data."},"enum":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Enum","description":"Optional. Possible values of the element of primitive type with enum format. Examples: 1. We can define direction as : {type:STRING, format:enum, enum:[\"EAST\", NORTH\", \"SOUTH\", \"WEST\"]} 2. We can define apartment number as : {type:INTEGER, format:enum, enum:[\"101\", \"201\", \"301\"]}"},"example":{"anyOf":[{},{"type":"null"}],"title":"Example","description":"Optional. Example of the object. Will only populated when the object is the root."},"format":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Format","description":"Optional. The format of the data. Supported formats: for NUMBER type: \"float\", \"double\" for INTEGER type: \"int32\", \"int64\" for STRING type: \"email\", \"byte\", etc"},"items":{"anyOf":[{"$ref":"#/components/schemas/Schema-Output"},{"type":"null"}],"description":"Optional. SCHEMA FIELDS FOR TYPE ARRAY Schema of the elements of Type.ARRAY."},"maxItems":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Maxitems","description":"Optional. Maximum number of the elements for Type.ARRAY."},"maxLength":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Maxlength","description":"Optional. Maximum length of the Type.STRING"},"maxProperties":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Maxproperties","description":"Optional. Maximum number of the properties for Type.OBJECT."},"maximum":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Maximum","description":"Optional. Maximum value of the Type.INTEGER and Type.NUMBER"},"minItems":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Minitems","description":"Optional. Minimum number of the elements for Type.ARRAY."},"minLength":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Minlength","description":"Optional. SCHEMA FIELDS FOR TYPE STRING Minimum length of the Type.STRING"},"minProperties":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Minproperties","description":"Optional. Minimum number of the properties for Type.OBJECT."},"minimum":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Minimum","description":"Optional. SCHEMA FIELDS FOR TYPE INTEGER and NUMBER Minimum value of the Type.INTEGER and Type.NUMBER"},"nullable":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Nullable","description":"Optional. Indicates if the value may be null."},"pattern":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pattern","description":"Optional. Pattern of the Type.STRING to restrict a string to a regular expression."},"properties":{"anyOf":[{"additionalProperties":{"$ref":"#/components/schemas/Schema-Output"},"type":"object"},{"type":"null"}],"title":"Properties","description":"Optional. SCHEMA FIELDS FOR TYPE OBJECT Properties of Type.OBJECT."},"propertyOrdering":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Propertyordering","description":"Optional. The order of the properties. Not a standard field in open api spec. Only used to support the order of the properties."},"required":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Required","description":"Optional. Required properties of Type.OBJECT."},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"Optional. The title of the Schema."},"type":{"anyOf":[{"$ref":"#/components/schemas/Type"},{"type":"null"}],"description":"Optional. The type of the data."}},"additionalProperties":false,"type":"object","title":"Schema","description":"Schema is used to define the format of input/output data.\n\nRepresents a select subset of an [OpenAPI 3.0 schema\nobject](https://spec.openapis.org/oas/v3.0.3#schema-object). More fields may\nbe added in the future as needed."},"SearchEntryPoint":{"properties":{"renderedContent":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Renderedcontent","description":"Optional. Web content snippet that can be embedded in a web page or an app webview."},"sdkBlob":{"anyOf":[{"type":"string","format":"base64url"},{"type":"null"}],"title":"Sdkblob","description":"Optional. Base64 encoded JSON representing array of tuple."}},"additionalProperties":false,"type":"object","title":"SearchEntryPoint","description":"Google search entry point."},"SecuritySchemeType":{"type":"string","enum":["apiKey","http","oauth2","openIdConnect"],"title":"SecuritySchemeType"},"Segment":{"properties":{"endIndex":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Endindex","description":"Output only. End index in the given Part, measured in bytes. Offset from the start of the Part, exclusive, starting at zero."},"partIndex":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Partindex","description":"Output only. The index of a Part object within its parent Content object."},"startIndex":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Startindex","description":"Output only. Start index in the given Part, measured in bytes. Offset from the start of the Part, inclusive, starting at zero."},"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text","description":"Output only. The text corresponding to the segment from the response."}},"additionalProperties":false,"type":"object","title":"Segment","description":"Segment of the content."},"SendMessageResponse":{"properties":{"conversation_id":{"type":"string","title":"Conversation Id","description":"대화 ID"},"messages":{"items":{"$ref":"#/components/schemas/MessageDict"},"type":"array","title":"Messages","description":"메시지 배열 (사용자 메시지 + 캐릭터 응답)"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code","description":"에러 코드 (예: GUARDRAIL_SEXUAL_BLOCK, DAILY_LIMIT_EXCEEDED, BALANCE_INSUFFICIENT)"},"trace_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trace Id","description":"Opik trace ID. Kafka publish 를 스킵하는 동기 응답 경로(proactive_recovery/reconcile 선톡)에서 kaidol-api 가 user_messages.message_metadata 에 저장해 dev Prompt Viewer 연결에 사용. 캡처 실패 시 null"},"ab_test_results":{"anyOf":[{"items":{"$ref":"#/components/schemas/ABTestResultModel"},"type":"array"},{"type":"null"}],"title":"Ab Test Results","description":"A/B 테스트 결과 배열 (dev 환경에서 ab_test_models 파라미터 사용 시)"},"metadata":{"anyOf":[{"$ref":"#/components/schemas/ResponseMetadata"},{"type":"null"}],"description":"응답 메타데이터 (일일 사용량 경고, 해금된 백스토리 등)"},"availability":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Availability","description":"현재 availability 상태 스냅샷 (state, reason, since 등)"},"ignored_marker":{"type":"boolean","title":"Ignored Marker","description":"이 메시지가 IGNORED 상태에서 '읽씹' 처리됐는지 여부","default":false},"reconcile_reply_pending":{"type":"boolean","title":"Reconcile Reply Pending","description":"IGNORED 화해 사이클에서 이번 메시지로 화해 점수가 다음 stage(50/80/100)를 넘겨 곧 reconcile 응답이 proactive push 로 도착할 예정인지에 대한 신호. precheck 가 intent 별로 미리 계산한 값 중 이 턴의 실제 분류 intent 에 해당하는 것을 골라 전달한다(consumer 의 stage_reached 와 동일 판정 — 점수가 안 넘는 neutral/negative 면 false). 클라이언트는 true 면 push 도착 전까지 '...' 입력 인디케이터를 유지한다. skip_llm(빈 messages) 경로에서만 의미.","default":false}},"type":"object","required":["conversation_id","messages"],"title":"SendMessageResponse","description":"대화 응답 모델\n\n/run 엔드포인트의 응답 형식입니다.","example":{"conversation_id":"conv_abc123","messages":[{"content":"오늘 기분 어때?","created_at":"2025-10-27T10:30:00Z","message_id":"msg_user001","sender":"user"},{"content":"좋아! 너 덕분에 행복해 ㅎㅎ","created_at":"2025-10-27T10:30:01Z","emotion":"joy","message_id":"msg_ai001","sender":"character"}],"metadata":{"daily_usage":{"usage_percent":85.5,"warning_level":"warning"},"model":"gemini-2.5-flash-preview-04-17","unlocked_backstories":["backstory_first_meeting","backstory_childhood"]}}},"ServiceAccount":{"properties":{"serviceAccountCredential":{"anyOf":[{"$ref":"#/components/schemas/ServiceAccountCredential"},{"type":"null"}]},"scopes":{"items":{"type":"string"},"type":"array","title":"Scopes"},"useDefaultCredential":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Usedefaultcredential","default":false}},"additionalProperties":true,"type":"object","required":["scopes"],"title":"ServiceAccount","description":"Represents Google Service Account configuration."},"ServiceAccountCredential":{"properties":{"type":{"type":"string","title":"Type","default":""},"projectId":{"type":"string","title":"Projectid"},"privateKeyId":{"type":"string","title":"Privatekeyid"},"privateKey":{"type":"string","title":"Privatekey"},"clientEmail":{"type":"string","title":"Clientemail"},"clientId":{"type":"string","title":"Clientid"},"authUri":{"type":"string","title":"Authuri"},"tokenUri":{"type":"string","title":"Tokenuri"},"authProviderX509CertUrl":{"type":"string","title":"Authproviderx509Certurl"},"clientX509CertUrl":{"type":"string","title":"Clientx509Certurl"},"universeDomain":{"type":"string","title":"Universedomain"}},"additionalProperties":true,"type":"object","required":["projectId","privateKeyId","privateKey","clientEmail","clientId","authUri","tokenUri","authProviderX509CertUrl","clientX509CertUrl","universeDomain"],"title":"ServiceAccountCredential","description":"Represents Google Service Account configuration.\n\nAttributes:\n  type: The type should be \"service_account\".\n  project_id: The project ID.\n  private_key_id: The ID of the private key.\n  private_key: The private key.\n  client_email: The client email.\n  client_id: The client ID.\n  auth_uri: The authorization URI.\n  token_uri: The token URI.\n  auth_provider_x509_cert_url: URL for auth provider's X.509 cert.\n  client_x509_cert_url: URL for the client's X.509 cert.\n  universe_domain: The universe domain.\n\nExample:\n\n    config = ServiceAccountCredential(\n        type_=\"service_account\",\n        project_id=\"your_project_id\",\n        private_key_id=\"your_private_key_id\",\n        private_key=\"-----BEGIN PRIVATE KEY-----...\",\n        client_email=\"...@....iam.gserviceaccount.com\",\n        client_id=\"your_client_id\",\n        auth_uri=\"https://accounts.google.com/o/oauth2/auth\",\n        token_uri=\"https://oauth2.googleapis.com/token\",\n        auth_provider_x509_cert_url=\"https://www.googleapis.com/oauth2/v1/certs\",\n        client_x509_cert_url=\"https://www.googleapis.com/robot/v1/metadata/x509/...\",\n        universe_domain=\"googleapis.com\"\n    )\n\n\n    config = ServiceAccountConfig.model_construct(**{\n        ...service account config dict\n    })"},"Session":{"properties":{"id":{"type":"string","title":"Id"},"appName":{"type":"string","title":"Appname"},"userId":{"type":"string","title":"Userid"},"state":{"additionalProperties":true,"type":"object","title":"State"},"events":{"items":{"$ref":"#/components/schemas/Event-Output"},"type":"array","title":"Events"},"lastUpdateTime":{"type":"number","title":"Lastupdatetime","default":0.0}},"additionalProperties":false,"type":"object","required":["id","appName","userId"],"title":"Session","description":"Represents a series of interactions between a user and agents."},"SessionInput":{"properties":{"appName":{"type":"string","title":"Appname"},"userId":{"type":"string","title":"Userid"},"state":{"additionalProperties":true,"type":"object","title":"State"}},"additionalProperties":false,"type":"object","required":["appName","userId"],"title":"SessionInput","description":"Values that help initialize a Session."},"SpeakerVoiceConfig-Input":{"properties":{"speaker":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Speaker","description":"The name of the speaker to use. Should be the same as in the\n          prompt."},"voiceConfig":{"anyOf":[{"$ref":"#/components/schemas/VoiceConfig"},{"type":"null"}],"description":"The configuration for the voice to use."}},"additionalProperties":false,"type":"object","title":"SpeakerVoiceConfig","description":"The configuration for the speaker to use."},"SpeakerVoiceConfig-Output":{"properties":{"speaker":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Speaker","description":"The name of the speaker to use. Should be the same as in the\n          prompt."},"voiceConfig":{"anyOf":[{"$ref":"#/components/schemas/VoiceConfig"},{"type":"null"}],"description":"The configuration for the voice to use."}},"additionalProperties":false,"type":"object","title":"SpeakerVoiceConfig","description":"The configuration for the speaker to use."},"SpeechConfig-Input":{"properties":{"voiceConfig":{"anyOf":[{"$ref":"#/components/schemas/VoiceConfig"},{"type":"null"}],"description":"The configuration for the speaker to use.\n      "},"multiSpeakerVoiceConfig":{"anyOf":[{"$ref":"#/components/schemas/MultiSpeakerVoiceConfig-Input"},{"type":"null"}],"description":"The configuration for the multi-speaker setup.\n          It is mutually exclusive with the voice_config field.\n          "},"languageCode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Languagecode","description":"Language code (ISO 639. e.g. en-US) for the speech synthesization.\n      Only available for Live API.\n      "}},"additionalProperties":false,"type":"object","title":"SpeechConfig","description":"The speech generation configuration."},"SpeechConfig-Output":{"properties":{"voiceConfig":{"anyOf":[{"$ref":"#/components/schemas/VoiceConfig"},{"type":"null"}],"description":"The configuration for the speaker to use.\n      "},"multiSpeakerVoiceConfig":{"anyOf":[{"$ref":"#/components/schemas/MultiSpeakerVoiceConfig-Output"},{"type":"null"}],"description":"The configuration for the multi-speaker setup.\n          It is mutually exclusive with the voice_config field.\n          "},"languageCode":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Languagecode","description":"Language code (ISO 639. e.g. en-US) for the speech synthesization.\n      Only available for Live API.\n      "}},"additionalProperties":false,"type":"object","title":"SpeechConfig","description":"The speech generation configuration."},"ThinkingConfig":{"properties":{"includeThoughts":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Includethoughts","description":"Indicates whether to include thoughts in the response. If true, thoughts are returned only if the model supports thought and thoughts are available.\n      "},"thinkingBudget":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Thinkingbudget","description":"Indicates the thinking budget in tokens. 0 is DISABLED. -1 is AUTOMATIC. The default values and allowed ranges are model dependent.\n      "}},"additionalProperties":false,"type":"object","title":"ThinkingConfig","description":"The thinking features configuration."},"ToolAnnotations":{"properties":{"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"readOnlyHint":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Readonlyhint"},"destructiveHint":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Destructivehint"},"idempotentHint":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Idempotenthint"},"openWorldHint":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Openworldhint"}},"additionalProperties":true,"type":"object","title":"ToolAnnotations","description":"Additional properties describing a Tool to clients.\n\nNOTE: all properties in ToolAnnotations are **hints**.\nThey are not guaranteed to provide a faithful description of\ntool behavior (including descriptive properties like `title`).\n\nClients should never make tool use decisions based on ToolAnnotations\nreceived from untrusted servers."},"ToolCodeExecution":{"properties":{},"additionalProperties":false,"type":"object","title":"ToolCodeExecution","description":"Tool that executes code generated by the model, and automatically returns the result to the model.\n\nSee also [ExecutableCode]and [CodeExecutionResult] which are input and output\nto this tool."},"ToolConfig-Input":{"properties":{"functionCallingConfig":{"anyOf":[{"$ref":"#/components/schemas/FunctionCallingConfig"},{"type":"null"}],"description":"Optional. Function calling config."},"retrievalConfig":{"anyOf":[{"$ref":"#/components/schemas/RetrievalConfig"},{"type":"null"}],"description":"Optional. Retrieval config."}},"additionalProperties":false,"type":"object","title":"ToolConfig","description":"Tool config.\n\nThis config is shared for all tools provided in the request."},"ToolConfig-Output":{"properties":{"functionCallingConfig":{"anyOf":[{"$ref":"#/components/schemas/FunctionCallingConfig"},{"type":"null"}],"description":"Optional. Function calling config."},"retrievalConfig":{"anyOf":[{"$ref":"#/components/schemas/RetrievalConfig"},{"type":"null"}],"description":"Optional. Retrieval config."}},"additionalProperties":false,"type":"object","title":"ToolConfig","description":"Tool config.\n\nThis config is shared for all tools provided in the request."},"ToolConfirmation":{"properties":{"hint":{"type":"string","title":"Hint","default":""},"confirmed":{"type":"boolean","title":"Confirmed","default":false},"payload":{"anyOf":[{},{"type":"null"}],"title":"Payload"}},"additionalProperties":false,"type":"object","title":"ToolConfirmation","description":"Represents a tool confirmation configuration."},"TrafficType":{"type":"string","enum":["TRAFFIC_TYPE_UNSPECIFIED","ON_DEMAND","PROVISIONED_THROUGHPUT"],"title":"TrafficType","description":"Output only.\n\nTraffic type. This shows whether a request consumes Pay-As-You-Go or\nProvisioned Throughput quota."},"Transcription":{"properties":{"text":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Text","description":"Transcription text.\n      "},"finished":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Finished","description":"The bool indicates the end of the transcription.\n      "}},"additionalProperties":false,"type":"object","title":"Transcription","description":"Audio transcription in Server Conent."},"Type":{"type":"string","enum":["TYPE_UNSPECIFIED","STRING","NUMBER","INTEGER","BOOLEAN","ARRAY","OBJECT","NULL"],"title":"Type","description":"Optional. The type of the data."},"UpdateMemoryRequest":{"properties":{"sessionId":{"type":"string","title":"Sessionid"}},"type":"object","required":["sessionId"],"title":"UpdateMemoryRequest","description":"Request to add a session to the memory service."},"UrlContext":{"properties":{},"additionalProperties":false,"type":"object","title":"UrlContext","description":"Tool to support URL context retrieval."},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"VertexAISearch":{"properties":{"dataStoreSpecs":{"anyOf":[{"items":{"$ref":"#/components/schemas/VertexAISearchDataStoreSpec"},"type":"array"},{"type":"null"}],"title":"Datastorespecs","description":"Specifications that define the specific DataStores to be searched, along with configurations for those data stores. This is only considered for Engines with multiple data stores. It should only be set if engine is used."},"datastore":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Datastore","description":"Optional. Fully-qualified Vertex AI Search data store resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`"},"engine":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Engine","description":"Optional. Fully-qualified Vertex AI Search engine resource ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}`"},"filter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filter","description":"Optional. Filter strings to be passed to the search API."},"maxResults":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Maxresults","description":"Optional. Number of search results to return per query. The default value is 10. The maximumm allowed value is 10."}},"additionalProperties":false,"type":"object","title":"VertexAISearch","description":"Retrieve from Vertex AI Search datastore or engine for grounding.\n\ndatastore and engine are mutually exclusive. See\nhttps://cloud.google.com/products/agent-builder"},"VertexAISearchDataStoreSpec":{"properties":{"dataStore":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Datastore","description":"Full resource name of DataStore, such as Format: `projects/{project}/locations/{location}/collections/{collection}/dataStores/{dataStore}`"},"filter":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Filter","description":"Optional. Filter specification to filter documents in the data store specified by data_store field. For more information on filtering, see [Filtering](https://cloud.google.com/generative-ai-app-builder/docs/filter-search-metadata)"}},"additionalProperties":false,"type":"object","title":"VertexAISearchDataStoreSpec","description":"Define data stores within engine to filter on in a search call and configurations for those data stores.\n\nFor more information, see\nhttps://cloud.google.com/generative-ai-app-builder/docs/reference/rpc/google.cloud.discoveryengine.v1#datastorespec"},"VertexRagStore-Input":{"properties":{"ragCorpora":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Ragcorpora","description":"Optional. Deprecated. Please use rag_resources instead."},"ragResources":{"anyOf":[{"items":{"$ref":"#/components/schemas/VertexRagStoreRagResource"},"type":"array"},{"type":"null"}],"title":"Ragresources","description":"Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support."},"ragRetrievalConfig":{"anyOf":[{"$ref":"#/components/schemas/RagRetrievalConfig-Input"},{"type":"null"}],"description":"Optional. The retrieval config for the Rag query."},"similarityTopK":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Similaritytopk","description":"Optional. Number of top k results to return from the selected corpora."},"storeContext":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Storecontext","description":"Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, if `store_context` bool is specified, Gemini will leverage it to automatically memorize the interactions between the client and Gemini, and retrieve context when needed to augment the response generation for users' ongoing and future interactions."},"vectorDistanceThreshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Vectordistancethreshold","description":"Optional. Only return results with vector distance smaller than the threshold."}},"additionalProperties":false,"type":"object","title":"VertexRagStore","description":"Retrieve from Vertex RAG Store for grounding."},"VertexRagStore-Output":{"properties":{"ragCorpora":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Ragcorpora","description":"Optional. Deprecated. Please use rag_resources instead."},"ragResources":{"anyOf":[{"items":{"$ref":"#/components/schemas/VertexRagStoreRagResource"},"type":"array"},{"type":"null"}],"title":"Ragresources","description":"Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support."},"ragRetrievalConfig":{"anyOf":[{"$ref":"#/components/schemas/RagRetrievalConfig-Output"},{"type":"null"}],"description":"Optional. The retrieval config for the Rag query."},"similarityTopK":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Similaritytopk","description":"Optional. Number of top k results to return from the selected corpora."},"storeContext":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Storecontext","description":"Optional. Currently only supported for Gemini Multimodal Live API. In Gemini Multimodal Live API, if `store_context` bool is specified, Gemini will leverage it to automatically memorize the interactions between the client and Gemini, and retrieve context when needed to augment the response generation for users' ongoing and future interactions."},"vectorDistanceThreshold":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Vectordistancethreshold","description":"Optional. Only return results with vector distance smaller than the threshold."}},"additionalProperties":false,"type":"object","title":"VertexRagStore","description":"Retrieve from Vertex RAG Store for grounding."},"VertexRagStoreRagResource":{"properties":{"ragCorpus":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Ragcorpus","description":"Optional. RagCorpora resource name. Format: `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`"},"ragFileIds":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Ragfileids","description":"Optional. rag_file_id. The files should be in the same rag_corpus set in rag_corpus field."}},"additionalProperties":false,"type":"object","title":"VertexRagStoreRagResource","description":"The definition of the Rag resource."},"VideoMetadata":{"properties":{"fps":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Fps","description":"The frame rate of the video sent to the model. If not specified, the\n        default value will be 1.0. The fps range is (0.0, 24.0]."},"endOffset":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Endoffset","description":"Optional. The end offset of the video."},"startOffset":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Startoffset","description":"Optional. The start offset of the video."}},"additionalProperties":false,"type":"object","title":"VideoMetadata","description":"Describes how the video in the Part should be used by the model."},"VoiceConfig":{"properties":{"prebuiltVoiceConfig":{"anyOf":[{"$ref":"#/components/schemas/PrebuiltVoiceConfig"},{"type":"null"}],"description":"The configuration for the speaker to use.\n      "}},"additionalProperties":false,"type":"object","title":"VoiceConfig","description":"The configuration for the voice to use."},"google__adk__auth__auth_tool__AuthConfig-Input":{"properties":{"authScheme":{"anyOf":[{"$ref":"#/components/schemas/APIKey"},{"$ref":"#/components/schemas/HTTPBase"},{"$ref":"#/components/schemas/OAuth2-Input"},{"$ref":"#/components/schemas/OpenIdConnect"},{"$ref":"#/components/schemas/HTTPBearer"},{"$ref":"#/components/schemas/OpenIdConnectWithConfig"}],"title":"Authscheme"},"rawAuthCredential":{"anyOf":[{"$ref":"#/components/schemas/AuthCredential-Input"},{"type":"null"}]},"exchangedAuthCredential":{"anyOf":[{"$ref":"#/components/schemas/AuthCredential-Input"},{"type":"null"}]},"credentialKey":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credentialkey"}},"additionalProperties":true,"type":"object","required":["authScheme"],"title":"AuthConfig","description":"The auth config sent by tool asking client to collect auth credentials and\n\nadk and client will help to fill in the response"},"google__adk__auth__auth_tool__AuthConfig-Output":{"properties":{"authScheme":{"anyOf":[{"$ref":"#/components/schemas/APIKey"},{"$ref":"#/components/schemas/HTTPBase"},{"$ref":"#/components/schemas/OAuth2-Output"},{"$ref":"#/components/schemas/OpenIdConnect"},{"$ref":"#/components/schemas/HTTPBearer"},{"$ref":"#/components/schemas/OpenIdConnectWithConfig"}],"title":"Authscheme"},"rawAuthCredential":{"anyOf":[{"$ref":"#/components/schemas/AuthCredential-Output"},{"type":"null"}]},"exchangedAuthCredential":{"anyOf":[{"$ref":"#/components/schemas/AuthCredential-Output"},{"type":"null"}]},"credentialKey":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Credentialkey"}},"additionalProperties":true,"type":"object","required":["authScheme"],"title":"AuthConfig","description":"The auth config sent by tool asking client to collect auth credentials and\n\nadk and client will help to fill in the response"},"google__adk__evaluation__eval_metrics__Interval":{"properties":{"minValue":{"type":"number","title":"Minvalue","description":"The smaller end of the interval."},"openAtMin":{"type":"boolean","title":"Openatmin","description":"The interval is Open on the min end. The default value is False, which means that we assume that the interval is Closed.","default":false},"maxValue":{"type":"number","title":"Maxvalue","description":"The larger end of the interval."},"openAtMax":{"type":"boolean","title":"Openatmax","description":"The interval is Open on the max end. The default value is False, which means that we assume that the interval is Closed.","default":false}},"additionalProperties":false,"type":"object","required":["minValue","maxValue"],"title":"Interval","description":"Represents a range of numeric values, e.g. [0 ,1] or (2,3) or [-1, 6)."},"google__genai__types__AuthConfig":{"properties":{"apiKeyConfig":{"anyOf":[{"$ref":"#/components/schemas/ApiKeyConfig"},{"type":"null"}],"description":"Config for API key auth."},"authType":{"anyOf":[{"$ref":"#/components/schemas/AuthType"},{"type":"null"}],"description":"Type of auth scheme."},"googleServiceAccountConfig":{"anyOf":[{"$ref":"#/components/schemas/AuthConfigGoogleServiceAccountConfig"},{"type":"null"}],"description":"Config for Google Service Account auth."},"httpBasicAuthConfig":{"anyOf":[{"$ref":"#/components/schemas/AuthConfigHttpBasicAuthConfig"},{"type":"null"}],"description":"Config for HTTP Basic auth."},"oauthConfig":{"anyOf":[{"$ref":"#/components/schemas/AuthConfigOauthConfig"},{"type":"null"}],"description":"Config for user oauth."},"oidcConfig":{"anyOf":[{"$ref":"#/components/schemas/AuthConfigOidcConfig"},{"type":"null"}],"description":"Config for user OIDC auth."}},"additionalProperties":false,"type":"object","title":"AuthConfig","description":"Auth configuration to run the extension."},"google__genai__types__Interval":{"properties":{"startTime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Starttime","description":"The start time of the interval."},"endTime":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Endtime","description":"The end time of the interval."}},"additionalProperties":false,"type":"object","title":"Interval","description":"Represents a time interval, encoded as a start time (inclusive) and an end time (exclusive).\n\nThe start time must be less than or equal to the end time.\nWhen the start equals the end time, the interval is an empty interval.\n(matches no time)\nWhen both start and end are unspecified, the interval matches any time."},"google__genai__types__Tool-Input":{"properties":{"functionDeclarations":{"anyOf":[{"items":{"$ref":"#/components/schemas/FunctionDeclaration-Input"},"type":"array"},{"type":"null"}],"title":"Functiondeclarations","description":"List of function declarations that the tool supports."},"retrieval":{"anyOf":[{"$ref":"#/components/schemas/Retrieval-Input"},{"type":"null"}],"description":"Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation."},"googleSearch":{"anyOf":[{"$ref":"#/components/schemas/GoogleSearch-Input"},{"type":"null"}],"description":"Optional. Google Search tool type. Specialized retrieval tool\n      that is powered by Google Search."},"googleSearchRetrieval":{"anyOf":[{"$ref":"#/components/schemas/GoogleSearchRetrieval-Input"},{"type":"null"}],"description":"Optional. GoogleSearchRetrieval tool type. Specialized retrieval tool that is powered by Google search."},"enterpriseWebSearch":{"anyOf":[{"$ref":"#/components/schemas/EnterpriseWebSearch"},{"type":"null"}],"description":"Optional. Enterprise web search tool type. Specialized retrieval\n      tool that is powered by Vertex AI Search and Sec4 compliance."},"googleMaps":{"anyOf":[{"$ref":"#/components/schemas/GoogleMaps-Input"},{"type":"null"}],"description":"Optional. Google Maps tool type. Specialized retrieval tool\n      that is powered by Google Maps."},"urlContext":{"anyOf":[{"$ref":"#/components/schemas/UrlContext"},{"type":"null"}],"description":"Optional. Tool to support URL context retrieval."},"computerUse":{"anyOf":[{"$ref":"#/components/schemas/ComputerUse"},{"type":"null"}],"description":"Optional. Tool to support the model interacting directly with the\n      computer. If enabled, it automatically populates computer-use specific\n      Function Declarations."},"codeExecution":{"anyOf":[{"$ref":"#/components/schemas/ToolCodeExecution"},{"type":"null"}],"description":"Optional. CodeExecution tool type. Enables the model to execute code as part of generation."}},"additionalProperties":false,"type":"object","title":"Tool","description":"Tool details of a tool that the model may use to generate a response."},"google__genai__types__Tool-Output":{"properties":{"functionDeclarations":{"anyOf":[{"items":{"$ref":"#/components/schemas/FunctionDeclaration-Output"},"type":"array"},{"type":"null"}],"title":"Functiondeclarations","description":"List of function declarations that the tool supports."},"retrieval":{"anyOf":[{"$ref":"#/components/schemas/Retrieval-Output"},{"type":"null"}],"description":"Optional. Retrieval tool type. System will always execute the provided retrieval tool(s) to get external knowledge to answer the prompt. Retrieval results are presented to the model for generation."},"googleSearch":{"anyOf":[{"$ref":"#/components/schemas/GoogleSearch-Output"},{"type":"null"}],"description":"Optional. Google Search tool type. Specialized retrieval tool\n      that is powered by Google Search."},"googleSearchRetrieval":{"anyOf":[{"$ref":"#/components/schemas/GoogleSearchRetrieval-Output"},{"type":"null"}],"description":"Optional. GoogleSearchRetrieval tool type. Specialized retrieval tool that is powered by Google search."},"enterpriseWebSearch":{"anyOf":[{"$ref":"#/components/schemas/EnterpriseWebSearch"},{"type":"null"}],"description":"Optional. Enterprise web search tool type. Specialized retrieval\n      tool that is powered by Vertex AI Search and Sec4 compliance."},"googleMaps":{"anyOf":[{"$ref":"#/components/schemas/GoogleMaps-Output"},{"type":"null"}],"description":"Optional. Google Maps tool type. Specialized retrieval tool\n      that is powered by Google Maps."},"urlContext":{"anyOf":[{"$ref":"#/components/schemas/UrlContext"},{"type":"null"}],"description":"Optional. Tool to support URL context retrieval."},"computerUse":{"anyOf":[{"$ref":"#/components/schemas/ComputerUse"},{"type":"null"}],"description":"Optional. Tool to support the model interacting directly with the\n      computer. If enabled, it automatically populates computer-use specific\n      Function Declarations."},"codeExecution":{"anyOf":[{"$ref":"#/components/schemas/ToolCodeExecution"},{"type":"null"}],"description":"Optional. CodeExecution tool type. Enables the model to execute code as part of generation."}},"additionalProperties":false,"type":"object","title":"Tool","description":"Tool details of a tool that the model may use to generate a response."},"mcp__types__Tool":{"properties":{"name":{"type":"string","title":"Name"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"inputSchema":{"additionalProperties":true,"type":"object","title":"Inputschema"},"outputSchema":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Outputschema"},"annotations":{"anyOf":[{"$ref":"#/components/schemas/ToolAnnotations"},{"type":"null"}]},"_meta":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Meta"}},"additionalProperties":true,"type":"object","required":["name","inputSchema"],"title":"Tool","description":"Definition for a tool the client can call."}}}}