Get a citation for a keyterm prompt test result
/api/boss/data/objects/ora/cxSalesCommon/keyterms/v1/keyterms/{keyterms_id}/prompts/{keyterms-prompts_id}/testResults/{keyterms-prompts-testResults_id}/citations/{keyterms-prompts-testResults-citations_id}
Request
-
keyterms-prompts-testResults-citations_id(required): string
This path parameter maps to the following field defined in the Key Terms/prompts/testResults/citations REST resource:
- id
-
keyterms-prompts-testResults_id(required): string
This path parameter maps to the following field defined in the Key Terms/prompts/testResults REST resource:
- id
-
keyterms-prompts_id(required): string
This path parameter maps to the following field defined in the Key Terms/prompts REST resource:
- id
-
keyterms_id(required): string
This path parameter maps to the following field defined in the Key Terms REST resource:
- code
-
$effectiveDate: string(date)
The effective date value in ISO 8601 date format 'YYYY-MM-DD'. This date is required by business logic to search for effective-dated business objects.
-
$fields: string
Restricts the resource fields. Only the specified fields and mandatory system fields are returned.
There's no request body for this operation.
Back to TopResponse
Default Response
-
object
oraCxSalesCommonKeyterms.PromptTestCitation_item-fields
-
object
Citation
Title:
Citation
Citation is the part of the source document that's referenced by the large language model to get a response.
object
-
citation: string
-
createdBy: string
Title:
Created By
Read Only:true
-
id: string
(big-integer)
Read Only:
true
-
sequenceNumber: string
-
testResult:
testResult
-
timeCreated: string
(date-time)
Title:
Created On
Read Only:true
-
timeUpdated: string
(date-time)
Title:
Last Updated Date
Read Only:true
-
updatedBy: string
Title:
Last Updated By
Read Only:true
object
Citation
-
object
oraCxSalesCommonKeyterms.PromptTestResult_item-fields
-
object
Prompt Test Result
Title:
Prompt Test Result
Prompt test result includes information about the response provided by the large language model for a specific prompt.
object
-
additionalInstructions: string
Title:
Additional Instruction
-
createdBy: string
Title:
Created By
Read Only:true
-
id: string
(big-integer)
Read Only:
true
-
prompt:
prompt
-
promptText: string
Title:
Prompt
-
resultDate: string
(date-time)
Title:
Date
-
submitDate: string
(date-time)
Title:
Upload Date
-
testOutput: string
Title:
Response
-
timeCreated: string
(date-time)
Title:
Created On
Read Only:true
-
timeUpdated: string
(date-time)
Title:
Last Updated Date
Read Only:true
-
updatedBy: string
Title:
Last Updated By
Read Only:true
object
Prompt Test Result
object
-
object
oraCxSalesCommonKeyterms.KeytermPrompt_item-fields
-
object
Key Term Prompt
Title:
Key Term Prompt
Key term prompt is the question that's used in a large language model to extract a certain key term from contract documents.
object
-
createdBy: string
Title:
Created By
Read Only:true
-
description: string
Title:
Description
-
id: string
(big-integer)
Read Only:
true
-
keyterm:
keyterm
-
latestAdditionalInstructions: string
-
name: string
Title:
Name
-
status:
status
-
text: string
Title:
Prompt
-
timeCreated: string
(date-time)
Title:
Created On
Read Only:true
-
timeUpdated: string
(date-time)
Title:
Last Updated Date
Read Only:true
-
updatedBy: string
Title:
Last Updated By
Read Only:true
object
Key Term Prompt
object
-
object
oraCxSalesCommonKeyterms.Keyterm_item-fields
-
object
Key Term
Title:
Key Term
Key term is the metadata present in the contract documents. The key terms to be extracted for each contract type is defined in the application with the corresponding prompts to be used for extraction.
object
-
activeFlag: boolean
Title:
Status
Default Value:true
-
code: string
Title:
Code
-
createdBy: string
Title:
Created By
Read Only:true
-
group:
group
-
name: string
Title:
Name
-
outputType:
outputType
-
timeCreated: string
(date-time)
Title:
Created On
Read Only:true
-
timeUpdated: string
(date-time)
Title:
Last Updated Date
Read Only:true
-
updatedBy: string
Title:
Last Updated By
Read Only:true
object
Key Term
object
object
-
$sourceLang: string
Read Only:
true
-
createdBy: string
Read Only:
true
-
description: string
Read Only:
true
-
displaySequence: string
(big-integer)
Read Only:
true
-
enabledFlag: boolean
Read Only:
true
-
endDateActive: string
(date)
Read Only:
true
-
lookupCategoryId: string
(big-integer)
Read Only:
true
-
lookupCode: string
Read Only:
true
-
lookupType: string
Read Only:
true
-
meaning: string
Read Only:
true
-
startDateActive: string
(date)
Read Only:
true
-
tag: string
Read Only:
true
-
timeCreated: string
(date-time)
Read Only:
true
-
timeUpdated: string
(date-time)
Read Only:
true
-
updatedBy: string
Read Only:
true
object
-
createdBy: string
Title:
Created By
The user who created the record. -
description: string
Title:
Lookup Code Description
The translated description of the Lookup Code. -
displaySequence: string
Title:
Display Sequence
The display sequence of the Lookup Code. -
enabledFlag: boolean
Title:
Lookup Code Enabled
The enabled flag of the Lookup Code. -
endDateActive: string
Title:
End Date Active
The active end date of the Lookup Code. -
lookupCategoryId: string
Title:
Lookup Category
The lookup category of the Lookup Code. -
lookupCode: string
Title:
Lookup Code ID
The unique identifier of the Lookup Code. -
lookupType: string
Title:
Lookup Type ID
The unique identifier of the Lookup Type. -
meaning: string
Title:
Lookup Code Meaning
The translated meaning of the Lookup Code. -
startDateActive: string
Title:
Start Date Active
The active start date of the Lookup Code. -
tag: string
Title:
Lookup Tag
The tag value of the Lookup Code. -
timeCreated: string
Title:
Created On
The date and time when the record was created. -
timeUpdated: string
Title:
Last Updated Date
The date and time when the record was last updated. -
updatedBy: string
Title:
Last Updated By
The user who last updated the record.
object
Group
- self
-
Parameters:
- keyterms-prompts-testResults-citations_id:
$request.path.keyterms-prompts-testResults-citations_id
- keyterms-prompts-testResults_id:
$request.path.keyterms-prompts-testResults_id
- keyterms-prompts_id:
$request.path.keyterms-prompts_id
- keyterms_id:
$request.path.keyterms_id
- keyterms-prompts-testResults-citations_id:
- testResult
-
Parameters:
- promptTestResults_id:
$response.body#/testResult/$id
- promptTestResults_id:
Examples
The following example shows how to get a citation for a keyterm prompt test result by submitting a get request on the REST resource using cURL.
cURL Command
curl -X GET --location
'https://<servername>/api/boss/data/objects/ora/cxSalesCommon/keyterms/v1/$en/keyterms/{keyterms_id}/prompts/{keyterms-prompts_id}/testResults/{keyterms-prompts-testResults_id}/citations/{keyterms-prompts-testResults-citations_id}'
\ --header 'Content-Type: application/json' \ --header 'Authorization: Bearer
<token>'
Example of Response Body
The following shows an example of the response body in JSON format.
{ "id": "300100626058688", "sequenceNumber": "1", "citation": "\nA. Terms of The Order\n\n1. Applicable Agreement:\n\na. Cloud Services Agreement SA-PRC-9341 effective 21-Jan-2018\n\n2. Payment Terms:\n\na. Net 30 days from invoice date\n\n3. Payment Frequency:\n\na. Monthly in Advance\n\n4. Currency:\n\na. USD\n\n5. Offer Valid through:\n\na. 30-Jun-2024\n\n6. Services Period\n\nYour Subscription commences on the effective date of the Order unless otherwise specified therein. Your Subscription continues for the Initial Subscription Term stated in the Order. Thereafter, each Subscription will automatically renew for successive periods of 12 months (each a ?Renewal Term?) unless a party gives at least 30 days? prior written notice to the other party of its intention not to renew the Subscription. Unless otherwise agreed in the applicable Order, and subject to Your rights to terminate under this Section, Your Subscription may only be terminated in accordance with clause B.\n\nB. Additional Terms", "createdBy": "CONMGR", "timeCreated": "2025-01-15T10:11:12.771824Z", "updatedBy": "CONMGR", "timeUpdated": "2025-01-15T10:11:12.771824Z", "$id": "300100626058688", "$context": { "etag": "1", "links": { "$self": { "href": "https://cptbbybqy-test.fusionapps.ocs.oc-test.com:443/api/boss/data/objects/ora/cxSalesCommon/keyterms/v1/$en/keyterms/ATS_JLSA_Renewal_Cap_Percentage/prompts/300100626058682/testResults/300100626058685/citations/300100626058688" } } } }