Skip to content

Commit c9c2e33

Browse files
committed
Fixes from review
1 parent eb6ec5d commit c9c2e33

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -126,9 +126,9 @@ const multiUserSession = await ai.assistant.create({
126126
});
127127

128128
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." }
132132
]);
133133

134134
// `result` will contain a compromise proposal from the assistant.
@@ -429,13 +429,13 @@ dictionary AIAssistantCreateOptions {
429429
};
430430
431431
dictionary AIAssistantInitialPrompt {
432-
AIAssistantInitialPromptRole role;
433-
DOMString content;
432+
required AIAssistantInitialPromptRole role;
433+
required DOMString content;
434434
};
435435
436436
dictionary AIAssistantPrompt {
437-
AIAssistantPromptRole role;
438-
DOMString content;
437+
required AIAssistantPromptRole role;
438+
required DOMString content;
439439
};
440440
441441
dictionary AIAssistantPromptOptions {

0 commit comments

Comments
 (0)