Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [Dialogflow] add options of query_source, search_config, end_user_metadata and exact_search #7823

Merged
merged 2 commits into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified Dialogflow/metadata/V2/Conversation.php
Binary file not shown.
64 changes: 64 additions & 0 deletions Dialogflow/src/V2/Client/ConversationsClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,27 @@ public static function conversationProfileName(string $project, string $conversa
]);
}

/**
* Formats a string containing the fully-qualified path to represent a data_store
* resource.
*
* @param string $project
* @param string $location
* @param string $collection
* @param string $dataStore
*
* @return string The formatted data_store resource.
*/
public static function dataStoreName(string $project, string $location, string $collection, string $dataStore): string
{
return self::getPathTemplate('dataStore')->render([
'project' => $project,
'location' => $location,
'collection' => $collection,
'data_store' => $dataStore,
]);
}

/**
* Formats a string containing the fully-qualified path to represent a document
* resource.
Expand Down Expand Up @@ -475,6 +496,27 @@ public static function projectLocationAgentName(string $project, string $locatio
]);
}

/**
* Formats a string containing the fully-qualified path to represent a
* project_location_collection_data_store resource.
*
* @param string $project
* @param string $location
* @param string $collection
* @param string $dataStore
*
* @return string The formatted project_location_collection_data_store resource.
*/
public static function projectLocationCollectionDataStoreName(string $project, string $location, string $collection, string $dataStore): string
{
return self::getPathTemplate('projectLocationCollectionDataStore')->render([
'project' => $project,
'location' => $location,
'collection' => $collection,
'data_store' => $dataStore,
]);
}

/**
* Formats a string containing the fully-qualified path to represent a
* project_location_conversation resource.
Expand Down Expand Up @@ -553,6 +595,25 @@ public static function projectLocationConversationProfileName(string $project, s
]);
}

/**
* Formats a string containing the fully-qualified path to represent a
* project_location_data_store resource.
*
* @param string $project
* @param string $location
* @param string $dataStore
*
* @return string The formatted project_location_data_store resource.
*/
public static function projectLocationDataStoreName(string $project, string $location, string $dataStore): string
{
return self::getPathTemplate('projectLocationDataStore')->render([
'project' => $project,
'location' => $location,
'data_store' => $dataStore,
]);
}

/**
* Formats a string containing the fully-qualified path to represent a
* project_location_knowledge_base resource.
Expand Down Expand Up @@ -602,6 +663,7 @@ public static function projectLocationKnowledgeBaseDocumentName(string $project,
* - conversation: projects/{project}/conversations/{conversation}
* - conversationModel: projects/{project}/locations/{location}/conversationModels/{conversation_model}
* - conversationProfile: projects/{project}/conversationProfiles/{conversation_profile}
* - dataStore: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}
* - document: projects/{project}/knowledgeBases/{knowledge_base}/documents/{document}
* - generator: projects/{project}/locations/{location}/generators/{generator}
* - knowledgeBase: projects/{project}/knowledgeBases/{knowledge_base}
Expand All @@ -617,10 +679,12 @@ public static function projectLocationKnowledgeBaseDocumentName(string $project,
* - projectKnowledgeBase: projects/{project}/knowledgeBases/{knowledge_base}
* - projectKnowledgeBaseDocument: projects/{project}/knowledgeBases/{knowledge_base}/documents/{document}
* - projectLocationAgent: projects/{project}/locations/{location}/agent
* - projectLocationCollectionDataStore: projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}
* - projectLocationConversation: projects/{project}/locations/{location}/conversations/{conversation}
* - projectLocationConversationMessage: projects/{project}/locations/{location}/conversations/{conversation}/messages/{message}
* - projectLocationConversationModel: projects/{project}/locations/{location}/conversationModels/{conversation_model}
* - projectLocationConversationProfile: projects/{project}/locations/{location}/conversationProfiles/{conversation_profile}
* - projectLocationDataStore: projects/{project}/locations/{location}/dataStores/{data_store}
* - projectLocationKnowledgeBase: projects/{project}/locations/{location}/knowledgeBases/{knowledge_base}
* - projectLocationKnowledgeBaseDocument: projects/{project}/locations/{location}/knowledgeBases/{knowledge_base}/documents/{document}
*
Expand Down
16 changes: 8 additions & 8 deletions Dialogflow/src/V2/CreateConversationRequest.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion Dialogflow/src/V2/FewShotExample.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading