public virtual Task<AgentValidationResult> ValidateAgent(ValidateAgentRequest request, ServerCallContext context)
Validates the specified agent and creates or updates validation results.
The agent in draft version is validated. Please call this API after the
training is completed to get the complete validation results.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides comprehensive reference documentation for the \u003ccode\u003eAgents.AgentsBase\u003c/code\u003e class within the Google.Cloud.Dialogflow.Cx.V3 namespace, detailing various methods for managing Dialogflow agents.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eAgents.AgentsBase\u003c/code\u003e class serves as the base for server-side implementations of Dialogflow agents, including methods like \u003ccode\u003eCreateAgent\u003c/code\u003e, \u003ccode\u003eDeleteAgent\u003c/code\u003e, \u003ccode\u003eGetAgent\u003c/code\u003e, \u003ccode\u003eListAgents\u003c/code\u003e, \u003ccode\u003eUpdateAgent\u003c/code\u003e, and more.\u003c/p\u003e\n"],["\u003cp\u003eThe API offers functionalities to export and restore agents to/from binary files, as well as validating them and getting their validation results, supporting long-running operations.\u003c/p\u003e\n"],["\u003cp\u003eThere are numerous versions of the API available, with version 2.23.0 being the most recent and a total of 36 versions being listed, all the way back to 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003eMethods related to updating and getting the generative settings for the agents, such as \u003ccode\u003eGetGenerativeSettings\u003c/code\u003e and \u003ccode\u003eUpdateGenerativeSettings\u003c/code\u003e are included within this class.\u003c/p\u003e\n"]]],[],null,["# Dialogflow v3 API - Class Agents.AgentsBase (2.24.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.24.0 (latest)](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3.Agents.AgentsBase)\n- [2.23.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.23.0/Google.Cloud.Dialogflow.Cx.V3.Agents.AgentsBase)\n- [2.22.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.22.0/Google.Cloud.Dialogflow.Cx.V3.Agents.AgentsBase)\n- [2.21.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.21.0/Google.Cloud.Dialogflow.Cx.V3.Agents.AgentsBase)\n- [2.20.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.20.0/Google.Cloud.Dialogflow.Cx.V3.Agents.AgentsBase)\n- [2.19.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.19.0/Google.Cloud.Dialogflow.Cx.V3.Agents.AgentsBase)\n- [2.18.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.18.0/Google.Cloud.Dialogflow.Cx.V3.Agents.AgentsBase)\n- [2.17.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.17.0/Google.Cloud.Dialogflow.Cx.V3.Agents.AgentsBase)\n- [2.16.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.16.0/Google.Cloud.Dialogflow.Cx.V3.Agents.AgentsBase)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.15.0/Google.Cloud.Dialogflow.Cx.V3.Agents.AgentsBase)\n- [2.14.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.14.0/Google.Cloud.Dialogflow.Cx.V3.Agents.AgentsBase)\n- [2.13.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.13.0/Google.Cloud.Dialogflow.Cx.V3.Agents.AgentsBase)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.12.0/Google.Cloud.Dialogflow.Cx.V3.Agents.AgentsBase)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.11.0/Google.Cloud.Dialogflow.Cx.V3.Agents.AgentsBase)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.10.0/Google.Cloud.Dialogflow.Cx.V3.Agents.AgentsBase)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.9.0/Google.Cloud.Dialogflow.Cx.V3.Agents.AgentsBase)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.8.0/Google.Cloud.Dialogflow.Cx.V3.Agents.AgentsBase)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.7.0/Google.Cloud.Dialogflow.Cx.V3.Agents.AgentsBase)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.6.0/Google.Cloud.Dialogflow.Cx.V3.Agents.AgentsBase)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.5.0/Google.Cloud.Dialogflow.Cx.V3.Agents.AgentsBase)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.4.0/Google.Cloud.Dialogflow.Cx.V3.Agents.AgentsBase)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.3.0/Google.Cloud.Dialogflow.Cx.V3.Agents.AgentsBase)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.2.0/Google.Cloud.Dialogflow.Cx.V3.Agents.AgentsBase)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.1.0/Google.Cloud.Dialogflow.Cx.V3.Agents.AgentsBase)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/2.0.0/Google.Cloud.Dialogflow.Cx.V3.Agents.AgentsBase)\n- [1.13.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/1.13.0/Google.Cloud.Dialogflow.Cx.V3.Agents.AgentsBase)\n- [1.12.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/1.12.0/Google.Cloud.Dialogflow.Cx.V3.Agents.AgentsBase)\n- [1.11.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/1.11.0/Google.Cloud.Dialogflow.Cx.V3.Agents.AgentsBase)\n- [1.10.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/1.10.0/Google.Cloud.Dialogflow.Cx.V3.Agents.AgentsBase)\n- [1.9.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/1.9.0/Google.Cloud.Dialogflow.Cx.V3.Agents.AgentsBase)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/1.8.0/Google.Cloud.Dialogflow.Cx.V3.Agents.AgentsBase)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/1.7.0/Google.Cloud.Dialogflow.Cx.V3.Agents.AgentsBase)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/1.6.0/Google.Cloud.Dialogflow.Cx.V3.Agents.AgentsBase)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/1.5.0/Google.Cloud.Dialogflow.Cx.V3.Agents.AgentsBase)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/1.4.0/Google.Cloud.Dialogflow.Cx.V3.Agents.AgentsBase)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/1.3.0/Google.Cloud.Dialogflow.Cx.V3.Agents.AgentsBase)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/1.2.0/Google.Cloud.Dialogflow.Cx.V3.Agents.AgentsBase)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/1.1.0/Google.Cloud.Dialogflow.Cx.V3.Agents.AgentsBase)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/1.0.0/Google.Cloud.Dialogflow.Cx.V3.Agents.AgentsBase) \n\n [BindServiceMethod(typeof(Agents), \"BindService\")]\n public abstract class Agents.AgentsBase\n\nReference documentation and code samples for the Dialogflow v3 API class Agents.AgentsBase.\n\nBase class for server-side implementations of Agents \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Agents.AgentsBase \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.MemberwiseClone()](https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Dialogflow.Cx.V3](/dotnet/docs/reference/Google.Cloud.Dialogflow.Cx.V3/latest/Google.Cloud.Dialogflow.Cx.V3)\n\nAssembly\n--------\n\nGoogle.Cloud.Dialogflow.Cx.V3.dll\n\nMethods\n-------\n\n### CreateAgent(CreateAgentRequest, ServerCallContext)\n\n public virtual Task\u003cAgent\u003e CreateAgent(CreateAgentRequest request, ServerCallContext context)\n\nCreates an agent in the specified location.\n\nNote: You should always train flows prior to sending them queries. See the\n[training\ndocumentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).\n\n### DeleteAgent(DeleteAgentRequest, ServerCallContext)\n\n public virtual Task\u003cEmpty\u003e DeleteAgent(DeleteAgentRequest request, ServerCallContext context)\n\nDeletes the specified agent.\n\n### ExportAgent(ExportAgentRequest, ServerCallContext)\n\n public virtual Task\u003cOperation\u003e ExportAgent(ExportAgentRequest request, ServerCallContext context)\n\nExports the specified agent to a binary file.\n\nThis method is a [long-running\noperation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).\nThe returned `Operation` type has the following method-specific fields:\n\n- `metadata`: An empty [Struct\n message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)\n- `response`: \\[ExportAgentResponse\\]\\[google.cloud.dialogflow.cx.v3.ExportAgentResponse\\]\n\n### GetAgent(GetAgentRequest, ServerCallContext)\n\n public virtual Task\u003cAgent\u003e GetAgent(GetAgentRequest request, ServerCallContext context)\n\nRetrieves the specified agent.\n\n### GetAgentValidationResult(GetAgentValidationResultRequest, ServerCallContext)\n\n public virtual Task\u003cAgentValidationResult\u003e GetAgentValidationResult(GetAgentValidationResultRequest request, ServerCallContext context)\n\nGets the latest agent validation result. Agent validation is performed\nwhen ValidateAgent is called.\n\n### GetGenerativeSettings(GetGenerativeSettingsRequest, ServerCallContext)\n\n public virtual Task\u003cGenerativeSettings\u003e GetGenerativeSettings(GetGenerativeSettingsRequest request, ServerCallContext context)\n\nGets the generative settings for the agent.\n\n### ListAgents(ListAgentsRequest, ServerCallContext)\n\n public virtual Task\u003cListAgentsResponse\u003e ListAgents(ListAgentsRequest request, ServerCallContext context)\n\nReturns the list of all agents in the specified location.\n\n### RestoreAgent(RestoreAgentRequest, ServerCallContext)\n\n public virtual Task\u003cOperation\u003e RestoreAgent(RestoreAgentRequest request, ServerCallContext context)\n\nRestores the specified agent from a binary file.\n\nReplaces the current agent with a new one. Note that all existing resources\nin agent (e.g. intents, entity types, flows) will be removed.\n\nThis method is a [long-running\noperation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).\nThe returned `Operation` type has the following method-specific fields:\n\n- `metadata`: An empty [Struct\n message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)\n- `response`: An [Empty\n message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)\n\nNote: You should always train flows prior to sending them queries. See the\n[training\ndocumentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).\n\n### UpdateAgent(UpdateAgentRequest, ServerCallContext)\n\n public virtual Task\u003cAgent\u003e UpdateAgent(UpdateAgentRequest request, ServerCallContext context)\n\nUpdates the specified agent.\n\nNote: You should always train flows prior to sending them queries. See the\n[training\ndocumentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).\n\n### UpdateGenerativeSettings(UpdateGenerativeSettingsRequest, ServerCallContext)\n\n public virtual Task\u003cGenerativeSettings\u003e UpdateGenerativeSettings(UpdateGenerativeSettingsRequest request, ServerCallContext context)\n\nUpdates the generative settings for the agent.\n\n### ValidateAgent(ValidateAgentRequest, ServerCallContext)\n\n public virtual Task\u003cAgentValidationResult\u003e ValidateAgent(ValidateAgentRequest request, ServerCallContext context)\n\nValidates the specified agent and creates or updates validation results.\nThe agent in draft version is validated. Please call this API after the\ntraining is completed to get the complete validation results."]]