@@ -126,9 +126,9 @@ const multiUserSession = await ai.assistant.create({
126
126
});
127
127
128
128
const result = await multiUserSession .prompt ([
129
- { " role" : " user" , content: " Marketing: We need more budget for advertising campaigns." },
130
- { " role" : " user" , content: " Finance: We need to cut costs and advertising is on the list." },
131
- { " role" : " assistant" , " content" : " Let's explore a compromise that satisfies both departments." }
129
+ { role: " user" , content: " Marketing: We need more budget for advertising campaigns." },
130
+ { role: " user" , content: " Finance: We need to cut costs and advertising is on the list." },
131
+ { role: " assistant" , content: " Let's explore a compromise that satisfies both departments." }
132
132
]);
133
133
134
134
// `result` will contain a compromise proposal from the assistant.
@@ -429,13 +429,13 @@ dictionary AIAssistantCreateOptions {
429
429
};
430
430
431
431
dictionary AIAssistantInitialPrompt {
432
- AIAssistantInitialPromptRole role;
433
- DOMString content;
432
+ required AIAssistantInitialPromptRole role;
433
+ required DOMString content;
434
434
};
435
435
436
436
dictionary AIAssistantPrompt {
437
- AIAssistantPromptRole role;
438
- DOMString content;
437
+ required AIAssistantPromptRole role;
438
+ required DOMString content;
439
439
};
440
440
441
441
dictionary AIAssistantPromptOptions {
0 commit comments