inputJsonSchema property

Map<String, dynamic> inputJsonSchema
final

Schema to parse and validate tool's input arguments. Following the JSON Schema specification.

Example:

{
  'type': 'object',
  'properties': {
    'answer': {
      'type': 'string',
      'description': 'The answer to the question being asked',
    },
    'sources': {
      'type': 'array',
      'items': {'type': 'string'},
      'description': 'The sources used to answer the question',
    },
  },
  'required': ['answer', 'sources'],
},

Implementation

final Map<String, dynamic> inputJsonSchema;