πŸ“‚ File Browser

/AgentAI/vendor/google/apiclient-services/src/CustomerEngagementSuite
β˜€οΈ Light Mode
🎯 Quick Launch:

πŸ“ Directories

πŸ“ Resource/ πŸ”“ Open

πŸ“„ Files

🐘 Action.php
β–Ά Open πŸ“„ View Source
🐘 ActionEntityOperation.php
β–Ά Open πŸ“„ View Source
🐘 Agent.php
β–Ά Open πŸ“„ View Source
🐘 AgentAgentToolset.php
β–Ά Open πŸ“„ View Source
🐘 AgentLlmAgent.php
β–Ά Open πŸ“„ View Source
🐘 AgentRemoteDialogflowAgent.php
β–Ά Open πŸ“„ View Source
🐘 AgentTool.php
β–Ά Open πŸ“„ View Source
🐘 AgentTransfer.php
β–Ά Open πŸ“„ View Source
🐘 AmbientSoundConfig.php
β–Ά Open πŸ“„ View Source
🐘 ApiAuthentication.php
β–Ά Open πŸ“„ View Source
🐘 ApiKeyConfig.php
β–Ά Open πŸ“„ View Source
🐘 AppSnapshot.php
β–Ά Open πŸ“„ View Source
🐘 AppVariableDeclaration.php
β–Ά Open πŸ“„ View Source
🐘 AppVersion.php
β–Ά Open πŸ“„ View Source
🐘 AudioProcessingConfig.php
β–Ά Open πŸ“„ View Source
🐘 AudioRecordingConfig.php
β–Ά Open πŸ“„ View Source
🐘 BargeInConfig.php
β–Ά Open πŸ“„ View Source
🐘 BatchDeleteConversationsRequest.php
β–Ά Open πŸ“„ View Source
🐘 BearerTokenConfig.php
β–Ά Open πŸ“„ View Source
🐘 BigQueryExportSettings.php
β–Ά Open πŸ“„ View Source
🐘 Blob.php
β–Ά Open πŸ“„ View Source
🐘 Callback.php
β–Ά Open πŸ“„ View Source
🐘 CancelOperationRequest.php
β–Ά Open πŸ“„ View Source
🐘 CesEmpty.php
β–Ά Open πŸ“„ View Source
🐘 Changelog.php
β–Ά Open πŸ“„ View Source
🐘 ChannelProfile.php
β–Ά Open πŸ“„ View Source
🐘 ChannelProfilePersonaProperty.php
β–Ά Open πŸ“„ View Source
🐘 ChannelProfileWebWidgetConfig.php
β–Ά Open πŸ“„ View Source
🐘 ChannelProfileWebWidgetConfigSecuritySettings.php
β–Ά Open πŸ“„ View Source
🐘 Chunk.php
β–Ά Open πŸ“„ View Source
🐘 Citations.php
β–Ά Open πŸ“„ View Source
🐘 CitationsCitedChunk.php
β–Ά Open πŸ“„ View Source
🐘 ClientCertificateSettings.php
β–Ά Open πŸ“„ View Source
🐘 ClientFunction.php
β–Ά Open πŸ“„ View Source
🐘 CloudLoggingSettings.php
β–Ά Open πŸ“„ View Source
🐘 CodeBlock.php
β–Ά Open πŸ“„ View Source
🐘 ConnectorTool.php
β–Ά Open πŸ“„ View Source
🐘 ConnectorToolset.php
β–Ά Open πŸ“„ View Source
🐘 Conversation.php
β–Ά Open πŸ“„ View Source
🐘 ConversationLoggingSettings.php
β–Ά Open πŸ“„ View Source
🐘 ConversationTurn.php
β–Ά Open πŸ“„ View Source
🐘 DataStore.php
β–Ά Open πŸ“„ View Source
🐘 DataStoreConnectorConfig.php
β–Ά Open πŸ“„ View Source
🐘 DataStoreSettings.php
β–Ά Open πŸ“„ View Source
🐘 DataStoreSettingsEngine.php
β–Ά Open πŸ“„ View Source
🐘 DataStoreTool.php
β–Ά Open πŸ“„ View Source
🐘 DataStoreToolBoostSpec.php
β–Ά Open πŸ“„ View Source
🐘 DataStoreToolBoostSpecConditionBoostSpec.php
β–Ά Open πŸ“„ View Source
🐘 DataStoreToolBoostSpecConditionBoostSpecBoostControlSpec.php
β–Ά Open πŸ“„ View Source
🐘 DataStoreToolBoostSpecConditionBoostSpecBoostControlSpecControlPoint.php
β–Ά Open πŸ“„ View Source
🐘 DataStoreToolBoostSpecs.php
β–Ά Open πŸ“„ View Source
🐘 DataStoreToolDataStoreSource.php
β–Ά Open πŸ“„ View Source
🐘 DataStoreToolEngineSource.php
β–Ά Open πŸ“„ View Source
🐘 DataStoreToolGroundingConfig.php
β–Ά Open πŸ“„ View Source
🐘 DataStoreToolModalityConfig.php
β–Ά Open πŸ“„ View Source
🐘 DataStoreToolRewriterConfig.php
β–Ά Open πŸ“„ View Source
🐘 DataStoreToolSummarizationConfig.php
β–Ά Open πŸ“„ View Source
🐘 Deployment.php
β–Ά Open πŸ“„ View Source
🐘 EndSession.php
β–Ά Open πŸ“„ View Source
🐘 EndUserAuthConfig.php
β–Ά Open πŸ“„ View Source
🐘 EndUserAuthConfigOauth2AuthCodeConfig.php
β–Ά Open πŸ“„ View Source
🐘 EndUserAuthConfigOauth2JwtBearerConfig.php
β–Ά Open πŸ“„ View Source
🐘 EndpointControlPolicy.php
β–Ά Open πŸ“„ View Source
🐘 ErrorHandlingSettings.php
β–Ά Open πŸ“„ View Source
🐘 ErrorHandlingSettingsEndSessionConfig.php
β–Ά Open πŸ“„ View Source
🐘 ErrorHandlingSettingsFallbackResponseConfig.php
β–Ά Open πŸ“„ View Source
🐘 EvaluationMetricsThresholds.php
β–Ά Open πŸ“„ View Source
🐘 EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds.php
β–Ά Open πŸ“„ View Source
🐘 EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds.php
β–Ά Open πŸ“„ View Source
🐘 EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds.php
β–Ά Open πŸ“„ View Source
🐘 EvaluationMetricsThresholdsToolMatchingSettings.php
β–Ά Open πŸ“„ View Source
🐘 Event.php
β–Ά Open πŸ“„ View Source
🐘 Example.php
β–Ά Open πŸ“„ View Source
🐘 ExecuteToolRequest.php
β–Ά Open πŸ“„ View Source
🐘 ExecuteToolResponse.php
β–Ά Open πŸ“„ View Source
🐘 ExperimentConfig.php
β–Ά Open πŸ“„ View Source
🐘 ExperimentConfigVersionRelease.php
β–Ά Open πŸ“„ View Source
🐘 ExperimentConfigVersionReleaseTrafficAllocation.php
β–Ά Open πŸ“„ View Source
🐘 ExportAppRequest.php
β–Ά Open πŸ“„ View Source
🐘 ExportAppResponse.php
β–Ά Open πŸ“„ View Source
🐘 ExpressionCondition.php
β–Ά Open πŸ“„ View Source
🐘 FileSearchTool.php
β–Ά Open πŸ“„ View Source
🐘 GenerateChatTokenRequest.php
β–Ά Open πŸ“„ View Source
🐘 GenerateChatTokenResponse.php
β–Ά Open πŸ“„ View Source
🐘 GoogleSearchSuggestions.php
β–Ά Open πŸ“„ View Source
🐘 GoogleSearchTool.php
β–Ά Open πŸ“„ View Source
🐘 GoogleSearchToolPromptConfig.php
β–Ά Open πŸ“„ View Source
🐘 Guardrail.php
β–Ά Open πŸ“„ View Source
🐘 GuardrailCodeCallback.php
β–Ά Open πŸ“„ View Source
🐘 GuardrailContentFilter.php
β–Ά Open πŸ“„ View Source
🐘 GuardrailLlmPolicy.php
β–Ά Open πŸ“„ View Source
🐘 GuardrailLlmPromptSecurity.php
β–Ά Open πŸ“„ View Source
🐘 GuardrailLlmPromptSecurityDefaultSecuritySettings.php
β–Ά Open πŸ“„ View Source
🐘 GuardrailModelSafety.php
β–Ά Open πŸ“„ View Source
🐘 GuardrailModelSafetySafetySetting.php
β–Ά Open πŸ“„ View Source
🐘 Image.php
β–Ά Open πŸ“„ View Source
🐘 ImportAppRequest.php
β–Ά Open πŸ“„ View Source
🐘 ImportAppRequestImportOptions.php
β–Ά Open πŸ“„ View Source
🐘 ImportAppResponse.php
β–Ά Open πŸ“„ View Source
🐘 InputAudioConfig.php
β–Ά Open πŸ“„ View Source
🐘 LanguageSettings.php
β–Ά Open πŸ“„ View Source
🐘 ListAgentsResponse.php
β–Ά Open πŸ“„ View Source
🐘 ListAppVersionsResponse.php
β–Ά Open πŸ“„ View Source
🐘 ListAppsResponse.php
β–Ά Open πŸ“„ View Source
🐘 ListChangelogsResponse.php
β–Ά Open πŸ“„ View Source
🐘 ListConversationsResponse.php
β–Ά Open πŸ“„ View Source
🐘 ListDeploymentsResponse.php
β–Ά Open πŸ“„ View Source
🐘 ListExamplesResponse.php
β–Ά Open πŸ“„ View Source
🐘 ListGuardrailsResponse.php
β–Ά Open πŸ“„ View Source
🐘 ListLocationsResponse.php
β–Ά Open πŸ“„ View Source
🐘 ListOperationsResponse.php
β–Ά Open πŸ“„ View Source
🐘 ListToolsResponse.php
β–Ά Open πŸ“„ View Source
🐘 ListToolsetsResponse.php
β–Ά Open πŸ“„ View Source
🐘 Location.php
β–Ά Open πŸ“„ View Source
🐘 LoggingSettings.php
β–Ά Open πŸ“„ View Source
🐘 McpTool.php
β–Ά Open πŸ“„ View Source
🐘 McpToolset.php
β–Ά Open πŸ“„ View Source
🐘 Message.php
β–Ά Open πŸ“„ View Source
🐘 MetricAnalysisSettings.php
β–Ά Open πŸ“„ View Source
🐘 MockConfig.php
β–Ά Open πŸ“„ View Source
🐘 MockedToolCall.php
β–Ά Open πŸ“„ View Source
🐘 ModelSettings.php
β–Ά Open πŸ“„ View Source
🐘 OAuthConfig.php
β–Ά Open πŸ“„ View Source
🐘 Omnichannel.php
β–Ά Open πŸ“„ View Source
🐘 OmnichannelIntegrationConfig.php
β–Ά Open πŸ“„ View Source
🐘 OmnichannelIntegrationConfigCesAppConfig.php
β–Ά Open πŸ“„ View Source
🐘 OmnichannelIntegrationConfigChannelConfig.php
β–Ά Open πŸ“„ View Source
🐘 OmnichannelIntegrationConfigRoutingConfig.php
β–Ά Open πŸ“„ View Source
🐘 OmnichannelIntegrationConfigSubscriberConfig.php
β–Ά Open πŸ“„ View Source
🐘 OmnichannelIntegrationConfigWhatsappConfig.php
β–Ά Open πŸ“„ View Source
🐘 OmnichannelOperationMetadata.php
β–Ά Open πŸ“„ View Source
🐘 OpenApiTool.php
β–Ά Open πŸ“„ View Source
🐘 OpenApiToolset.php
β–Ά Open πŸ“„ View Source
🐘 Operation.php
β–Ά Open πŸ“„ View Source
🐘 OperationMetadata.php
β–Ά Open πŸ“„ View Source
🐘 OutputAudioConfig.php
β–Ά Open πŸ“„ View Source
🐘 PythonCodeCondition.php
β–Ά Open πŸ“„ View Source
🐘 PythonFunction.php
β–Ά Open πŸ“„ View Source
🐘 RedactionConfig.php
β–Ά Open πŸ“„ View Source
🐘 RestoreAppVersionRequest.php
β–Ά Open πŸ“„ View Source
🐘 RetrieveToolSchemaRequest.php
β–Ά Open πŸ“„ View Source
🐘 RetrieveToolSchemaResponse.php
β–Ά Open πŸ“„ View Source
🐘 RetrieveToolsRequest.php
β–Ά Open πŸ“„ View Source
🐘 RetrieveToolsResponse.php
β–Ά Open πŸ“„ View Source
🐘 RunSessionRequest.php
β–Ά Open πŸ“„ View Source
🐘 RunSessionResponse.php
β–Ά Open πŸ“„ View Source
🐘 Schema.php
β–Ά Open πŸ“„ View Source
🐘 SecuritySettings.php
β–Ά Open πŸ“„ View Source
🐘 ServiceAccountAuthConfig.php
β–Ά Open πŸ“„ View Source
🐘 ServiceAgentIdTokenAuthConfig.php
β–Ά Open πŸ“„ View Source
🐘 ServiceDirectoryConfig.php
β–Ά Open πŸ“„ View Source
🐘 SessionConfig.php
β–Ά Open πŸ“„ View Source
🐘 SessionConfigRemoteDialogflowQueryParameters.php
β–Ά Open πŸ“„ View Source
🐘 SessionInput.php
β–Ά Open πŸ“„ View Source
🐘 SessionOutput.php
β–Ά Open πŸ“„ View Source
🐘 SessionOutputDiagnosticInfo.php
β–Ά Open πŸ“„ View Source
🐘 Span.php
β–Ά Open πŸ“„ View Source
🐘 Status.php
β–Ά Open πŸ“„ View Source
🐘 SynthesizeSpeechConfig.php
β–Ά Open πŸ“„ View Source
🐘 SystemTool.php
β–Ά Open πŸ“„ View Source
🐘 TimeZoneSettings.php
β–Ά Open πŸ“„ View Source
🐘 TlsConfig.php
β–Ά Open πŸ“„ View Source
🐘 TlsConfigCaCert.php
β–Ά Open πŸ“„ View Source
🐘 Tool.php
β–Ά Open πŸ“„ View Source
🐘 ToolCall.php
β–Ά Open πŸ“„ View Source
🐘 ToolCalls.php
β–Ά Open πŸ“„ View Source
🐘 ToolFakeConfig.php
β–Ά Open πŸ“„ View Source
🐘 ToolResponse.php
β–Ά Open πŸ“„ View Source
🐘 ToolResponses.php
β–Ά Open πŸ“„ View Source
🐘 Toolset.php
β–Ά Open πŸ“„ View Source
🐘 ToolsetTool.php
β–Ά Open πŸ“„ View Source
🐘 TransferRule.php
β–Ά Open πŸ“„ View Source
🐘 TransferRuleDeterministicTransfer.php
β–Ά Open πŸ“„ View Source
🐘 TransferRuleDisablePlannerTransfer.php
β–Ά Open πŸ“„ View Source
🐘 TriggerAction.php
β–Ά Open πŸ“„ View Source
🐘 TriggerActionGenerativeAnswer.php
β–Ά Open πŸ“„ View Source
🐘 TriggerActionRespondImmediately.php
β–Ά Open πŸ“„ View Source
🐘 TriggerActionResponse.php
β–Ά Open πŸ“„ View Source
🐘 TriggerActionTransferAgent.php
β–Ά Open πŸ“„ View Source
🐘 WebSearchQuery.php
β–Ά Open πŸ“„ View Source
🐘 WidgetTool.php
β–Ά Open πŸ“„ View Source
🐘 WidgetToolDataMapping.php
β–Ά Open πŸ“„ View Source
🐘 WidgetToolTextResponseConfig.php
β–Ά Open πŸ“„ View Source

