Skip to content

Commit dbf6d91

Browse files
committed
temp add def test
1 parent 57eccf0 commit dbf6d91

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

packages/firebase_ai/firebase_ai/example/lib/pages/function_calling_page.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ class _FunctionCallingPageState extends State<FunctionCallingPage> {
165165
name: 'processTransactions',
166166
description:
167167
'Processes a list of financial transactions using a predefined transaction model reference.',
168-
useJSONSchema: true,
168+
//useJSONSchema: true,
169169
parameters: {
170170
'transactionsBlock': Schema.object(
171171
description: 'A block containing a list of transactions.',

packages/firebase_ai/firebase_ai/lib/src/schema.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -277,9 +277,9 @@ final class Schema {
277277
Map<String, Object> toJson() => {
278278
if (type != SchemaType.anyOf && type != SchemaType.ref)
279279
'type': type.toJson(), // Omit the field while type is anyOf or ref
280-
if (ref case final ref?) r'$ref': ref,
280+
if (ref case final ref?) 'ref': ref,
281281
if (defs case final defs?)
282-
r'$defs': {
282+
'defs': {
283283
for (final MapEntry(:key, :value) in defs.entries)
284284
key: value.toJson()
285285
},

0 commit comments

Comments
 (0)