Hi all,
I created and tested an AI Prompt for fetching data from the Dynamics knowledge base successfully. The result gets stored into the local newly created variable KbResult.
Topic checker says that everything is ok and in subsequent steps I can select the subresults of KbResult with the right data types. When running the chat I get the error message:
Error Message:
The parameter with name 'predictionOutput' on prompt 'KB Prompting' ('8d259d3b-c411-4a0b-87b6-f2bdcaecxxxx') evaluated to type 'RecordDataType' , expected type 'RecordDataType'
Error Code:
AIModelActionBadRequest
This is the variable structure of the topic variable KbResult.
kind: Record
properties:
dataUsed:
displayName: Data Used
order: 3
type: String
finishReason:
displayName: Finish Reason
order: 0
type: String
structuredOutput:
order: 2
type:
kind: Record
properties:
AnswerContent:
displayName: AnswerContent
order: 0
type: String
AnswerFound:
displayName: AnswerFound
order: 1
type: Boolean
text:
displayName: Text
order: 1
type: String
I already created new result variables, recreated the complete AI prompt new, tested with text output and JSON output. Error message remains. Any ideas on it?