@@ -26,7 +26,7 @@ export function processConversationRoute(
26
26
nonModels : { } ,
27
27
enums : {
28
28
ConversationParticipantRole : {
29
- name : 'ConversationParticipantRole ' ,
29
+ name : 'AmplifyAIConversationParticipantRole ' ,
30
30
values : [ 'user' , 'assistant' ] ,
31
31
}
32
32
} ,
@@ -91,10 +91,10 @@ function generateConversationMessageModel(conversationModelName: string, modelNa
91
91
id : generateField ( 'id' , 'ID' , { isRequired : true } ) ,
92
92
conversationId : generateField ( 'conversationId' , 'ID' , { isRequired : true } ) ,
93
93
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 } ) ,
96
96
aiContext : generateField ( 'aiContext' , 'AWSJSON' ) ,
97
- toolConfiguration : generateField ( 'toolConfiguration' , { nonModel : 'ToolConfiguration ' } , { isArray : true , isArrayNullable : true } ) ,
97
+ toolConfiguration : generateField ( 'toolConfiguration' , { nonModel : 'AmplifyAIToolConfiguration ' } , { isArray : true , isArrayNullable : true } ) ,
98
98
createdAt : generateTimestampField ( 'createdAt' ) ,
99
99
updatedAt : generateTimestampField ( 'updatedAt' ) ,
100
100
} ,
@@ -185,7 +185,7 @@ function generateSubscriptionMetadata(routeName: string, modelName: string): Sch
185
185
isArray : false ,
186
186
isRequired : false ,
187
187
name : `onCreateAssistantResponse${ routeName } ` ,
188
- type : { nonModel : 'ConversationMessageStreamPart ' } ,
188
+ type : { nonModel : 'AmplifyAIConversationMessageStreamPart ' } ,
189
189
arguments : {
190
190
'conversationId' : {
191
191
name : 'conversationId' ,
0 commit comments