This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create secret in secret manager: proposed generated samples | |
# These samples assume that detail about the arguments is provided on the same page below the sample. In the case of | |
# protobuf types - since they are not described in the SDK reference docs, we'd create new doc content describing how to | |
# convert from native types to protobuf types. | |
# EX 1: In this example we put the types as comments, see below for other options. In languages where type information is | |
# built into the request syntax, comments don't need to include type information, but may still need required/optional if its | |
# not part of the type system. | |
# Create Secret Request |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// classification | |
export const classificationPrompt = ( | |
categories: typeof USER_INTENTS, | |
query: string): string => | |
` | |
You are an expert customer support agent responsible for routing inquiries to | |
the right department. You will be given a question. Classify the question into | |
one of the following categories: ${Object.values(categories).join(', ')}. | |
Return only the name of the category, using exactly those category names, and | |
nothing else. MAKE SURE your output is one of the four categories stated. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Documentation - related data model for information seeking intents | |
[ | |
// | |
{ "codeArray": [ { serialized code block1 }, { serialized code block 2}, .. }, | |
"pageTitle": "page title in h element and DOM page title, includes service + function + language", | |
"functionText": "function description..", | |
"language": "python", | |
"githubURL" : "URL..", | |
"functionArguments": [ { argument type 1 }, { argument type 2 }, ... ], | |
"return" : [ "return value1 description", ... ], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<apex:page controller="CustomerCommunityController" id="customercommunitycontroller" sidebar="false" showHeader="false" standardStylesheets="false" > | |
<head> | |
<title>Acme Customer Support</title> | |
<meta charset="utf-8" /> | |
<apex:includeScript value="{!$Resource.jquery}"/> | |
</head> | |
<script type="text/javascript"> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"instance_url": "https://na12.salesforce.com", | |
"items": [{ | |
"parent": { | |
"name": "John Smith", | |
"title": null, | |
"firstName": "John", | |
"lastName": "Smith", | |
"companyName": "No company locations found", | |
"mySubscription": null, |