File tree Expand file tree Collapse file tree
packages/firebase_ai/firebase_ai Expand file tree Collapse file tree Original file line number Diff line number Diff 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.' ,
Original file line number Diff line number Diff 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 },
You can’t perform that action at this time.
0 commit comments