ProjectsLocationsAgents
class ProjectsLocationsAgents extends Resource (View source)
The "agents" collection of methods.
Typical usage is:
$dialogflowService = new Google\Service\Dialogflow(...);
$agents = $dialogflowService->projects_locations_agents;
Methods
Creates an agent in the specified location. Note: You should always train flows prior to sending them queries. See the training documentation.
Deletes the specified agent. (agents.delete)
Exports the specified agent to a binary file. This method is a long-running
operation. The returned Operation
type has the following method-specific
fields: - metadata
: An empty Struct
message - response
:
ExportAgentResponse (agents.export)
Retrieves the specified agent. (agents.get)
Gets the generative settings for the agent. (agents.getGenerativeSettings)
Gets the latest agent validation result. Agent validation is performed when ValidateAgent is called. (agents.getValidationResult)
Returns the list of all agents in the specified location.
Updates the specified agent. Note: You should always train flows prior to sending them queries. See the training documentation.
Restores the specified agent from a binary file. Replaces the current agent
with a new one. Note that all existing resources in agent (e.g. intents,
entity types, flows) will be removed. This method is a long-running
operation. The returned Operation
type has the following method-specific
fields: - metadata
: An empty Struct
message - response
: An Empty
message Note: You should always train
flows prior to sending them queries. See the training
documentation.
Updates the generative settings for the agent.
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. (agents.validate)
Details
GoogleCloudDialogflowCxV3Agent
create(string $parent, GoogleCloudDialogflowCxV3Agent $postBody, array $optParams = [])
Creates an agent in the specified location. Note: You should always train flows prior to sending them queries. See the training documentation.
(agents.create)
GoogleProtobufEmpty
delete(string $name, array $optParams = [])
Deletes the specified agent. (agents.delete)
GoogleLongrunningOperation
export(string $name, GoogleCloudDialogflowCxV3ExportAgentRequest $postBody, array $optParams = [])
Exports the specified agent to a binary file. This method is a long-running
operation. The returned Operation
type has the following method-specific
fields: - metadata
: An empty Struct
message - response
:
ExportAgentResponse (agents.export)
GoogleCloudDialogflowCxV3Agent
get(string $name, array $optParams = [])
Retrieves the specified agent. (agents.get)
GoogleCloudDialogflowCxV3GenerativeSettings
getGenerativeSettings(string $name, array $optParams = [])
Gets the generative settings for the agent. (agents.getGenerativeSettings)
GoogleCloudDialogflowCxV3AgentValidationResult
getValidationResult(string $name, array $optParams = [])
Gets the latest agent validation result. Agent validation is performed when ValidateAgent is called. (agents.getValidationResult)
GoogleCloudDialogflowCxV3ListAgentsResponse
listProjectsLocationsAgents(string $parent, array $optParams = [])
Returns the list of all agents in the specified location.
(agents.listProjectsLocationsAgents)
GoogleCloudDialogflowCxV3Agent
patch(string $name, GoogleCloudDialogflowCxV3Agent $postBody, array $optParams = [])
Updates the specified agent. Note: You should always train flows prior to sending them queries. See the training documentation.
(agents.patch)
GoogleLongrunningOperation
restore(string $name, GoogleCloudDialogflowCxV3RestoreAgentRequest $postBody, array $optParams = [])
Restores the specified agent from a binary file. Replaces the current agent
with a new one. Note that all existing resources in agent (e.g. intents,
entity types, flows) will be removed. This method is a long-running
operation. The returned Operation
type has the following method-specific
fields: - metadata
: An empty Struct
message - response
: An Empty
message Note: You should always train
flows prior to sending them queries. See the training
documentation.
(agents.restore)
GoogleCloudDialogflowCxV3GenerativeSettings
updateGenerativeSettings(string $name, GoogleCloudDialogflowCxV3GenerativeSettings $postBody, array $optParams = [])
Updates the generative settings for the agent.
(agents.updateGenerativeSettings)
GoogleCloudDialogflowCxV3AgentValidationResult
validate(string $name, GoogleCloudDialogflowCxV3ValidateAgentRequest $postBody, array $optParams = [])
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. (agents.validate)