@@ -26,7 +26,7 @@ export function processConversationRoute(
2626 nonModels : { } ,
2727 enums : {
2828 ConversationParticipantRole : {
29- name : 'ConversationParticipantRole ' ,
29+ name : 'AmplifyAIConversationParticipantRole ' ,
3030 values : [ 'user' , 'assistant' ] ,
3131 }
3232 } ,
@@ -91,10 +91,10 @@ function generateConversationMessageModel(conversationModelName: string, modelNa
9191 id : generateField ( 'id' , 'ID' , { isRequired : true } ) ,
9292 conversationId : generateField ( 'conversationId' , 'ID' , { isRequired : true } ) ,
9393 conversation : generateConversationField ( conversationModelName ) ,
94- role : generateField ( 'role' , { enum : 'ConversationParticipantRole ' } ) ,
95- content : generateField ( 'content' , { nonModel : 'ContentBlock ' } , { isArray : true } ) ,
94+ role : generateField ( 'role' , { enum : 'AmplifyAIConversationParticipantRole ' } ) ,
95+ content : generateField ( 'content' , { nonModel : 'AmplifyAIContentBlock ' } , { isArray : true } ) ,
9696 aiContext : generateField ( 'aiContext' , 'AWSJSON' ) ,
97- toolConfiguration : generateField ( 'toolConfiguration' , { nonModel : 'ToolConfiguration ' } , { isArray : true , isArrayNullable : true } ) ,
97+ toolConfiguration : generateField ( 'toolConfiguration' , { nonModel : 'AmplifyAIToolConfiguration ' } , { isArray : true , isArrayNullable : true } ) ,
9898 createdAt : generateTimestampField ( 'createdAt' ) ,
9999 updatedAt : generateTimestampField ( 'updatedAt' ) ,
100100 } ,
@@ -185,7 +185,7 @@ function generateSubscriptionMetadata(routeName: string, modelName: string): Sch
185185 isArray : false ,
186186 isRequired : false ,
187187 name : `onCreateAssistantResponse${ routeName } ` ,
188- type : { nonModel : 'ConversationMessageStreamPart ' } ,
188+ type : { nonModel : 'AmplifyAIConversationMessageStreamPart ' } ,
189189 arguments : {
190190 'conversationId' : {
191191 name : 'conversationId' ,
0 commit comments