πŸ“„ Source: GuardrailCodeCallback.php

<?php
/*
 * Copyright 2014 Google Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

namespace Google\Service\CustomerEngagementSuite;

class GuardrailCodeCallback extends \Google\Model
{
  protected $afterAgentCallbackType = Callback::class;
  protected $afterAgentCallbackDataType = '';
  protected $afterModelCallbackType = Callback::class;
  protected $afterModelCallbackDataType = '';
  protected $beforeAgentCallbackType = Callback::class;
  protected $beforeAgentCallbackDataType = '';
  protected $beforeModelCallbackType = Callback::class;
  protected $beforeModelCallbackDataType = '';

  /**
   * Optional. The callback to execute after the agent is called. Each callback
   * function is expected to return a structure (e.g., a dict or object)
   * containing at least: - 'decision': Either 'OK' or 'TRIGGER'. - 'reason': A
   * string explaining the decision. A 'TRIGGER' decision may halt further
   * processing.
   *
   * @param Callback $afterAgentCallback
   */
  public function setAfterAgentCallback(Callback $afterAgentCallback)
  {
    $this->afterAgentCallback = $afterAgentCallback;
  }
  /**
   * @return Callback
   */
  public function getAfterAgentCallback()
  {
    return $this->afterAgentCallback;
  }
  /**
   * Optional. The callback to execute after the model is called. If there are
   * multiple calls to the model, the callback will be executed multiple times.
   * Each callback function is expected to return a structure (e.g., a dict or
   * object) containing at least: - 'decision': Either 'OK' or 'TRIGGER'. -
   * 'reason': A string explaining the decision. A 'TRIGGER' decision may halt
   * further processing.
   *
   * @param Callback $afterModelCallback
   */
  public function setAfterModelCallback(Callback $afterModelCallback)
  {
    $this->afterModelCallback = $afterModelCallback;
  }
  /**
   * @return Callback
   */
  public function getAfterModelCallback()
  {
    return $this->afterModelCallback;
  }
  /**
   * Optional. The callback to execute before the agent is called. Each callback
   * function is expected to return a structure (e.g., a dict or object)
   * containing at least: - 'decision': Either 'OK' or 'TRIGGER'. - 'reason': A
   * string explaining the decision. A 'TRIGGER' decision may halt further
   * processing.
   *
   * @param Callback $beforeAgentCallback
   */
  public function setBeforeAgentCallback(Callback $beforeAgentCallback)
  {
    $this->beforeAgentCallback = $beforeAgentCallback;
  }
  /**
   * @return Callback
   */
  public function getBeforeAgentCallback()
  {
    return $this->beforeAgentCallback;
  }
  /**
   * Optional. The callback to execute before the model is called. If there are
   * multiple calls to the model, the callback will be executed multiple times.
   * Each callback function is expected to return a structure (e.g., a dict or
   * object) containing at least: - 'decision': Either 'OK' or 'TRIGGER'. -
   * 'reason': A string explaining the decision. A 'TRIGGER' decision may halt
   * further processing.
   *
   * @param Callback $beforeModelCallback
   */
  public function setBeforeModelCallback(Callback $beforeModelCallback)
  {
    $this->beforeModelCallback = $beforeModelCallback;
  }
  /**
   * @return Callback
   */
  public function getBeforeModelCallback()
  {
    return $this->beforeModelCallback;
  }
}

// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GuardrailCodeCallback::class, 'Google_Service_CustomerEngagementSuite_GuardrailCodeCallback');
← Back