Skip to content

Commit b27e916

Browse files
author
Cloud Shell
committed
chore: lint functionCallingStreamContent
1 parent 6e60d21 commit b27e916

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

generative-ai/snippets/functionCallingStreamContent.js

+10-7
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,16 @@ async function functionCallingStreamChat(
6868
const request = {
6969
contents: [
7070
{role: 'user', parts: [{text: 'What is the weather in Boston?'}]},
71-
{role: 'model', parts: [{
72-
functionCall: {
73-
name: 'get_current_weather',
74-
args: {'location': 'Boston'},
75-
},
76-
}]},
77-
{role: 'function', parts: functionResponseParts },
71+
{
72+
role: 'model',
73+
parts: [{
74+
functionCall: {
75+
name: 'get_current_weather',
76+
args: {'location': 'Boston'},
77+
},
78+
}],
79+
},
80+
{role: 'function', parts: functionResponseParts},
7881
],
7982
tools: functionDeclarations,
8083
};

0 commit comments

Comments
 (0)